Before you begin
Prerequisites:- A web application to test
- GitHub repository of the web application
- Slack
Step 1: Create an account on the Playmatic dashboard
Navigate to https://www.playmatic.ai/login and create an account.Step 2: Connect GitHub
Use the link on the dashboard to connect your GitHub and choose a working directory for the Playmatic agent.Step 3: Connect Slack
Use the link on the dashboard to connect Playmatic to your workspace. Now, invite Playmatic into a channel so you can start interacting with it. You can type/invite @playmatic in the desired channel.
Step 4: Create your first tests
Let’s start with a simple ask to get coverage on your core flows.- Read the existing files in your repo
- Create a test plan with test scenarios covering happy and unhappy paths
- Ask for approval
- Ask for help on any prerequisites required to run the test
- Write and validate tests using its own machine
Step 5: Review the tests
After a few loops, Playmatic will push a PR for all the working tests, and a draft PR for the tests that need help fixing. If the Playmatic agent discovers any bugs while building the tests, it will report them in the same Slack thread.Step 6: Run the tests
To verify that the test works, we’ll run the test locally. Pull down the branch that Playmatic created for the working tests.Pro Tips for beginners
Be specific with your requests
Be specific with your requests
If you have a clear idea of the flows that you want the agent to write tests for, be specific.Instead of:
@playmatic test the app.Try: @playmatic test the API key flows in the settings.Provide context to help testing
Provide context to help testing
If you believe that the agent might need specific setup or credentials/variables to be able to write and run tests, provide this to the agent.
@playmatic, use the API endpoints from the services folder to mock responses.Use step-by-step instructions
Use step-by-step instructions
For complex flows, break down the test into steps.