Adding content in the feature file, making a JUnit Cucumber Runner, and creating and adding snippets in the step definition file.
- [Narrator] Welcome to the second video of section six.…We are at the starting point of the implementation,…after creating the project's skeleton.…In the previous video,…we saw that we have all the prerequisites…ready for our working application.…With the project defined,…it is now time to start the implementation.…In this video,…we shall focus on writing a test case using Cucumber,…which will be integrated with Selenium WebDriver,…for web application testing.…We will look at implementing the first use case,…conversion of temperature from one unit to another,…writing feature of first use case,…and executing it with Cucumber.…
I prefer implementing it from the outside in.…If we can, and in this case,…it should be pretty straightforward…to at least define a model in this manner.…We have already specified the first feature.…It is now time to implement it.…The first use case…is to convert temperature from one unit to another.…We will specify it with the feature we saw earlier,…and execute it using Cucumber.…Let us start our journey, step by step.…
Selenium gives developers the power to control web browsers and use them to automate web application testing. As an open-source toolset, Selenium makes it easier for testers to evaluate web applications without putting in any extra time and effort.
Mastering Selenium Testing Tools is all about demystifying the Selenium suite. Learn to verify web applications, control browsers with code, and scale up the testing environment by distributing the execution of web applications on different browsers running on different operating systems.
Author Ripon Al Wasim starts with the Selenium IDE, a Firefox plugin that performs a simple record-and-playback of interactions with the browser. A tester aiming for professional output can use WebDriver, an advanced scripting tool that allows you to locate the elements you need to interact with using their name: id, xPath, or CSS. Next, learn to express the desired behavior using a well-known framework for behavior-driven development (BDD) called Cucumber for Java, which uses a language called Gherkin. Last but not least, Ripon shows how to run tests on the Selenium Server, and walks through a complete working example of Selenium and Cucumber in action, for acceptance testing of a web application.
- Preparing your Selenium test environment
- Using the Selenium IDE
- Scripting in WebDriver
- Locating web elements
- Writing test cases with the Page Object Model
- Enabling continuous delivery with a continuous integration build system
- Working with Cucumber and Gherkin
- Describing features with Cucumber
- Running tests on Selenium Server