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
Use the [faker.js][12] package to generate fake data inside examples on your gherkin tests
710
+
Use the [faker.js][16] package to generate fake data inside examples on your gherkin tests
627
711
628
-
![Faker.js][13]
712
+
![Faker.js][17]
629
713
630
714
#### Usage
631
715
@@ -663,7 +747,7 @@ Scenario Outline: ...
663
747
664
748
## pauseOnFail
665
749
666
-
Automatically launches [interactive pause][14] when a test fails.
750
+
Automatically launches [interactive pause][18] when a test fails.
667
751
668
752
Useful for debugging flaky tests on local environment.
669
753
Add this plugin to config file:
@@ -679,6 +763,20 @@ Enable it manually on each run via `-p` option:
679
763
680
764
npx codeceptjs run -p pauseOnFail
681
765
766
+
## reporter
767
+
768
+
Type: Allure
769
+
770
+
### pendingCase
771
+
772
+
Mark a test case as pending
773
+
774
+
#### Parameters
775
+
776
+
- `testName` **[string][1]** Name of the test case
777
+
- `timestamp` **[number][19]** Timestamp of the test case
778
+
- `opts` **[Object][9]** Options for the test case (optional, default `{}`)
779
+
682
780
## retryFailedStep
683
781
684
782
Retries each failed step in a test.
@@ -846,14 +944,14 @@ Possible config options:
846
944
847
945
## selenoid
848
946
849
-
[Selenoid][15] plugin automatically starts browsers and video recording.
947
+
[Selenoid][20] plugin automatically starts browsers and video recording.
850
948
Works with WebDriver helper.
851
949
852
950
### Prerequisite
853
951
854
952
This plugin **requires Docker** to be installed.
855
953
856
-
> If you have issues starting Selenoid with this plugin consider using the official [Configuration Manager][16] tool from Selenoid
954
+
> If you have issues starting Selenoid with this plugin consider using the official [Configuration Manager][21] tool from Selenoid
857
955
858
956
### Usage
859
957
@@ -882,7 +980,7 @@ plugins: {
882
980
}
883
981
```
884
982
885
-
When `autoCreate` is enabled it will pull the [latest Selenoid from DockerHub][17] and start Selenoid automatically.
983
+
When `autoCreate` is enabled it will pull the [latest Selenoid from DockerHub][22] and start Selenoid automatically.
886
984
It will also create `browsers.json` file required by Selenoid.
887
985
888
986
In automatic mode the latest version of browser will be used for tests. It is recommended to specify exact version of each browser inside `browsers.json` file.
@@ -894,10 +992,10 @@ In automatic mode the latest version of browser will be used for tests. It is re
894
992
While this plugin can create containers for you for better control it is recommended to create and launch containers manually.
895
993
This is especially useful for Continous Integration server as you can configure scaling for Selenoid containers.
896
994
897
-
> Use [Selenoid Configuration Manager][16] to create and start containers semi-automatically.
995
+
> Use [Selenoid Configuration Manager][21] to create and start containers semi-automatically.
898
996
899
997
1. Create `browsers.json` file in the same directory `codecept.conf.js` is located
900
-
[Refer to Selenoid documentation][18] to know more about browsers.json.
998
+
[Refer to Selenoid documentation][23] to know more about browsers.json.
901
999
902
1000
_Sample browsers.json_
903
1001
@@ -922,7 +1020,7 @@ _Sample browsers.json_
922
1020
923
1021
2. Create Selenoid container
924
1022
925
-
Run the following command to create a container. To know more [refer here][19]
1023
+
Run the following command to create a container. To know more [refer here][24]
926
1024
927
1025
```bash
928
1026
docker create \
@@ -955,15 +1053,15 @@ When `allure` plugin is enabled a video is attached to report automatically.
955
1053
| enableVideo | Enable video recording and use `video` folder of output (default: false) |
956
1054
| enableLog | Enable log recording and use `logs` folder of output (default: false) |
957
1055
| deletePassed | Delete video and logs of passed tests (default : true) |
958
-
| additionalParams | example: `additionalParams:'--env TEST=test'` [Refer here][20] to know more |
1056
+
| additionalParams | example: `additionalParams:'--env TEST=test'` [Refer here][25] to know more |
959
1057
960
1058
### Parameters
961
1059
962
1060
- `config`
963
1061
964
1062
## stepByStepReport
965
1063
966
-
![step-by-step-report][21]
1064
+
![step-by-step-report][26]
967
1065
968
1066
Generates step by step report for a test.
969
1067
After each step in a test a screenshot is created. After test executed screenshots are combined into slideshow.
@@ -1144,7 +1242,7 @@ This plugin allows to run webdriverio services like:
1144
1242
- browserstack
1145
1243
- appium
1146
1244
1147
-
A complete list of all available services can be found on [webdriverio website][22].
1245
+
A complete list of all available services can be found on [webdriverio website][27].
1148
1246
1149
1247
#### Setup
1150
1248
@@ -1156,7 +1254,7 @@ See examples below:
1156
1254
1157
1255
#### Selenium Standalone Service
1158
1256
1159
-
Install `@wdio/selenium-standalone-service` package, as [described here][23].
1257
+
Install `@wdio/selenium-standalone-service` package, as [described here][28].
1160
1258
It is important to make sure it is compatible with current webdriverio version.
1161
1259
1162
1260
Enable `wdio` plugin in plugins list and add `selenium-standalone` service:
@@ -1175,7 +1273,7 @@ Please note, this service can be used with Protractor helper as well!
1175
1273
1176
1274
#### Sauce Service
1177
1275
1178
-
Install `@wdio/sauce-service` package, as [described here][24].
1276
+
Install `@wdio/sauce-service` package, as [described here][29].
1179
1277
It is important to make sure it is compatible with current webdriverio version.
1180
1278
1181
1279
Enable `wdio` plugin in plugins list and add `sauce` service:
@@ -1205,50 +1303,60 @@ In the same manner additional services from webdriverio can be installed, enable
0 commit comments