ScoutQA Website Testing

ScoutQA Website Testing

Runs AI-driven exploratory web testing with the ScoutQA CLI: smoke tests, accessibility checks and user-flow verification, in parallel runs.

Skill files1 file
SKILL.md376 lines
1
---
2
name: scoutqa-test
3
description: 'This skill should be used when the user asks to "test this website", "run exploratory testing", "check for accessibility issues", "verify the login flow works", "find bugs on this page", or requests automated QA testing. Triggers on web application testing scenarios including smoke tests, accessibility audits, e-commerce flows, and user flow validation using ScoutQA CLI. Use this skill proactively after implementing web application features to verify they work correctly.'
4
---
5
6
# ScoutQA Testing Skill
7
8
Perform AI-powered exploratory testing on web applications using the `scoutqa` CLI.
9
10
**Think of ScoutQA as an intelligent testing partner** that can autonomously explore, discover issues, and verify features. Delegate testing to multiple parallel ScoutQA executions to maximize coverage while saving time.
11
12
## When to Use This Skill
13
14
Use this skill in two scenarios:
15
16
1. **User requests testing** - When the user explicitly asks to test a website or verify functionality
17
2. **Proactive verification** - After implementing web features, automatically run tests to verify the implementation works correctly
18
19
**Example proactive usage:**
20
21
- After implementing a login form → Test the authentication flow
22
- After adding form validation → Verify validation rules and error handling
23
- After building a checkout flow → Test the end-to-end purchase process
24
- After fixing a bug → Verify the fix works and didn't break other features
25
26
**Best practice**: When you finish implementing a web feature, proactively start a ScoutQA test in the background to verify it works while you continue with other tasks.
27
28
## Running Tests
29
30
### Testing Workflow
31
32
Copy this checklist and track your progress:
33
34
Testing Progress:
35
36
- [ ] Write specific test prompt with clear expectations
37
- [ ] Run scoutqa command in background
38
- [ ] Inform user of execution ID and browser URL
39
- [ ] Extract and analyze results
40
41
**Step 1: Write specific test prompt**
42
43
See "Writing Effective Prompts" section below for guidelines.
44
45
**Step 2: Run scoutqa command**
46
47
**IMPORTANT**: Use the Bash tool's timeout parameter (5000ms = 5 seconds) to capture execution details:
48
49
When calling the Bash tool, set `timeout: 5000` as a parameter:
50
51
- This is the Bash tool's built-in timeout parameter in Claude Code (NOT the Unix `timeout` command)
52
- After 5 seconds, the Bash tool returns control with a task ID and the process continues running in the background
53
- This is different from Unix `timeout` which kills the process - here the process keeps running
54
- The first 5 seconds capture the execution ID and browser URL from ScoutQA's output
55
- The test continues running remotely on ScoutQA's infrastructure with the background task
56
57
```bash
58
scoutqa --url "https://example.com" --prompt "Your test instructions"
59
```
60
61
In the first few seconds, the command will output:
62
63
- **Execution ID** (e.g., `019b831d-xxx`)
64
- **Browser URL** (e.g., `https://app.scoutqa.ai/t/019b831d-xxx`)
65
- Initial tool calls showing test progress
66
67
After the 5-second timeout, the Bash tool returns a task ID and the command continues running in the background. You can work on other tasks while the test runs. The timeout is only to capture the initial output (execution ID and browser URL) - the test keeps running both locally as a background task and remotely on ScoutQA's infrastructure.
68
69
**Step 3: Inform user of execution ID and browser URL**
70
71
After the Bash tool returns with the task ID (having captured the execution details in the first 5 seconds), inform the user of:
72
73
- The ScoutQA execution ID and browser URL so they can monitor progress in their browser
74
- The background task ID if they want to check local command output later
75
76
The test continues running in the background while you continue other work.
77
78
**Step 4: Extract and analyze results**
79
80
See "Presenting Results" section below for the complete format.
81
82
### Command Options
83
84
- `--url` (required): Website URL to test (supports `localhost` / `127.0.0.1`)
85
- `--prompt` (required): Natural language testing instructions
86
- `--project-id` (optional): Associate with a project for tracking
87
- `-v, --verbose` (optional): Show all tool calls including internal ones
88
89
### Local Testing Support
90
91
ScoutQA supports testing `localhost` and `127.0.0.1` URLs autonomously — no manual setup required.
92
93
```bash
94
# Seamlessly test a locally running app when you're developing your app
95
scoutqa --url "http://localhost:3000" --prompt "Test the registration form"
96
```
97
98
### When to Use Each Command
99
100
**Starting a new test?** → Use `scoutqa --url --prompt`
101
**Verifying a known issue?** → Use `scoutqa issue-verify --issue-id <id>`
102
**Finding issue IDs from an execution?** → Use `scoutqa list-issues --execution-id <id>`
103
**Agent needs more context?** → Use `scoutqa send-message` (see "Following Up on Stuck Executions")
104
105
## Writing Effective Prompts
106
107
Focus on **what to explore and verify**, not prescriptive steps. ScoutQA autonomously determines how to test.
108
109
**Example: User registration flow**
110
111
```bash
112
scoutqa --url "https://example.com" --prompt "
113
Explore the user registration flow. Test form validation edge cases,
114
verify error handling, and check accessibility compliance.
115
"
116
```
117
118
**Example: E-commerce checkout**
119
120
```bash
121
scoutqa --url "https://shop.example.com" --prompt "
122
Test the checkout flow. Verify pricing calculations, cart persistence,
123
payment options, and mobile responsiveness.
124
"
125
```
126
127
**Example: Running parallel tests for comprehensive coverage**
128
129
Launch multiple tests in parallel by making multiple Bash tool calls in a single message, each with the Bash tool's `timeout` parameter set to `5000` (milliseconds):
130
131
```bash
132
# Test 1: Authentication & security
133
scoutqa --url "https://app.example.com" --prompt "
134
Explore authentication: login/logout, session handling, password reset,
135
and security edge cases.
136
"
137
138
# Test 2: Core features (runs in parallel)
139
scoutqa --url "https://app.example.com" --prompt "
140
Test dashboard and main user workflows. Verify data loading,
141
CRUD operations, and search functionality.
142
"
143
144
# Test 3: Accessibility (runs in parallel)
145
scoutqa --url "https://app.example.com" --prompt "
146
Conduct accessibility audit: WCAG compliance, keyboard navigation,
147
screen reader support, color contrast.
148
"
149
```
150
151
**Implementation**: Send a single message with three Bash tool calls. For each Bash tool invocation, set the `timeout` parameter to `5000` milliseconds. After 5 seconds, each Bash call returns with a task ID while the processes continue running in the background. This captures the execution ID and browser URL from each test in the initial output, then all three continue running in parallel (both as background tasks locally and remotely on ScoutQA's infrastructure).
152
153
**Key guidelines:**
154
155
- Describe **what to test**, not **how to test** (ScoutQA figures out the steps)
156
- Focus on goals, edge cases, and concerns
157
- Run multiple parallel executions for different test areas
158
- Trust ScoutQA to autonomously explore and discover issues
159
- Always set the Bash tool's `timeout` parameter to `5000` milliseconds when calling scoutqa commands (this returns control after 5 seconds while the process continues in the background)
160
- For parallel tests, make multiple Bash tool calls in a single message
161
- Remember: Bash tool timeout ≠ Unix timeout command (Bash timeout continues the process in background, Unix timeout kills it)
162
163
### Common Test Scenarios
164
165
**Post-deployment smoke test:**
166
167
```bash
168
scoutqa --url "$URL" --prompt "
169
Smoke test: verify critical functionality works after deployment.
170
Check homepage, navigation, login/logout, and key user flows.
171
"
172
```
173
174
**Accessibility audit:**
175
176
```bash
177
scoutqa --url "$URL" --prompt "
178
Audit accessibility: WCAG 2.1 AA compliance, keyboard navigation,
179
screen reader support, color contrast, and semantic HTML.
180
"
181
```
182
183
**E-commerce testing:**
184
185
```bash
186
scoutqa --url "$URL" --prompt "
187
Explore e-commerce functionality: product search/filtering,
188
cart operations, checkout flow, and pricing calculations.
189
"
190
```
191
192
**SaaS application:**
193
194
```bash
195
scoutqa --url "$URL" --prompt "
196
Test SaaS app: authentication, dashboard, CRUD operations,
197
permissions, and data integrity.
198
"
199
```
200
201
**Form validation:**
202
203
```bash
204
scoutqa --url "$URL" --prompt "
205
Test form validation: edge cases, error handling, required fields,
206
format validation, and successful submission.
207
"
208
```
209
210
**Mobile responsiveness:**
211
212
```bash
213
scoutqa --url "$URL" --prompt "
214
Check mobile experience: responsive layout, navigation,
215
touch interactions, and viewport behavior.
216
"
217
```
218
219
**Verification of a known issue:**
220
221
```bash
222
# First, find issue IDs from a previous execution
223
scoutqa list-issues --execution-id <executionId>
224
225
# Then verify the issue (creates a new verification execution automatically)
226
scoutqa issue-verify --issue-id <issueId>
227
```
228
229
The `issue-verify` command will:
230
231
1. Create a verification execution for the issue
232
2. Show the execution ID and browser URL
233
3. Stream the agent's verification progress in real-time
234
4. Display a completion summary with a link to results
235
236
**Feature verification (after implementation):**
237
238
```bash
239
scoutqa --url "$URL" --prompt "
240
Verify the new [feature name] works correctly. Test core functionality,
241
edge cases, error handling, and integration with existing features.
242
"
243
```
244
245
**Example: Proactive testing after coding a feature**
246
247
After implementing a user registration form, automatically verify it works:
248
249
```bash
250
scoutqa --url "http://localhost:3000/register" --prompt "
251
Test the newly implemented registration form. Verify:
252
- Form validation (email format, password strength, required fields)
253
- Error messages display correctly
254
- Successful registration flow
255
- Edge cases (duplicate emails, special characters, etc.)
256
"
257
```
258
259
This catches issues immediately while the implementation is fresh in context.
260
261
## Listing Issues
262
263
Use `scoutqa list-issues` to browse issues found in a previous execution. This is useful for finding issue IDs to use with `issue-verify`.
264
265
```bash
266
scoutqa list-issues --execution-id <executionId>
267
```
268
269
**Options:**
270
271
- `--execution-id` (required): Execution ID (from the `/t/<executionId>` URL or CLI output)
272
273
**Example output:**
274
275
```
276
Showing 3 issues:
277
278
🔴 019c-abc1
279
Login button unresponsive on mobile
280
Severity: critical | Category: usability | Status: open
281
282
🟠 019c-abc2
283
Missing form validation on email field
284
Severity: high | Category: functional | Status: open
285
286
🟡 019c-abc3
287
Color contrast insufficient on footer links
288
Severity: medium | Category: accessibility | Status: resolved
289
```
290
291
## Presenting Results
292
293
### Immediate Presentation (After Starting Test)
294
295
Right after running the scoutqa command, present the execution details to the user:
296
297
```markdown
298
**ScoutQA Test Started**
299
300
Execution ID: `019b831d-xxx`
301
View Live: https://app.scoutqa.ai/t/019b831d-xxx
302
303
The test is running remotely. You can view real-time progress in your browser at the link above while I continue with other tasks.
304
```
305
306
### Final Results (After Completion)
307
308
When the execution completes, use this format to present findings:
309
310
```markdown
311
**ScoutQA Test Results**
312
313
Execution ID: `ex_abc123`
314
315
**Issues Found:**
316
317
[High] Accessibility: Missing alt text on logo image
318
319
- Impact: Screen readers cannot describe the logo
320
- Location: Header navigation
321
322
[Medium] Usability: Submit button not visible on mobile viewport
323
324
- Impact: Users cannot complete form on mobile devices
325
- Location: Contact form, bottom of page
326
327
[Low] Functional: Search returns no results for valid queries
328
329
- Impact: Search feature appears broken
330
- Location: Main search bar
331
332
**Summary:** Found 3 issues across accessibility, usability, and functional categories. See full interactive report with screenshots at the URL above.
333
```
334
335
Always include:
336
337
- **Execution ID** (e.g., `ex_abc123`) for reference
338
- **Issues found** with severity, category (accessibility, usability, functional), impact, and location
339
340
## Following Up on Stuck Executions
341
342
If the remote agent gets stuck or needs clarification, use `send-message` to continue:
343
344
```bash
345
# Example: Agent is stuck at login, user provides credentials
346
scoutqa send-message --execution-id ex_abc123 --prompt "
347
Use these test credentials: username: testuser@example.com, password: TestPass123
348
"
349
350
# Example: Agent asks which flow to test next
351
scoutqa send-message --execution-id ex_abc123 --prompt "
352
Focus on the checkout flow next, skip the wishlist feature
353
"
354
```
355
356
## Checking Test Results
357
358
ScoutQA tests run remotely on ScoutQA's infrastructure. After starting a test with a short timeout to capture the execution ID:
359
360
1. The test continues running remotely (not locally in background)
361
2. You can continue other work immediately
362
3. To check results later, visit the browser URL provided when the test started
363
4. Alternatively, use `scoutqa get-execution --execution-id <id>` to fetch results via CLI
364
365
**Best practice**: Start tests by setting the Bash tool's `timeout` parameter to `5000` milliseconds. After 5 seconds, the Bash tool returns control with a task ID and the execution details (execution ID and browser URL) while the test continues running in the background. You can then continue other work and check results on ScoutQA's website or via CLI when needed.
366
367
## Troubleshooting
368
369
| Issue | Solution |
370
| ------------------------------ | ----------------------------------------------------------- |
371
| `command not found: scoutqa` | Install CLI: `npm i -g @scoutqa/cli@latest` |
372
| Auth expired / unauthorized | Run `scoutqa auth login` |
373
| Test hangs or needs input | Use `scoutqa send-message --execution-id` |
374
| Check test results | Visit browser URL or `scoutqa get-execution --execution-id` |
375
| Need issue ID for verification | Run `scoutqa list-issues --execution-id <id>` |
376

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…