artes 1.7.4 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +781 -779
  2. package/assets/styles.css +4 -4
  3. package/cucumber.config.js +253 -253
  4. package/docs/ciExecutors.md +198 -198
  5. package/docs/emulationDevicesList.md +152 -152
  6. package/docs/functionDefinitions.md +2401 -2401
  7. package/docs/stepDefinitions.md +435 -433
  8. package/executer.js +266 -264
  9. package/index.js +50 -50
  10. package/package.json +56 -56
  11. package/src/helper/contextManager/browserManager.js +74 -74
  12. package/src/helper/contextManager/requestManager.js +23 -23
  13. package/src/helper/controller/elementController.js +210 -210
  14. package/src/helper/controller/findDuplicateTestNames.js +69 -69
  15. package/src/helper/controller/getEnvInfo.js +94 -94
  16. package/src/helper/controller/getExecutor.js +109 -109
  17. package/src/helper/controller/pomCollector.js +83 -83
  18. package/src/helper/controller/reportCustomizer.js +485 -485
  19. package/src/helper/controller/screenComparer.js +97 -108
  20. package/src/helper/controller/status-formatter.js +137 -137
  21. package/src/helper/controller/testCoverageCalculator.js +111 -111
  22. package/src/helper/executers/cleaner.js +23 -23
  23. package/src/helper/executers/exporter.js +19 -19
  24. package/src/helper/executers/helper.js +193 -191
  25. package/src/helper/executers/projectCreator.js +226 -222
  26. package/src/helper/executers/reportGenerator.js +91 -91
  27. package/src/helper/executers/testRunner.js +28 -28
  28. package/src/helper/executers/versionChecker.js +31 -31
  29. package/src/helper/imports/commons.js +65 -65
  30. package/src/helper/stepFunctions/APIActions.js +495 -495
  31. package/src/helper/stepFunctions/assertions.js +986 -986
  32. package/src/helper/stepFunctions/browserActions.js +87 -87
  33. package/src/helper/stepFunctions/elementInteractions.js +60 -60
  34. package/src/helper/stepFunctions/exporter.js +19 -19
  35. package/src/helper/stepFunctions/frameActions.js +72 -72
  36. package/src/helper/stepFunctions/keyboardActions.js +66 -66
  37. package/src/helper/stepFunctions/mouseActions.js +84 -84
  38. package/src/helper/stepFunctions/pageActions.js +43 -43
  39. package/src/hooks/context.js +15 -15
  40. package/src/hooks/hooks.js +287 -279
  41. package/src/stepDefinitions/API.steps.js +310 -310
  42. package/src/stepDefinitions/assertions.steps.js +1303 -1280
  43. package/src/stepDefinitions/browser.steps.js +74 -74
  44. package/src/stepDefinitions/frameActions.steps.js +76 -76
  45. package/src/stepDefinitions/keyboardActions.steps.js +264 -264
  46. package/src/stepDefinitions/mouseActions.steps.js +378 -378
  47. package/src/stepDefinitions/page.steps.js +71 -71
  48. package/src/stepDefinitions/random.steps.js +191 -191
