Oct 10, 2025 路 5 min read 路 When working in playwright , it is very important to understand the in-built fixtures such as Browser , context, page Just imagine how you will access a particular website. You will open a browser . This does the below tasks in the background Open...
Join discussion
Sep 29, 2024 路 10 min read 路 Introduction We will be using configuration files in our projects so frequently that, without a configuration file, it becomes difficult to change the code each time. Why do we need a configuration file? Imagine I have created a project that runs on ...
PPrem commented
Sep 5, 2024 路 3 min read 路 Chapter 02 - how to use Page Object Models, Fixtures, pyTest mark, Environment Variables, pytest.ini and conftest Recap: https://kunaal.hashnode.dev/automation-ch01-initialization Previously, we set up the testing framework using Playwright and Pytho...
Join discussion
Jul 26, 2024 路 2 min read 路 Fixtures: A pytest fixture is a function in the pytest framework that provides a fixed baseline environment for tests. This environment can include setting up database connections, preparing test data, or even creating temporary directories. Fixture...
Join discussion
Mar 10, 2024 路 3 min read 路 We all know the value of test data. It helps us identify bugs, ensure functionality, and build confidence in our systems. But what happens when your trusty test data libraries start to slow down under the weight of millions of records? This is where ...
Join discussionMar 6, 2024 路 2 min read 路 I had a discussion with a colleague the other day about randommess in FactoryBot objects. They were in favor of having randomness in their objects, their main argument being: If we have random values, eventually we are bound to find the edge cases. ...
Join discussionJun 20, 2022 路 6 min read 路 In this post I will highlight the most important features of unit testing with Pytest, Python's most popular testing framework! What is Unit Testing and Why does it Matter? Unit testing is a software development process in which the smallest units of...
Join discussion
Mar 11, 2021 路 4 min read 路 As we discussed in our post on getting started with Pytest, the framework allows us to re-use tests by making use of test fixtures and parameterized functions. In this post, we will learn how to do so. We will build on our simple calculator example t...
Join discussion