pytest-bdd automation testing framework index.

Test More In Less Time

Run Automation Testing In Parallel On The LambdaTest Cloud

Start for free

Description

BDD library for the py.test runner

Support and updates

  • pytest-bdd has 1042 stars, 176 forks.
  • It has 1 major releases in the past 6 months.
  • It has 12 commits and there are 26 open pull requests.
  • It has 127 open issues and 169 have been closed.

Code statistics

  • pytest-bdd has 74 methods.

Blogs

Check out the latest blogs from LambdaTest on this topic:

Why Selenium WebDriver Should Be Your First Choice for Automation Testing

Developed in 2004 by Thoughtworks for internal usage, Selenium is a widely used tool for automated testing of web applications. Initially, Selenium IDE(Integrated Development Environment) was being used by multiple organizations and testers worldwide, benefits of automation testing with Selenium saved a lot of time and effort. The major downside of automation testing with Selenium IDE was that it would only work with Firefox. To resolve the issue, Selenium RC(Remote Control) was used which enabled Selenium to support automated cross browser testing.

Best 13 Tools To Test JavaScript Code

Unit and functional testing are the prime ways of verifying the JavaScript code quality. However, a host of tools are available that can also check code before or during its execution in order to test its quality and adherence to coding standards. With each tool having its unique features and advantages contributing to its testing capabilities, you can use the tool that best suits your need for performing JavaScript testing.

Difference Between Web And Mobile Application Testing

Smartphones have changed the way humans interact with technology. Be it travel, fitness, lifestyle, video games, or even services, it’s all just a few touches away (quite literally so). We only need to look at the growing throngs of smartphone or tablet users vs. desktop users to grasp this reality.

How To Identify Locators In Appium [With Examples]

Nowadays, automation is becoming integral to the overall quality of the products being developed. Especially for mobile applications, it’s even more important to implement automation robustly.

A Comprehensive Guide On JUnit 5 Extensions

JUnit is one of the most popular unit testing frameworks in the Java ecosystem. The JUnit 5 version (also known as Jupiter) contains many exciting innovations, including support for new features in Java 8 and above. However, many developers still prefer to use the JUnit 4 framework since certain features like parallel execution with JUnit 5 are still in the experimental phase.

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

License

pytest-bdd is lincensed under the MIT License

LambdaTest Community Discussions

Test case code snippets

API Testing - Check cookie handling

Description:

Verify that the API correctly handles cookies and returns the correct HTTP status code.

API Testing - Check slow requests

Description:

Verify that the API correctly handles slow requests and returns the correct HTTP status code and error message.

API Testing - Check malformed request

Description:

Verify that the API returns an error message if the request is malformed.

Anchor tag testing of webpage - Test anchor tags

Description:

All the anchor tags should have url value for href attribute

Downloads

pytest-bdd can be downloaded from it’s GitHub repository - https://github.com/pytest-dev/pytest-bdd

Other similar frameworks

Nose2

Nose2 is the successor to nose. Nose2's purpose is to extend unittest to make testing nicer and easier to understand. Can be considered as unittest with plugins.

grail

Grail is a library which allows test script creation based on steps. It helps to structure your tests and get rid of additional test documentation for your code.

robotframework-faker

Robot Framework keyword library wrapper for faker

Kiwi

Test management system

toolium

Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project

Frameworks to try

Vcr_ruby

Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests

Nunit

NUnit is a unit-testing framework for all .NET languages. Is completely rewritten with many new features and support for a wide range of .NET platforms.

Webtau

Testing API and framework for end-to-end integration and unit tests

Quick

Quick is a behavior-driven development framework for Swift and Objective-C. Inspired by RSpec, Specta, and Ginkgo. Quick comes together with Nimble

Behat

Behat is an open source BDD framework for PHP. Tool for delivering software that matters through continuous communication, deliberate discovery and automation.

Run pytest-bdd scripts on 3000+ browsers online

Perform automation testing with pytest-bdd on LambdaTest, the most powerful, fastest, and secure cloud-based platform to accelerate test execution speed.

Test Now