From the course: Robot Framework Test Automation: Level 1 (Selenium)
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Preview of the final solution - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
Preview of the final solution
So let's demo the final project. We'll have a look at the original versus the final. So as I mentioned, here's our original script. It's hard to understand the intent. And when you look at the test results, they are a direct representation of the steps, so they're equally hard to understand. One thing I would like to point out is that all of these steps are referencing the Selenium2Library directly. We'd like to move away from that approach. And something else I want to point out is that, the steps that we use to comprise this user must sign in to checkout test case, could be broken into subsets that represent multiple smaller test cases. So for instance, we could say, "User can search for products," and we would do the steps necessary for searching for a product. User can view a product. And notice in order to view a product, we've got to first search for a product. User can add product to cart. Again, we have to search view product, add it to our cart. So you can see all the…
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
-
-
-
-
-
-
-