JAIME ELIAS FLORES QUISPEjaimeelias.hashnode.dev·Nov 21, 2024Article on Pytest for API Testing: Comparison with Karate and SuperTestIntroduction In this article, we will explore Pytest, a popular Python testing framework, in the context of testing RESTful APIs, comparing it with other popular frameworks like Karate (for Java) and SuperTest (for Node.js). The goal is to provide a ...Discuss@Karate(Java)
Anix Lynchanixblog.hashnode.dev·Oct 4, 202420 Pytest concepts with Before-and-After Examples1. Setting up a Basic Test Function 🛠️ Boilerplate Code: def test_example(): assert 1 == 1 Use Case: Create a simple test function to verify basic functionality in your code. Goal: Write a basic pytest function to check if a condition holds tru...Discusspytest
Hemachandrahemachandra.hashnode.dev·Sep 29, 2024How to test/mock Configuration files in PythonIntroduction 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 ...Discuss·11 likes·80 readspytest
Simon Crowesimoncrowe.hashnode.dev·Sep 7, 2024Python Testing Part 1: isolating external calls and minimising mocksMocks are a necessary evil in Python testing. If overused, they essentially become "change detectors", meaning that every time you refactor the implementation of your code, you must update the mocks too. Ideally, your tests should verify what your co...Discuss·31 readsPython
Danny Crastoblog.danwald.me·Sep 5, 2024Shorten pytest's test namesI noticed that the unittest pipeline was failing. I opened up the logs and saw a wall of text that took about 20 pages to scroll through to see what was failing. It turned out to be an Assert failure where the input wasn't raising an exception. The p...DiscussPython
Kunaal Thanikkunaal.hashnode.dev·Sep 5, 2024CH02 - PageObjects, Fixtures, PytestChapter 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...DiscussPython Playwright UI Automationplaywright
Sadra Yahyapourblog.imsadra.me·Aug 9, 2024Python Open-Source Development: How I Build and Maintain Open-Source Repositories!Right now, you're probably using several open-source tools and benefiting from them. As an open-source enthusiast, I often follow a clear and reliable method for developing and maintaining my Python repositories. In this article, I will discuss the s...Discuss·1 like·171 readsPython
Kunaal Thanikkunaal.hashnode.dev·Jul 26, 2024Pytest FixturesFixtures: 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...DiscussAutomation Conceptstestguardians
Kunaal Thanikkunaal.hashnode.dev·Jul 26, 2024Page Object ModelThe Page Object Model (POM) is a design pattern in software testing where web page elements are represented as objects. Each page class encapsulates the page's behaviors and elements, promoting code reusability and maintainability by separating test ...Discuss·1 likeAutomation Conceptspage-object-model
Kunaal Thanikkunaal.hashnode.dev·Jul 18, 2024CH01- InitializationFirst of all i created a repo on GitHub https://github.com/kunaal-ai/para-bank-ui-automation then cloned on local using cmd git clone https://github.com/kunaal-ai/para-bank-ui-automation and installed pytest plugin with following command pip install...Discuss·28 readsPython Playwright UI Automationautomation