1st repository can be found here: pytest-playwright
- Pytest comand to start tests:
pytest .
- At the start of the code we have Qase repository
- Open the test case
- Let's create test case steps, which we already did with autotest
- Save changes to the test case
-
In this project we will try to automate the process of filling/actualizing test's cases steps
-
We need to the integration with Qase.io with the open API
- To update the steps of the test case we need Update test case method
- We need information
- Token
- Code for project
- ID of the test case
- To get your API token you need to click on your profile avatar and select API Tokens
- Create .env file in your project root directory and add your API token.
- Replace YOUR_API_TOKEN with your API token.
- QASE_DOC=True if you whant to change data of your test case
QASE_TOKEN=YOUR_API_TOKEN
QASE_DOC=True
- Project code can be found on the web page of the project
- Test case ID can be found on web page when you open it
- Fill the fields Header, code and id to test work of API
- Add step to test case and fill the fields
- All data ready to send. Click Try it! button and see response
- If response code is 200, then data of our test case is changed
- Use the command from the project root to start the auto test
pytest .