Skip to content

Commit 04543de

Browse files
committed
Testing update to options.md - All basic tests will hopefully pass
1 parent 539981f commit 04543de

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/main/kotlin/org/evomaster/core/output/service/HttpWsTestCaseWriter.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
6060
fun startRequest(lines: Lines){
6161
when {
6262
format.isJavaOrKotlin() -> lines.append("given()")
63-
format.isPlaywright() -> lines.append(" -64 HttpWsTestCaseWriter.kt- ")
63+
format.isPlaywright() -> lines.append("await request")
6464
format.isJavaScript() -> lines.append("await superagent")
6565
format.isCsharp() -> lines.append("await Client")
6666
format.isPython() -> lines.append("requests \\")
@@ -104,7 +104,7 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
104104
when {
105105
format.isKotlin() -> lines.append("val $resVarName: ValidatableResponse = ")
106106
format.isJava() -> lines.append("ValidatableResponse $resVarName = ")
107-
format.isPlaywright() -> lines.append(" -108 HttpWsTestCaseWriter.kt- ")
107+
format.isPlaywright() -> lines.append("const $resVarName = ")
108108
format.isJavaScript() -> lines.append("const $resVarName = ")
109109
format.isPython() -> lines.append("$resVarName = ")
110110
format.isCsharp() -> lines.append("var $resVarName = ")
@@ -113,7 +113,7 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
113113

114114
when {
115115
format.isJavaOrKotlin() -> lines.append("given()")
116-
format.isPlaywright() -> lines.append(" -117 HttpWsTestCaseWriter.kt- ")
116+
format.isPlaywright() -> lines.append("await request")
117117
format.isJavaScript() -> lines.append("await superagent")
118118
format.isCsharp() -> lines.append("await Client")
119119
format.isPython() -> lines.append("requests \\")
@@ -189,7 +189,7 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
189189
protected fun openAcceptHeader(): String {
190190
return when {
191191
format.isJavaOrKotlin() -> ".accept("
192-
format.isPlaywright() -> " -193 HttpWsTestCaseWriter.kt- "
192+
format.isPlaywright() -> "'Accept': " // Double accept?
193193
format.isJavaScript() -> ".set('Accept', "
194194
format.isCsharp() -> "Client.DefaultRequestHeaders.Add(\"Accept\", "
195195
format.isPython() -> "headers['Accept'] = "

docs/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ There are 3 types of options:
3939
|`configPath`| __String__. File path for file with configuration settings. Supported formats are YAML and TOML. When EvoMaster starts, it will read such file and import all configurations from it. *Constraints*: `regex .*\.(yml\|yaml\|toml)`. *Default value*: `em.yaml`.|
4040
|`outputFilePrefix`| __String__. The name prefix of generated file(s) with the test cases, without file type extension. In JVM languages, if the name contains '.', folders will be created to represent the given package structure. Also, in JVM languages, should not use '-' in the file name, as not valid symbol for class identifiers. This prefix be combined with the outputFileSuffix to combined the final name. As EvoMaster can split the generated tests among different files, each will get a label, and the names will be in the form prefix+label+suffix. *Constraints*: `regex [-a-zA-Z$_][-0-9a-zA-Z$_]*(.[-a-zA-Z$_][-0-9a-zA-Z$_]*)*`. *Default value*: `EvoMaster`.|
4141
|`outputFileSuffix`| __String__. The name suffix for the generated file(s), to be added before the file type extension. As EvoMaster can split the generated tests among different files, each will get a label, and the names will be in the form prefix+label+suffix. *Constraints*: `regex [-a-zA-Z$_][-0-9a-zA-Z$_]*(.[-a-zA-Z$_][-0-9a-zA-Z$_]*)*`. *Default value*: `Test`.|
42-
|`outputFormat`| __Enum__. Specify in which format the tests should be outputted. If left on `DEFAULT`, for white-box testing then the value specified in the _EvoMaster Driver_ will be used. On the other hand, for black-box testing it will default to a predefined type (e.g., Python). *Valid values*: `DEFAULT, JAVA_JUNIT_5, JAVA_JUNIT_4, KOTLIN_JUNIT_4, KOTLIN_JUNIT_5, JS_JEST, PYTHON_UNITTEST`. *Default value*: `DEFAULT`.|
42+
|`outputFormat`| __Enum__. Specify in which format the tests should be outputted. If left on `DEFAULT`, for white-box testing then the value specified in the _EvoMaster Driver_ will be used. On the other hand, for black-box testing it will default to a predefined type (e.g., Python). *Valid values*: `DEFAULT, JAVA_JUNIT_5, JAVA_JUNIT_4, KOTLIN_JUNIT_4, KOTLIN_JUNIT_5, JS_JEST, JS_JEST_PLAYWRIGHT, PYTHON_UNITTEST`. *Default value*: `DEFAULT`.|
4343
|`testTimeout`| __Int__. Enforce timeout (in seconds) in the generated tests. This feature might not be supported in all frameworks. If 0 or negative, the timeout is not applied. *Default value*: `60`.|
4444
|`blackBox`| __Boolean__. Use EvoMaster in black-box mode. This does not require an EvoMaster Driver up and running. However, you will need to provide further option to specify how to connect to the SUT. *Default value*: `false`.|
4545
|`bbSwaggerUrl`| __String__. When in black-box mode for REST APIs, specify the URL of where the OpenAPI/Swagger schema can be downloaded from. If the schema is on the local machine, you can use a URL starting with 'file://'. If the given URL is neither starting with 'file' nor 'http', then it will be treated as a local file path. *Default value*: `""`.|

0 commit comments

Comments
 (0)