Pytest Tutorial - 1 | What is Pytest?

Welcome dear readers, in this series of Pytest tutorials.


If you are looking for a comprehensive tutorial in automation testing using pytest, I assure you that your wait is over!

To understand what pytest is, you first need to understand the basic test automation use case first. As a Test Automation engineer, you will always be writing tests for some application under test.

Now, in order to execute your tests, 

  • you may possibly need to login, 

  • Create test data on the fly

  • Run your tests with multiple test data sets (to possibly verify boundary value conditions/etc)

  • Report your test results in a readable format

  • Store the results

I’m pretty sure that we test engineers are capable enough to achieve all of the above through python.

And you know what, pytest is exactly created to help avoid the time spent on organizing all the above.

It seamlessly helps to do all above in an elegant way.

Pytest takes care of 

  • Discovering all your tests to run

  • Pre-requisites for your tests (logins/test data creation/etc/ use cases are numerous)

  • Report your tests, it actually gives detailed info on failing assert statements

Over the course of these tutorials, you will find out how flexible pytest is and how you can use it for your own/your organization's testing use cases.

Comments

Popular posts from this blog

Pytest Tutorial - 8 | Advanced - Parametrization Techniques

Pytest Tutorial - 6 | Intermediate - Parametrization in detail

Pytest Tutorial - 4 | The Basics - Testing Concepts and Types