@empiricalrun/test-gen
v0.37.4
Published
Our agents that generate Playwright tests. There are 2 agents
Downloads
2,854
Readme
test-gen
Our agents that generate Playwright tests. There are 2 agents
- browsing agent
- code editing agent
Usage
npx @empiricalrun/test-gen TEST_GEN_TOKEN
Add new test
npx @empiricalrun/test-gen TEST_GEN_TOKEN
- This will trigger browsing agent to write a new test for this scenario
- See Test gen token: Base64 payload
Update existing test
npx @empiricalrun/test-gen TEST_GEN_TOKEN
- If the test case is already present in the file, the test gen agent will update the existing test as per the steps provided in the payload
- This will trigger code editing agent to write a new test for this scenario
- See Test gen token: Base64 payload
Test gen token: Base64 payload
Convert this object into a base64 payload - for new and update test.
const scenario = {
name: "incorrect password flow",
steps: [
"fill in the username as [email protected]",
"fill in the password as bazbaz",
"click on the login button",
],
group: "home",
};
btoa(JSON.stringify(scenario));