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
Copy file name to clipboardExpand all lines: docs/helpers/Appium.md
+2
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ This helper should be configured in codecept.json or codecept.conf.js
23
23
24
24
-`port`: Appium port
25
25
-`restart`: restart browser or app between tests (default: true), if set to false cookies will be cleaned but browser window will be kept and for apps nothing will be changed.
26
+
-`disableScreenshots` (optional, default: false) - don't save screenshot on failure
27
+
-`uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites
26
28
-`desiredCapabilities`: [], Appium capabilities, see below
27
29
-`platformName` - Which mobile OS platform to use
28
30
-`appPackage` - Java package of the Android app you want to run
Copy file name to clipboardExpand all lines: docs/helpers/Nightmare.md
+3
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,9 @@ This helper should be configured in codecept.json
13
13
14
14
-`url` - base url of website to be tested
15
15
-`restart` (optional, default: true) - restart browser between tests.
16
+
-`disableScreenshots` (optional, default: false) - don't save screenshot on failure
17
+
-`uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites
18
+
-`keepBrowserState` (optional, default: false) - keep browser state between tests when `restart` set to false.
16
19
-`keepCookies` (optional, default: false) - keep cookies between tests when `restart` set to false.
17
20
-`waitForAction`: (optional) how long to wait after click, doubleClick or PressKey actions in ms. Default: 500
Copy file name to clipboardExpand all lines: docs/helpers/Protractor.md
+4
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ This helper should be configured in codecept.json
25
25
-`driver` - which protrator driver to use (local, direct, session, hosted, sauce, browserstack). By default set to 'hosted' which requires selenium server to be started.
26
26
-`restart` (optional, default: true) - restart browser between tests.
27
27
-`smartWait`: (optional) **enables [SmartWait](http://codecept.io/acceptance/#smartwait)**; wait for additional milliseconds for element to appear. Enable for 5 secs: "smartWait": 5000
28
+
-`disableScreenshots` (optional, default: false) - don't save screenshot on failure
29
+
-`uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites
30
+
-`keepBrowserState` (optional, default: false) - keep browser state between tests when `restart` set to false.
31
+
-`keepCookies` (optional, default: false) - keep cookies between tests when `restart` set to false.*
28
32
-`seleniumAddress` - Selenium address to connect (default: <http://localhost:4444/wd/hub>)
29
33
-`rootElement` - Root element of AngularJS application (default: body)
30
34
-`waitForTimeout`: (optional) sets default wait time in _ms_ for all `wait*` functions. 1000 by default.
Copy file name to clipboardExpand all lines: docs/helpers/SeleniumWebdriver.md
+3
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,9 @@ This helper should be configured in codecept.json
26
26
-`driver` - which protrator driver to use (local, direct, session, hosted, sauce, browserstack). By default set to 'hosted' which requires selenium server to be started.
27
27
-`restart` - restart browser between tests (default: true).
28
28
-`smartWait`: (optional) **enables SmartWait**; wait for additional milliseconds for element to appear. Enable for 5 secs: "smartWait": 5000
29
+
-`disableScreenshots` (optional, default: false) - don't save screenshot on failure
30
+
-`uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites
31
+
-`keepBrowserState` (optional, default: false) - keep browser state between tests when `restart` set to false.
29
32
-`keepCookies` (optional, default: false) - keep cookies between tests when `restart` set to false.*
30
33
-`seleniumAddress` - Selenium address to connect (default: <http://localhost:4444/wd/hub>)
31
34
-`waitForTimeout`: (optional) sets default wait time in _ms_ for all `wait*` functions. 1000 by default;
Copy file name to clipboardExpand all lines: docs/helpers/WebDriverIO.md
+3
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ This helper should be configured in codecept.json
27
27
-`browser` - browser in which perform testing
28
28
-`restart` (optional, default: true) - restart browser between tests.
29
29
-`smartWait`: (optional) **enables [SmartWait](http://codecept.io/acceptance/#smartwait)**; wait for additional milliseconds for element to appear. Enable for 5 secs: "smartWait": 5000
30
+
-`disableScreenshots` (optional, default: false) - don't save screenshot on failure
31
+
-`uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites
32
+
-`keepBrowserState` (optional, default: false) - keep browser state between tests when `restart` set to false.
30
33
-`keepCookies` (optional, default: false) - keep cookies between tests when `restart` set to false.
31
34
-`windowSize`: (optional) default window size. Set to `maximize` or a dimension in the format `640x480`.
32
35
-`waitForTimeout`: (option) sets default wait time in _ms_ for all `wait*` functions. 1000 by default;
Copy file name to clipboardExpand all lines: docs/reports.md
+77
Original file line number
Diff line number
Diff line change
@@ -141,3 +141,80 @@ codeceptjs run --reporter mochawesome
141
141
142
142
Result will be located at `output/index.html` file.
143
143
144
+
### Advanced usage
145
+
Want to have screenshots for failed tests?
146
+
Then add Mochawesome helper to your config:
147
+
```json
148
+
"helpers": {
149
+
"Mochawesome": {
150
+
"uniqueScreenshotNames": "true"
151
+
}
152
+
},
153
+
```
154
+
Then tests with failure will have screenshots.
155
+
156
+
### Configuration
157
+
158
+
This helper should be configured in codecept.json
159
+
160
+
-`uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites. This option should be the same as in common helper.
161
+
-`disableScreenshots` (optional, default: false) - don't save screenshot on failure. This option should be the same as in common helper.
162
+
163
+
Also if you will add Mochawesome helper, then you will able to add custom context in report:
* * `disableScreenshots` (optional, default: false) - don't save screenshot on failure
38
+
* * `uniqueScreenshotNames` (optional, default: false) - option to prevent screenshot override if you have scenarios with the same name in different suites
39
+
* * `keepBrowserState` (optional, default: false) - keep browser state between tests when `restart` set to false.
37
40
* * `keepCookies` (optional, default: false) - keep cookies between tests when `restart` set to false.
38
41
* * `waitForAction`: (optional) how long to wait after click, doubleClick or PressKey actions in ms. Default: 500
0 commit comments