How to Prioritize Testing When Time is Limited
Learn effective strategies for prioritizing testing tasks when facing tight deadlines.
Best practices for writing reliable, maintainable end-to-end tests using TestDriver's AI engine. Learn how to structure prompts, handle dynamic content, and debug failures.
Automate and scale manual testing with AI ->
Writing tests with TestDriver’s AI engine is different from traditional selector-based testing. Instead of writing code that clicks specific CSS selectors, you describe what you want to accomplish in natural language.
❌ Avoid describing implementation details:
- prompt: Click the button with class "btn-primary" in the nav
✅ Describe user intent instead:
- prompt: Click the "Sign Up" button in the navigation
The second approach is resilient to UI changes — even if the button’s CSS class or position changes, TestDriver understands what you mean.
When referring to UI elements, use the visible label or text:
steps:
- prompt: Open the user settings menu in the top right
- prompt: Select "Account Preferences" from the dropdown
- prompt: Change the notification frequency to "Weekly"
- prompt: Click "Save Changes"
- prompt: Confirm that a success message appears
TestDriver can verify the state of your application:
- prompt: Assert that the user's name "Jane Doe" appears in the header
- prompt: Verify that there are exactly 3 items in the shopping cart
- prompt: Confirm that the error message is not visible
Group related actions into logical sequences:
version: 4
steps:
# Setup: log in first
- prompt: Navigate to https://app.example.com and log in with [email protected] / password123
# Core test: create a new project
- prompt: Click "New Project" in the sidebar
- prompt: Enter "My Test Project" as the project name
- prompt: Select "Web Application" as the project type
- prompt: Click "Create Project"
- prompt: Assert that we're now on the project dashboard with the name "My Test Project"
TestDriver automatically handles most loading states, but for long operations you can be explicit:
- prompt: Click "Generate Report" and wait for the report to finish generating
- prompt: Assert that the report PDF download link is available
For tests that need specific data, use your test environment’s setup:
- prompt: Navigate to /admin/users and find the user "[email protected]"
- prompt: Click "Edit" next to that user
- prompt: Change their role to "Administrator"
- prompt: Save the changes and confirm the role updated successfully
When a test fails, TestDriver provides:
“Element not found” — The AI couldn’t locate the described element:
“Assertion failed” — The expected state wasn’t met:
Include performance assertions in your tests:
- prompt: Navigate to the homepage and assert it loads within 3 seconds
- prompt: Open the product catalog and verify the page responds quickly without visible lag
Break complex flows into smaller, reusable test files:
# auth.yml - reusable login flow
version: 4
steps:
- prompt: Navigate to https://app.example.com/login
- prompt: Enter credentials [email protected] / password and click Sign In
- prompt: Assert the dashboard is visible
Then reference it in other tests using your CI configuration to run multiple test files in sequence.
Learn effective strategies for prioritizing testing tasks when facing tight deadlines.
This blog post discusses the strengths of TestNG as a testing framework for the Java ecosystem and introduces top three alternatives for JVM testing.
Discover effective strategies to improve your testing skills through real-world automation scenarios.
Discover best practices and strategies for testing AI-driven applications that leverage large language models (LLMs).
TestDriver uses computer-use AI to test any app - write tests in plain English and run them anywhere.