Packt
Cucumber BDD Made Easy + Automation Framework Design
Packt

Cucumber BDD Made Easy + Automation Framework Design

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

7 小时 完成
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

7 小时 完成
灵活的计划
自行安排学习进度

您将学到什么

  • Create a Cucumber Maven project from scratch.

  • Write and execute BDD scenarios using Gherkin language.

  • Integrate Cucumber with Selenium WebDriver for automation.

  • Design and implement a Page Object Model-based framework.

要了解的详细信息

可分享的证书

添加到您的领英档案

作业

5 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

该课程共有7个模块

In this module, we will explore the foundational concepts of Behavior Driven Development (BDD) and guide you through setting up a Cucumber environment. You'll learn how to create Cucumber Maven projects, develop feature files using Gherkin syntax, and implement step definitions to bring your BDD tests to life. By the end of this section, you'll be equipped to run your BDD tests using JUnit test runners, ensuring a robust testing framework for your projects.

涵盖的内容

7个视频1篇阅读材料

In this module, we will delve into the various configuration options available in Cucumber, enabling you to tailor your BDD test executions. You'll learn how to set up features, glue, and plugins, and how to use the dry run and strict options to control test execution flow. Additionally, we’ll cover the monochrome and tags options for better output formatting and scenario filtering, along with the name option for precise scenario targeting, ensuring your tests run exactly as needed.

涵盖的内容

6个视频1个插件

In this module, we will integrate Selenium WebDriver with Cucumber, allowing you to perform browser-based testing within your BDD workflows. You'll learn how to craft Gherkin scenarios and write step definitions to test web applications interactively. Additionally, we will introduce global hooks, enabling you to manage test environments and actions that need to occur before or after each scenario, ensuring your tests are robust and efficient.

涵盖的内容

3个视频1个作业1个插件

In this module, we will explore the use of parameters and data tables in Cucumber to make your tests more dynamic and data-driven. You'll learn how to use Cucumber parameters to pass different data sets into your step definitions and how to work with step data tables to handle more complex inputs. Additionally, we will cover scenario outlines, enabling you to perform data-driven testing by running the same scenario with multiple sets of data, thus broadening your test coverage and ensuring robust validation of your application.

涵盖的内容

3个视频1个插件

In this module, we will dive into the concepts of hooks and tags in Cucumber, which are essential tools for managing test execution flow. You'll learn how to use global hooks to define actions that run before or after all scenarios, and how to leverage tagged hooks for more granular control based on scenario tags. We will also cover how to prioritize hooks to control their execution order, and how to use Cucumber tags to organize and selectively run your scenarios. The module concludes with a summary to reinforce your understanding and ensure you are well-prepared to apply these concepts in your testing framework.

涵盖的内容

5个视频1个作业1个插件

In this module, we will explore the integration of the Page Object Model (POM) within the Cucumber framework to create a robust and maintainable test architecture. You'll learn how to create a Page Factory for managing web elements, develop action pages that encapsulate user interactions, and construct common action pages for shared functionalities. By the end of this module, you'll be equipped to implement the Page Object Model in your BDD tests, ensuring your test code is scalable, modular, and easy to maintain.

涵盖的内容

4个视频1个插件

In this module, we will focus on enhancing the reporting capabilities of your Cucumber tests. You’ll learn how to add the Masterthought reporting plugin to generate comprehensive test reports, and how to capture screenshots automatically for any failed steps, making it easier to identify and resolve issues. The module concludes with a summary of the entire course, ensuring that you are equipped to apply what you've learned and continue developing your BDD expertise.

涵盖的内容

3个视频3个作业

位教师

Packt - Course Instructors
Packt
971 门课程229,122 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题