Test Generation Methods
E2E Builder (Step-Based Tests)
The E2E Builder creates browser-based tests that run against your deployed application.Creating an E2E Test
1
Go to Testing > Tests
Navigate to the Tests page
2
Click New Test
Click “New Test” button
3
Select Repository
Choose the repository for this test
4
Choose E2E
Select “E2E” as the test type
5
Open E2E Builder
You’re redirected to the visual builder
Building Steps
The E2E Builder provides a visual interface to create test flows:Navigation Steps
Interaction Steps
AI Steps
Use natural language for complex interactions:Assertion Steps
Data Steps
Authentication in E2E Tests
If your tests need to access protected pages, you can record your login flow directly in the E2E builder.Setting Up Auth
In the E2E builder:- Click the key icon to start recording authentication
- Log in to your app in the browser
- Paragon captures your auth session
- Save your test - the auth is saved with it
Running E2E Tests
E2E tests run against your deployed application (production, staging, or preview URL).E2E tests cannot run on PR events because there’s no deployed app yet. They run:
- Manually: Click run button
- On Schedule: Daily, weekly, custom
- On Push: After merge to production (if base URL is production)
E2E Test Results
After running, view:- Step-by-step breakdown: Each step with pass/fail and duration
- Screenshots: Captured at each step
- Video recording: Full test playback
- Console logs: Browser console output
- Network requests: API calls made during test
- Accessibility violations: WCAG issues detected
Code Test Generation (Unit & Integration)
Generate unit and integration tests that live in your repository.Creating Code Tests
1
Go to Testing > Tests
Navigate to the Tests page
2
Click New Test
Click “New Test” button
3
Select Repository
Choose the repository for this test
4
Choose Unit or Integration
Select the test type
5
Click Generate Tab
Switch to “Generate New” tab
6
Open Agent
You’re redirected to the AI agent
7
Describe Your Test
Tell the agent what to test in natural language
8
Review Generated Code
Agent creates the test file
9
Create or PR
Save directly or create a PR with the test
Writing Good Prompts
The better your prompt, the better the generated test.Unit Test Prompts
Be specific about the function and expected behavior:Integration Test Prompts
Specify the endpoint, inputs, and expected outputs:Supported Frameworks
Paragon generates tests in your preferred framework:
Framework is detected from your project config or can be manually specified.
Code Test Results
After running, view:- Test output: Standard framework output
- Assertion results: Each assertion with pass/fail
- Coverage (if enabled): Lines covered by test
- Duration: Time to run each test
Performance Tests
Create tests that measure page load performance.Creating Performance Tests
1
Go to Testing > Tests
Navigate to the Tests page
2
Click New Test
Click “New Test” button
3
Select Repository
Choose the repository
4
Choose Performance
Select “Performance” test type
5
Add URLs
Enter pages to test
6
Set Budgets
Configure performance thresholds
7
Configure Conditions
Set network and CPU throttling
8
Run Test
Execute the performance test
Performance Budgets
Set thresholds for key metrics:Test Conditions
Simulate real-world conditions: Network Throttling:- 4G (typical mobile)
- Fast 3G
- Slow 3G
- No throttling
- No throttle
- 2x slowdown
- 4x slowdown
- 6x slowdown
- Run 1-10 times for consistent results
Test Organization
Suites
Tests are organized into suites (folders):- Add to an existing suite
- Create a new suite
Editing Tests
Click any test to:- Update name or description
- Regenerate code with new prompt
- Move to different suite
- Delete test
Next Steps
Test Runner
Learn how tests run on PRs and pushes

