Testdriver generating tests
Skill testdriverai/testdriverai/ai/skills/testdriver-generating-tests
Computer-Use SDK for E2E QA Testing
npx -y skills add testdriverai/testdriverai --skill testdriver-generating-testsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Use AI coding agents and exploration mode to generate TestDriver tests
SKILL.md
1.5 KB, 284 tokens by cl100k_base, as published. Nobody here has run it
Instructions for Coding Agents
We recommend starting with our quickstart then supplying your coding agent with our agent instructions file.
<Card title="TestDriver Agent Instructions" icon="link" arrow="true" horizontal href="https://github.com/testdriverai/testdriverai/blob/main/ai/agents/testdriver.md?plain=1"> Copy the current version of our agent instructions to provide your coding agent with up-to-date instructions on how to generate TestDriver tests. </Card>Then, you can prompt your coding agent to generate tests. Here is an example prompt:
Make me a TestDriver test that does the following steps:
Navigate to practicetestautomation.com
Type username student into Username field
Type password Password123 into Password field
Push Submit button
Verify new page contains expected text 'logged in'
AI Exploration Mode
Within a test, the ai() method lets TestDriver autonomously figure out how to accomplish a task. It's useful for dynamic or unpredictable UIs where explicit actions may be difficult to define.
// Handle dynamic or unpredictable UI
await testdriver.ai('dismiss any popups or modals that appear');
<Info>Explicit commands are preferred for production tests, as they are cheaper, faster, and more reliable.</Info>