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.
Testing Pytest
Now that we have covered the essentials of web automation using playwright, we can move on to the next stage of the course that is testing web apps. Testing web apps literally means testing the functionality and the features of a web app. By testing web apps, we can ensure everything works as expected. To write tests in python, we'll use the pytest package. In this section, we'll go ahead and learn about the essentials of pytest required for this course. Now, if you're already familiar with pytest, you can feel free to skip the same. Later, we'll learn about the playwright plugin for pytest. So let's get started. First of all, we need to install pytest inside of our virtual environment. So in our terminal, we'll go ahead and just install Pytest using pip, so pip install Pytest, hit enter, let it go ahead and install the same. And now make sure that Pytest is installed inside of your virtual environment. Now we can make sure that Pytest is installed by checking its version. So we can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.