You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-s, --steps <path> path to step definitions. defaults to ./step-definitions
47
-
-p, --pageObjects <path> path to page objects. defaults to ./page-objects
48
-
-o, --sharedObjects [paths] path to shared objects (repeatable). defaults to ./shared-objects
49
-
-b, --browser <path> name of browser to use. defaults to chrome
50
-
-r, --reports <path> output path to save reports. defaults to ./reports
51
-
-d, --disableLaunchReport disable the auto opening the browser with test report
52
-
-j, --junit <path> output path to save junit-report.xml defaults to ./reports
53
-
-t, --tags <tagName> name of tag to run
54
-
-f, --featureFile <path> a specific feature file to run
55
-
-x, --timeOut <n> steps definition timeout in milliseconds. defaults to 10 seconds
56
-
-n, --noScreenshot disable auto capturing of screenshots when an error is encountered
44
+
-h, --help output usage information
45
+
-V, --version output the version number
46
+
-s, --steps <path> path to step definitions. defaults to ./step-definitions
47
+
-p, --pageObjects <path> path to page objects. defaults to ./page-objects
48
+
-o, --sharedObjects [paths] path to shared objects (repeatable). defaults to ./shared-objects
49
+
-b, --browser <path> name of browser to use. defaults to chrome
50
+
-k, --browser-teardown <optional> browser teardown strategy after every scenario (always, clear, none). defaults to "always"
51
+
-r, --reports <path> output path to save reports. defaults to ./reports
52
+
-d, --disableLaunchReport disable the auto opening the browser with test report
53
+
-j, --junit <path> output path to save junit-report.xml defaults to ./reports
54
+
-t, --tags <tagName> name of tag to run
55
+
-f, --featureFile <path> a specific feature file to run
56
+
-x, --timeOut <n> steps definition timeout in milliseconds. defaults to 10 seconds
57
+
-n, --noScreenshot disable auto capturing of screenshots when an error is encountered
57
58
```
58
59
59
60
By default tests are run using Google Chrome, to run tests using another browser supply the name of that browser along with the `-b` switch. Available options are:
@@ -112,7 +113,16 @@ Feature: Searching for vote cards app
112
113
Then I should see some results
113
114
```
114
115
115
-
The browser automatically closes after each scenario to ensure the next scenario uses a fresh browser environment.
116
+
### Browser teardown strategy
117
+
118
+
The browser automatically closes after each scenario to ensure the next scenario uses a fresh browser environment. But
119
+
you can change this behavior with the "-k" or the "--browser-teardown" parameter.
120
+
121
+
Value | Description
122
+
---------- | ---------------
123
+
`always` | the browser automatically closes (default)
124
+
`clear` | the browser automatically clears cookies, local and session storages
Copy file name to clipboardExpand all lines: index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ program
45
45
.option('-p, --pageObjects <path>','path to page objects. defaults to '+config.pageObjects,config.pageObjects)
46
46
.option('-o, --sharedObjects [paths]','path to shared objects (repeatable). defaults to '+config.sharedObjects,collectPaths,[config.sharedObjects])
47
47
.option('-b, --browser <path>','name of browser to use. defaults to '+config.browser,config.browser)
48
-
.option('-k, --browser-teardown <optional>','browser teardown strategy after every scenario (always, clear, none). defaults to "none"',config.browserTeardownStrategy)
48
+
.option('-k, --browser-teardown <optional>','browser teardown strategy after every scenario (always, clear, none). defaults to "always"',config.browserTeardownStrategy)
49
49
.option('-r, --reports <path>','output path to save reports. defaults to '+config.reports,config.reports)
50
50
.option('-d, --disableLaunchReport [optional]','Disables the auto opening the browser with test report')
51
51
.option('-j, --junit <path>','output path to save junit-report.xml defaults to '+config.reports)
0 commit comments