Skip to content

Commit 6916c8d

Browse files
committed
Update BrowserStack test workflow and config
Replaces npm cucumber commands with Playwright CLI in the BrowserStack GitHub Actions workflow. Cleans up .env by removing unused build and credential variables. Adds a new BrowserStack test report HTML file. Updates logs and removes an obsolete performance report.
1 parent 4ec9bb9 commit 6916c8d

File tree

9 files changed

+991
-10
lines changed

9 files changed

+991
-10
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.env

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
BROWSERSTACK_USERNAME=mikena_nwhv0R
33
BROWSERSTACK_ACCESS_KEY=kfJkTqofqbvXbkSiq5KD
44
BROWSERSTACK_PROJECT_NAME=demo Project
5-
BROWSERSTACK_BUILD_NAME=build_${BUILD_NUMBER:-local}
5+
BROWSERSTACK_BUILD_NAME=
66
BROWSERSTACK_SESSION_NAME=playwright_test_session
77

88
# BrowserStack Local Testing (set to true if testing localhost)
@@ -19,5 +19,4 @@ BROWSERSTACK_NETWORK_LOGS=true
1919

2020
# Your application configuration
2121
BASE_URL=https://www.google.com
22-
USERNAME=your_test_username
23-
PASSWORD=your_test_password
22+

.github/workflows/browserstack-ui-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ jobs:
4949
USERNAME: ${{ secrets.TEST_USERNAME }}
5050
PASSWORD: ${{ secrets.TEST_PASSWORD }}
5151
run: |
52-
npm run test:cucumber-browserstack
53-
npm run test:headed-browserstack:cucumber
52+
npx playwright test --config=playwright.browserstack.config.ts --project=browserstack-chrome
5453
5554
- name: Upload BrowserStack Test Results
5655
if: always()

browserstack-report/index.html

Lines changed: 71 additions & 0 deletions
Large diffs are not rendered by default.

log/key-metrics.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,105 @@
4848
"success": true,
4949
"failure": null,
5050
"worker": 97957
51+
},
52+
{
53+
"name": "sdk:testhub",
54+
"entryType": "measure",
55+
"startTime": 233.08529198169708,
56+
"duration": 917.0484999418259,
57+
"detail": null,
58+
"success": true,
59+
"failure": null,
60+
"worker": 35354
61+
},
62+
{
63+
"name": "sdk:percy",
64+
"entryType": "measure",
65+
"startTime": 1153.0137919187546,
66+
"duration": 0.37729203701019287,
67+
"detail": null,
68+
"success": true,
69+
"failure": null,
70+
"worker": 35354
71+
},
72+
{
73+
"name": "sdk:automate:local",
74+
"entryType": "measure",
75+
"startTime": 1153.677749991417,
76+
"duration": 0.20500004291534424,
77+
"detail": null,
78+
"success": true,
79+
"failure": null,
80+
"worker": 35354
81+
},
82+
{
83+
"name": "sdk:automate:hub-management",
84+
"entryType": "measure",
85+
"startTime": 6549.374042034149,
86+
"duration": 163.64312493801117,
87+
"detail": null,
88+
"success": true,
89+
"failure": null,
90+
"worker": 35354
91+
},
92+
{
93+
"name": "sdk:automate:print-buildlink",
94+
"entryType": "measure",
95+
"startTime": 52996.65904200077,
96+
"duration": 1063.2722920179367,
97+
"detail": null,
98+
"success": true,
99+
"failure": null,
100+
"worker": 35354
101+
},
102+
{
103+
"name": "sdk:testhub",
104+
"entryType": "measure",
105+
"startTime": 203.5870419740677,
106+
"duration": 995.7393749952316,
107+
"detail": null,
108+
"success": true,
109+
"failure": null,
110+
"worker": 50530
111+
},
112+
{
113+
"name": "sdk:percy",
114+
"entryType": "measure",
115+
"startTime": 1202.21875,
116+
"duration": 0.17270898818969727,
117+
"detail": null,
118+
"success": true,
119+
"failure": null,
120+
"worker": 50530
121+
},
122+
{
123+
"name": "sdk:automate:local",
124+
"entryType": "measure",
125+
"startTime": 1202.5379170179367,
126+
"duration": 0.11079192161560059,
127+
"detail": null,
128+
"success": true,
129+
"failure": null,
130+
"worker": 50530
131+
},
132+
{
133+
"name": "sdk:automate:hub-management",
134+
"entryType": "measure",
135+
"startTime": 6432.954833984375,
136+
"duration": 159.4064999818802,
137+
"detail": null,
138+
"success": true,
139+
"failure": null,
140+
"worker": 50530
141+
},
142+
{
143+
"name": "sdk:automate:print-buildlink",
144+
"entryType": "measure",
145+
"startTime": 51731.28666698933,
146+
"duration": 756.9035420417786,
147+
"detail": null,
148+
"success": true,
149+
"failure": null,
150+
"worker": 50530
51151
}
52152
]

log/performance-report/performance-report-98147-0.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)