From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Running tests

Running tests

Now that our test cases are ready, we can go ahead and run our test. So let's open the terminal and run our test. Now provide the hyphen V flag so that we get to see the function names and the progress as well. Hit enter. It will go ahead and perform all of the tests. So it passed the first test, passed the second test, and passed the third test as well. So you can see we successfully performed a issue creation, and also validated that it's been created. So if we go ahead and take a look at our directory, we should find the screenshot as well. And if I take a look at the same, you can see our home page, that is Mularahol test, is the name of our repository and inside of the issues of the same we have our sample issue that is bug that went wrong so that's how we created a sample issue in the github repository using the github apis that is first of all we created a access token then we created the username and the repo name then using the pytest fixtures we created a api context which…

Contents