
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Discover how generative AI automates test case and data generation, enables on-demand test generation, and enhances coverage with GPT-3/4 and ChatGPT.
Explore practical applications of AI tools in software testing, including test case generation, exploratory testing with insights, and test data generation, powered by open AI and BDD with Gherkin features.
Use AI prompts to generate test cases for the WebDriver University contact us page, covering form validation, required fields, and error messages. Learn how prompts shape AI outputs.
Leverage AI prompts to generate and validate test cases for a contact us page, explore prompt design, and create test plans for manual testing tasks.
Harness no-code AI tools and local models with GPT-for-all to generate test cases for the contact us page, including input validation and success or error messages, offline and online.
Learn why python excels in testing and AI, thanks to simplicity, cross-platform support, and powerful libraries like playwright, requests, transformers, beehive, and OpenAI's API for automated UI and API tests.
Explore a simple Python login program that uses variables, a function, and if-else logic to validate credentials against a JSON-backed list of test cases, illustrating basic testing concepts.
Install and configure Visual Studio Code as a Python-friendly IDE, install essential Microsoft extensions for debugging, code execution, formatting, and icons, and tailor themes and extensions for automated testing.
Explore Python basics: declare variables of strings, integers, floats, booleans, and none, and print data with f-strings. Practice lists, dictionaries, and sets, including unique values and accessing keys.
Learn to write reusable Python functions that organize code using def, parameters, and return. Validate emails and calculate areas with simple function examples and print statements.
Explore robust testing through exception handling using a simple divide function that demonstrates try and catch for division by zero and invalid input types, with custom error messages.
Leverage Openai's API to generate test cases from requirements and enhance test automation frameworks with python, playwright, and ci integration, boosting coverage and reducing manual effort.
Set up OpenAI's API for test automation by creating an account, adding credits (minimum $5) and using the free trial, then review usage and generate a secret API key.
Build a Python client to generate test cases with OpenAI API, configuring a secret key, defining a prompt as messages, and producing test cases for WebDriver University's contact us page.
Explore generating and refining gherkin and cucumber scenarios with open ai, configure prompts and avoid overwrites, then review, format, and download the feature file for the contact us page.
Implement setup and teardown with behave by using environment.py in the features folder, and before all and before scenario hooks to configure Playwright, launch the browser, and open maximized pages.
Learn to write first step definitions with Behave and Playwright in a behavior-driven framework, using dynamic selectors, a custom context, and actions like navigate and fill.
Apply the dry principle by creating a custom context in utils/types.py to centralize page, browser, and Playwright, then refactor environment and steps for reuse.
Finalize the first scenario by using analyze steps to generate code for unimplemented steps, leveraging OpenAI's API, and implementing selectors for first name, last name, email, and message with submit.
Finalize the remaining test scenarios for the contact us form by uncommenting steps, validating errors with empty and invalid inputs, and using AI-assisted step analysis and dynamic selectors.
Explore how the background keyword reduces code duplication in feature files by listing common steps that execute prior to any scenario, improving readability and maintainability.
Learn how the background keyword enforces preconditions before each scenario in behave, guiding navigation to the contact us form, reusing steps, and applying the dry principle.
Generate API test scenarios with ai by building a simple GET request to the status endpoint using Postman and an OpenAI-driven generator, integrating into an automation framework.
Learn to test api responses by building and validating requests, asserting status codes like 200, and checking response text, with beehive-generated steps and context-based url handling.
Optimize the testing framework by refactoring API and UI test flows with behave hooks and context flags to avoid browser launches for API tests and enable UI screenshot capture.
Create and configure an advanced Jenkins job to run automated test suites with a custom workspace and a Python beehive command using regression tags, monitor logs, and preserve build history.
Learn to generate Allure reports in Jenkins by installing the Allure plugin, configuring post-build actions, preserving reports for targeted regression and API tests, and attaching failure images for debugging.
Why Generative AI in Software Testing?
Generative AI is transforming the software testing landscape by enabling dynamic test case generation, optimizing test execution, and improving coverage. Tools like OpenAI’s API and GPT4All empower testers to:
Reduce manual effort.
Uncover edge cases faster.
Enhance both manual and automated testing workflows.
Why Python, Behave BDD, and AI-Driven Tools?
Python: A versatile, beginner-friendly programming language widely used for automation.
Behave BDD: A Python-based Behavior-Driven Development tool that uses the same Gherkin syntax as Cucumber BDD, simplifying test case creation and ensuring scenarios are clear for all stakeholders.
AI Tools: Leverage OpenAI’s API (ChatGPT) and offline tools like GPT4All to dynamically create, optimize, and refine test scenarios, reducing manual effort and improving test coverage.
Together, these tools allow testers to:
Automate UI and API tests with AI, Python, Behave BDD, and Playwright.
Dynamically generate and refine test cases using AI tools like ChatGPT and OpenAI APIs.
Integrate into Jenkins CI pipelines for scalability and continuous test execution.
Why This Course?
This course is practical, easy-to-follow, and designed for manual testers and automation testers looking to upgrade their skills. Whether you’re new to automation or experienced in testing, you’ll gain hands-on experience with AI-powered testing.
(Note: To fully implement AI features programmatically, an OpenAI API key is recommended. OpenAI provides free credits for new accounts, but existing users may need to add minimal funds (~$5). Watching specific lectures without practical implementation is also an option.)
The course includes Before and After code examples, attached to the relevant lecture resources, to help you understand concepts step-by-step and implement them seamlessly.
What Will You Learn?
Generative AI for Test Case Creation
Use ChatGPT (free or paid version) to generate test plans and test cases outside of code.
Use OpenAI APIs to dynamically generate test cases and suggest step definition code within the framework (API key and minimal credits required for hands-on implementation).
Explore tools like GPT4All for offline AI-powered testing.
Quickly create optimized, AI-powered test scenarios.
Mastering Python Fundamentals for Testing
Python basics: Variables, data structures, functions, and file handling.
Work with JSON data and external libraries like Requests for API testing.
Building AI-Enhanced Automation Frameworks
Behavior-Driven Development (BDD): Simplify test requirements using Gherkin and Behave.
Automate UI Testing with Playwright and Behave (BDD).
Automate API Testing using Python and Behave (BDD).
Advanced Features for Automation
Use Generative AI to refine BDD scenarios and step definitions.
Leverage OpenAI API to analyze step definition files and recommend optimized code solutions.
Implement tags, custom runners, and generate detailed test reports with Allure.
CI/CD Integration: Learn how to run tests continuously using Jenkins CI pipelines.
Data Privacy and Security in AI Testing
Protect sensitive data when using AI tools like OpenAI APIs.
Follow best practices for anonymizing data and managing credentials securely.
Additional Features
Real-World Projects: Automate tests for a Contact Us Page, Login Page, and a Goal Tracker API.
Practical Exercises: Step-by-step recordings with before-and-after downloadable code examples.
AI-Powered Optimizations: Generate, analyze, and refine test scripts dynamically.
Reporting: Generate detailed reports and attach screenshots for better test visibility.
Ready to Master AI-Driven Software Testing?
By the end of this course, you’ll have the skills to:
Integrate Generative AI into manual and automated testing workflows.
Build scalable and dynamic automation frameworks using Python, Behave BDD, Playwright, and Jenkins CI.
Leverage AI tools to optimize and streamline testing processes effectively.
Let’s revolutionize software testing with Generative AI together!