@@ -1,198 +1,198 @@
1
- # CI/CD Executor Integration guide
2
-
3
- This document describes the environment variables used to identify which CI/CD runner is executing your tests. When these variables are detected, the corresponding runner will automatically appear in your report.
4
-
5
- ---
6
-
7
- ## How It Works
8
-
9
- The reporter inspects environment variables at runtime to detect the current CI/CD platform. **No configuration is needed** — simply ensure the variables below are present in your environment, and the correct runner will be shown in the report automatically.
10
-
11
- ### Supported Platforms
12
-
13
- | Platform | Auto-detected via |
14
- | --------------------- | ---------------------------------- |
15
- | [**GitHub Actions**](#github-actions) | `GITHUB_RUN_ID` |
16
- | [**Jenkins**](#jenkins) | `JENKINS_HOME` |
17
- | [**GitLab CI**](#gitlab-ci) | `CI_PIPELINE_ID` |
18
- | [**Bitbucket Pipelines**](#bitbucket-pipelines) | `BITBUCKET_BUILD_NUMBER` |
19
- | [**CircleCI**](#circleci) | `CIRCLE_WORKFLOW_ID` |
20
- | [**Azure Pipelines**](#azure-pipelines) | `BUILD_BUILDID` |
21
- | [**TeamCity**](#teamcity) | `BUILD_NUMBER` + `TEAMCITY_VERSION`|
22
- | [**Travis CI**](#travis-ci) | `TRAVIS_BUILD_NUMBER` |
23
- | [**Bamboo**](#bamboo) | `bamboo_buildNumber` |
24
- | [**Local Manual Run**](#local-manual-run) | Fallback — shown as "Local Run" |
25
-
26
- When none of the above variables are present, the executor is shown as **Manual Execution** in the report.
27
-
28
- ### Quick Reference — All Variables
29
-
30
- | Platform | Required (Detection) | Optional (Enrichment) |
31
- |---|---|---|
32
- | GitHub Actions | `GITHUB_RUN_ID` | `GITHUB_RUN_NUMBER`, `GITHUB_SERVER_URL`, `GITHUB_REPOSITORY` |
33
- | Jenkins | `JENKINS_HOME` | `JOB_NAME`, `BUILD_NUMBER`, `BUILD_URL` |
34
- | GitLab CI | `CI_PIPELINE_ID` | `CI_PIPELINE_IID`, `CI_PIPELINE_URL` |
35
- | Bitbucket | `BITBUCKET_BUILD_NUMBER` | `BITBUCKET_BUILD_URL` |
36
- | CircleCI | `CIRCLE_WORKFLOW_ID` | `CIRCLE_BUILD_NUM`, `CIRCLE_BUILD_URL` |
37
- | Azure Pipelines | `BUILD_BUILDID` | `BUILD_BUILDURI` |
38
- | TeamCity | `BUILD_NUMBER` + `TEAMCITY_VERSION` | `BUILD_URL` |
39
- | Travis CI | `TRAVIS_BUILD_NUMBER` | `TRAVIS_BUILD_WEB_URL` |
40
- | Bamboo | `bamboo_buildNumber` | `bamboo_resultsUrl` |
41
- ---
42
-
43
- ## Supported CI/CD Platforms
44
-
45
- ### GitHub Actions
46
-
47
- Automatically detected when running inside a GitHub Actions workflow.
48
-
49
- | Variable | Description | Example |
50
- |---|---|---|
51
- | `GITHUB_RUN_ID` | Unique ID of the workflow run *(required for detection)* | `9876543210` |
52
- | `GITHUB_RUN_NUMBER` | Sequential run number for the workflow | `42` |
53
- | `GITHUB_SERVER_URL` | Base URL of the GitHub server | `https://github.com` |
54
- | `GITHUB_REPOSITORY` | Owner and repository name | `my-org/my-repo` |
55
-
56
- > These variables are set automatically by GitHub Actions. No manual setup needed.
57
-
58
- ---
59
-
60
- ### Jenkins
61
-
62
- Detected when `JENKINS_HOME` is set in the environment.
63
-
64
- | Variable | Description | Example |
65
- |---|---|---|
66
- | `JENKINS_HOME` | Jenkins home directory path *(required for detection)* | `/var/jenkins_home` |
67
- | `JOB_NAME` | Name of the Jenkins job | `my-pipeline` |
68
- | `BUILD_NUMBER` | Sequential build number | `101` |
69
- | `BUILD_URL` | Full URL to the build page | `http://jenkins.example.com/job/my-pipeline/101/` |
70
-
71
- > These variables are set automatically by Jenkins. No manual setup needed.
72
-
73
- ---
74
-
75
- ### GitLab CI
76
-
77
- Detected when `CI_PIPELINE_ID` is set in the environment.
78
-
79
- | Variable | Description | Example |
80
- |---|---|---|
81
- | `CI_PIPELINE_ID` | Unique pipeline ID *(required for detection)* | `123456789` |
82
- | `CI_PIPELINE_IID` | Project-scoped pipeline number (used for display) | `55` |
83
- | `CI_PIPELINE_URL` | Full URL to the pipeline | `https://gitlab.com/my-org/my-repo/-/pipelines/55` |
84
-
85
- > These variables are set automatically by GitLab CI/CD. No manual setup needed.
86
-
87
- ---
88
-
89
- ### Bitbucket Pipelines
90
-
91
- Detected when `BITBUCKET_BUILD_NUMBER` is set in the environment.
92
-
93
- | Variable | Description | Example |
94
- |---|---|---|
95
- | `BITBUCKET_BUILD_NUMBER` | Unique build number *(required for detection)* | `77` |
96
- | `BITBUCKET_BUILD_URL` | URL to the Bitbucket pipeline build | `https://bitbucket.org/my-org/my-repo/addon/pipelines/home#!/results/77` |
97
-
98
- > These variables are set automatically by Bitbucket Pipelines. No manual setup needed.
99
-
100
- ---
101
-
102
- ### CircleCI
103
-
104
- Detected when `CIRCLE_WORKFLOW_ID` is set in the environment.
105
-
106
- | Variable | Description | Example |
107
- |---|---|---|
108
- | `CIRCLE_WORKFLOW_ID` | Unique workflow ID *(required for detection)* | `abc-123-def-456` |
109
- | `CIRCLE_BUILD_NUM` | Sequential build number | `88` |
110
- | `CIRCLE_BUILD_URL` | URL to the CircleCI build | `https://circleci.com/gh/my-org/my-repo/88` |
111
-
112
- > These variables are set automatically by CircleCI. No manual setup needed.
113
-
114
- ---
115
-
116
- ### Azure Pipelines
117
-
118
- Detected when `BUILD_BUILDID` is set in the environment.
119
-
120
- | Variable | Description | Example |
121
- |---|---|---|
122
- | `BUILD_BUILDID` | Unique build ID *(required for detection)* | `5001` |
123
- | `BUILD_BUILDURI` | URI to the Azure DevOps build | `vstfs:///Build/Build/5001` |
124
-
125
- > These variables are set automatically by Azure Pipelines. No manual setup needed.
126
-
127
- ---
128
-
129
- ### TeamCity
130
-
131
- Detected when **both** `BUILD_NUMBER` and `TEAMCITY_VERSION` are set.
132
-
133
- | Variable | Description | Example |
134
- |---|---|---|
135
- | `TEAMCITY_VERSION` | TeamCity server version *(required for detection)* | `2023.11` |
136
- | `BUILD_NUMBER` | Sequential build number *(required for detection)* | `99` |
137
- | `BUILD_URL` | URL to the TeamCity build | `http://teamcity.example.com/build/99` |
138
-
139
- > These variables are set automatically by TeamCity. No manual setup needed.
140
-
141
- ---
142
-
143
- ### Travis CI
144
-
145
- Detected when `TRAVIS_BUILD_NUMBER` is set in the environment.
146
-
147
- | Variable | Description | Example |
148
- |---|---|---|
149
- | `TRAVIS_BUILD_NUMBER` | Sequential build number *(required for detection)* | `123` |
150
- | `TRAVIS_BUILD_WEB_URL` | URL to the Travis CI build | `https://travis-ci.com/my-org/my-repo/builds/123` |
151
-
152
- > These variables are set automatically by Travis CI. No manual setup needed.
153
-
154
- ---
155
-
156
- ### Bamboo
157
-
158
- Detected when `bamboo_buildNumber` is set in the environment.
159
-
160
- | Variable | Description | Example |
161
- |---|---|---|
162
- | `bamboo_buildNumber` | Sequential build number *(required for detection)* | `56` |
163
- | `bamboo_resultsUrl` | URL to the Bamboo build results | `http://bamboo.example.com/browse/MY-PROJECT-56` |
164
-
165
- > These variables are set automatically by Bamboo. No manual setup needed.
166
-
167
- ---
168
-
169
- ### Local Manual Run
170
-
171
- If **none** of the above variables are detected, the report will show **"Local Run"** with build name `"Manual Execution"`. This is the default fallback for local development.
172
-
173
- ---
174
-
175
- ## Running in a Custom or Self-Hosted Environment
176
-
177
- If you're using a custom CI system or a Docker container and want a specific runner to appear in the report, manually export the required variables before running your tests.
178
-
179
- **Example — simulating a Jenkins build in a Docker container:**
180
-
181
- ```bash
182
- docker run \
183
- -e JENKINS_HOME=/var/jenkins_home \
184
- -e JOB_NAME="my-test-suite" \
185
- -e BUILD_NUMBER=42 \
186
- -e BUILD_URL="http://jenkins.example.com/job/my-test-suite/42/" \
187
- my-test-image npm test
188
- ```
189
-
190
- **Example — simulating a GitHub Actions build locally:**
191
-
192
- ```bash
193
- export GITHUB_RUN_ID=9999999999
194
- export GITHUB_RUN_NUMBER=1
195
- export GITHUB_SERVER_URL=https://github.com
196
- export GITHUB_REPOSITORY=my-org/my-repo
197
-
198
- ```
1
+ # CI/CD Executor Integration guide
2
+
3
+ This document describes the environment variables used to identify which CI/CD runner is executing your tests. When these variables are detected, the corresponding runner will automatically appear in your report.
4
+
5
+ ---
6
+
7
+ ## How It Works
8
+
9
+ The reporter inspects environment variables at runtime to detect the current CI/CD platform. **No configuration is needed** — simply ensure the variables below are present in your environment, and the correct runner will be shown in the report automatically.
10
+
11
+ ### Supported Platforms
12
+
13
+ | Platform | Auto-detected via |
14
+ | --------------------- | ---------------------------------- |
15
+ | [**GitHub Actions**](#github-actions) | `GITHUB_RUN_ID` |
16
+ | [**Jenkins**](#jenkins) | `JENKINS_HOME` |
17
+ | [**GitLab CI**](#gitlab-ci) | `CI_PIPELINE_ID` |
18
+ | [**Bitbucket Pipelines**](#bitbucket-pipelines) | `BITBUCKET_BUILD_NUMBER` |
19
+ | [**CircleCI**](#circleci) | `CIRCLE_WORKFLOW_ID` |
20
+ | [**Azure Pipelines**](#azure-pipelines) | `BUILD_BUILDID` |
21
+ | [**TeamCity**](#teamcity) | `BUILD_NUMBER` + `TEAMCITY_VERSION`|
22
+ | [**Travis CI**](#travis-ci) | `TRAVIS_BUILD_NUMBER` |
23
+ | [**Bamboo**](#bamboo) | `bamboo_buildNumber` |
24
+ | [**Local Manual Run**](#local-manual-run) | Fallback — shown as "Local Run" |
25
+
26
+ When none of the above variables are present, the executor is shown as **Manual Execution** in the report.
27
+
28
+ ### Quick Reference — All Variables
29
+
30
+ | Platform | Required (Detection) | Optional (Enrichment) |
31
+ |---|---|---|
32
+ | GitHub Actions | `GITHUB_RUN_ID` | `GITHUB_RUN_NUMBER`, `GITHUB_SERVER_URL`, `GITHUB_REPOSITORY` |
33
+ | Jenkins | `JENKINS_HOME` | `JOB_NAME`, `BUILD_NUMBER`, `BUILD_URL` |
34
+ | GitLab CI | `CI_PIPELINE_ID` | `CI_PIPELINE_IID`, `CI_PIPELINE_URL` |
35
+ | Bitbucket | `BITBUCKET_BUILD_NUMBER` | `BITBUCKET_BUILD_URL` |
36
+ | CircleCI | `CIRCLE_WORKFLOW_ID` | `CIRCLE_BUILD_NUM`, `CIRCLE_BUILD_URL` |
37
+ | Azure Pipelines | `BUILD_BUILDID` | `BUILD_BUILDURI` |
38
+ | TeamCity | `BUILD_NUMBER` + `TEAMCITY_VERSION` | `BUILD_URL` |
39
+ | Travis CI | `TRAVIS_BUILD_NUMBER` | `TRAVIS_BUILD_WEB_URL` |
40
+ | Bamboo | `bamboo_buildNumber` | `bamboo_resultsUrl` |
41
+ ---
42
+
43
+ ## Supported CI/CD Platforms
44
+
45
+ ### GitHub Actions
46
+
47
+ Automatically detected when running inside a GitHub Actions workflow.
48
+
49
+ | Variable | Description | Example |
50
+ |---|---|---|
51
+ | `GITHUB_RUN_ID` | Unique ID of the workflow run *(required for detection)* | `9876543210` |
52
+ | `GITHUB_RUN_NUMBER` | Sequential run number for the workflow | `42` |
53
+ | `GITHUB_SERVER_URL` | Base URL of the GitHub server | `https://github.com` |
54
+ | `GITHUB_REPOSITORY` | Owner and repository name | `my-org/my-repo` |
55
+
56
+ > These variables are set automatically by GitHub Actions. No manual setup needed.
57
+
58
+ ---
59
+
60
+ ### Jenkins
61
+
62
+ Detected when `JENKINS_HOME` is set in the environment.
63
+
64
+ | Variable | Description | Example |
65
+ |---|---|---|
66
+ | `JENKINS_HOME` | Jenkins home directory path *(required for detection)* | `/var/jenkins_home` |
67
+ | `JOB_NAME` | Name of the Jenkins job | `my-pipeline` |
68
+ | `BUILD_NUMBER` | Sequential build number | `101` |
69
+ | `BUILD_URL` | Full URL to the build page | `http://jenkins.example.com/job/my-pipeline/101/` |
70
+
71
+ > These variables are set automatically by Jenkins. No manual setup needed.
72
+
73
+ ---
74
+
75
+ ### GitLab CI
76
+
77
+ Detected when `CI_PIPELINE_ID` is set in the environment.
78
+
79
+ | Variable | Description | Example |
80
+ |---|---|---|
81
+ | `CI_PIPELINE_ID` | Unique pipeline ID *(required for detection)* | `123456789` |
82
+ | `CI_PIPELINE_IID` | Project-scoped pipeline number (used for display) | `55` |
83
+ | `CI_PIPELINE_URL` | Full URL to the pipeline | `https://gitlab.com/my-org/my-repo/-/pipelines/55` |
84
+
85
+ > These variables are set automatically by GitLab CI/CD. No manual setup needed.
86
+
87
+ ---
88
+
89
+ ### Bitbucket Pipelines
90
+
91
+ Detected when `BITBUCKET_BUILD_NUMBER` is set in the environment.
92
+
93
+ | Variable | Description | Example |
94
+ |---|---|---|
95
+ | `BITBUCKET_BUILD_NUMBER` | Unique build number *(required for detection)* | `77` |
96
+ | `BITBUCKET_BUILD_URL` | URL to the Bitbucket pipeline build | `https://bitbucket.org/my-org/my-repo/addon/pipelines/home#!/results/77` |
97
+
98
+ > These variables are set automatically by Bitbucket Pipelines. No manual setup needed.
99
+
100
+ ---
101
+
102
+ ### CircleCI
103
+
104
+ Detected when `CIRCLE_WORKFLOW_ID` is set in the environment.
105
+
106
+ | Variable | Description | Example |
107
+ |---|---|---|
108
+ | `CIRCLE_WORKFLOW_ID` | Unique workflow ID *(required for detection)* | `abc-123-def-456` |
109
+ | `CIRCLE_BUILD_NUM` | Sequential build number | `88` |
110
+ | `CIRCLE_BUILD_URL` | URL to the CircleCI build | `https://circleci.com/gh/my-org/my-repo/88` |
111
+
112
+ > These variables are set automatically by CircleCI. No manual setup needed.
113
+
114
+ ---
115
+
116
+ ### Azure Pipelines
117
+
118
+ Detected when `BUILD_BUILDID` is set in the environment.
119
+
120
+ | Variable | Description | Example |
121
+ |---|---|---|
122
+ | `BUILD_BUILDID` | Unique build ID *(required for detection)* | `5001` |
123
+ | `BUILD_BUILDURI` | URI to the Azure DevOps build | `vstfs:///Build/Build/5001` |
124
+
125
+ > These variables are set automatically by Azure Pipelines. No manual setup needed.
126
+
127
+ ---
128
+
129
+ ### TeamCity
130
+
131
+ Detected when **both** `BUILD_NUMBER` and `TEAMCITY_VERSION` are set.
132
+
133
+ | Variable | Description | Example |
134
+ |---|---|---|
135
+ | `TEAMCITY_VERSION` | TeamCity server version *(required for detection)* | `2023.11` |
136
+ | `BUILD_NUMBER` | Sequential build number *(required for detection)* | `99` |
137
+ | `BUILD_URL` | URL to the TeamCity build | `http://teamcity.example.com/build/99` |
138
+
139
+ > These variables are set automatically by TeamCity. No manual setup needed.
140
+
141
+ ---
142
+
143
+ ### Travis CI
144
+
145
+ Detected when `TRAVIS_BUILD_NUMBER` is set in the environment.
146
+
147
+ | Variable | Description | Example |
148
+ |---|---|---|
149
+ | `TRAVIS_BUILD_NUMBER` | Sequential build number *(required for detection)* | `123` |
150
+ | `TRAVIS_BUILD_WEB_URL` | URL to the Travis CI build | `https://travis-ci.com/my-org/my-repo/builds/123` |
151
+
152
+ > These variables are set automatically by Travis CI. No manual setup needed.
153
+
154
+ ---
155
+
156
+ ### Bamboo
157
+
158
+ Detected when `bamboo_buildNumber` is set in the environment.
159
+
160
+ | Variable | Description | Example |
161
+ |---|---|---|
162
+ | `bamboo_buildNumber` | Sequential build number *(required for detection)* | `56` |
163
+ | `bamboo_resultsUrl` | URL to the Bamboo build results | `http://bamboo.example.com/browse/MY-PROJECT-56` |
164
+
165
+ > These variables are set automatically by Bamboo. No manual setup needed.
166
+
167
+ ---
168
+
169
+ ### Local Manual Run
170
+
171
+ If **none** of the above variables are detected, the report will show **"Local Run"** with build name `"Manual Execution"`. This is the default fallback for local development.
172
+
173
+ ---
174
+
175
+ ## Running in a Custom or Self-Hosted Environment
176
+
177
+ If you're using a custom CI system or a Docker container and want a specific runner to appear in the report, manually export the required variables before running your tests.
178
+
179
+ **Example — simulating a Jenkins build in a Docker container:**
180
+
181
+ ```bash
182
+ docker run \
183
+ -e JENKINS_HOME=/var/jenkins_home \
184
+ -e JOB_NAME="my-test-suite" \
185
+ -e BUILD_NUMBER=42 \
186
+ -e BUILD_URL="http://jenkins.example.com/job/my-test-suite/42/" \
187
+ my-test-image npm test
188
+ ```
189
+
190
+ **Example — simulating a GitHub Actions build locally:**
191
+
192
+ ```bash
193
+ export GITHUB_RUN_ID=9999999999
194
+ export GITHUB_RUN_NUMBER=1
195
+ export GITHUB_SERVER_URL=https://github.com
196
+ export GITHUB_REPOSITORY=my-org/my-repo
197
+
198
+ ```