Skip to content

Lexxx42/pytest-playwright-next-iteration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-playwright-next-iteration

Next iteration of 1st created autotest repository

1st repository can be found here: pytest-playwright

  • Pytest comand to start tests:
pytest .
  1. At the start of the code we have Qase repository

test repository from the first iteration

  1. Open the test case

test repository from the first iteration

  1. Let's create test case steps, which we already did with autotest

adding test case steps

  1. Save changes to the test case

adding test case steps

  1. In this project we will try to automate the process of filling/actualizing test's cases steps

  2. We need to the integration with Qase.io with the open API

  1. To update the steps of the test case we need Update test case method
  1. We need information
  • Token
  • Code for project
  • ID of the test case
  1. To get your API token you need to click on your profile avatar and select API Tokens

how to get API token

  1. 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
  1. Project code can be found on the web page of the project

project code

  1. Test case ID can be found on web page when you open it

test case id

  1. Fill the fields Header, code and id to test work of API

Update test case

  1. Add step to test case and fill the fields

filling step of test case

  1. All data ready to send. Click Try it! button and see response

response from server

  1. If response code is 200, then data of our test case is changed

test case id

  1. Use the command from the project root to start the auto test
pytest .

About

Next iteration of UI autotest using Pytest and Playwright

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages