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
{{ message }}
Repository navigation
Commit 54740fe
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,21 +197,21 @@ $env:ENV="qa"; npm run test:serial
197
197
ENV=qa npm run test:serial
198
198
```
199
199
200
-
6. For executing API test cases, please provide "ENV" value as "qaApi" or "devApi":
200
+
6. For executing API test cases, please provide "ENV" value as "qaApi" or "devApi". ReqRes API tests also require `REQRES_API_KEY`, because ReqRes expects the `x-api-key` request header:
201
201
202
202
**Windows CMD:**
203
203
```batch
204
-
set ENV=qaApi && npm run test:api
204
+
set "ENV=qaApi" && set "REQRES_API_KEY=your_reqres_key" && npm run test:api
205
205
```
206
206
207
207
**Windows PowerShell:**
208
208
```powershell
209
-
$env:ENV="qaApi"; npm run test:api
209
+
$env:ENV="qaApi"; $env:REQRES_API_KEY="your_reqres_key"; npm run test:api
210
210
```
211
211
212
212
**Mac/Linux/WSL:**
213
213
```bash
214
-
ENV=qaApi npm run test:api
214
+
ENV=qaApi REQRES_API_KEY=your_reqres_key npm run test:api
0 commit comments