From the course: Robot Framework Test Automation: Level 1 (Selenium)
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Increase readability using Gherkin - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
Increase readability using Gherkin
In this final video of this unit, we're going to explore how Gherkin can potentially be used to increase the readability of your scripts. Why might we do this? Gherkin essentially is a way of writing test cases that is intended to bring business people, and development people, and QA people together in a room to collaborate. If they can all look each other in the eyes and talk about what a test case should do, ultimately, your test case is becoming an executable requirement. The Gherkin syntax might be more easily understood than the procedural approach that I showed in the previous videos. When you use Gherkin, you potentially get a more fine grained results log and that could potentially make it easier to interpret what caused a failure. So how do we use Gherkin? I'm not going to go very deep on the origin of Gherkin or anything like that because I'm considering creating a whole separate course for it. In the meantime, you could Google it, but the fundamentals are that you're going…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Overview6m 51s
-
(Locked)
Preview of the final solution6m 9s
-
(Locked)
Style: Procedural vs. Gherkin3m 11s
-
(Locked)
Introducing user-defined keywords5m 20s
-
(Locked)
Break the script into keywords7m 18s
-
(Locked)
Moving keywords to resource files7m 47s
-
(Locked)
Adding setup and tear down5m 36s
-
(Locked)
Overview of page objects7m 47s
-
(Locked)
Demo: Create a page object4m 7s
-
(Locked)
Increase readability using Gherkin7m 43s
-
-
-
-
-
-
-