This video shows a quick Robot Framework demo.
- [Narrator] To kick things off I thought it would be great to show you a demo of just what this tool can do. So what we're going to do is, we're going to run some tests which include API tests, file system, website, database both SQL server and MySql, and also a brief XML test. And then we're going to take a look at the amazing results file. Which is one of the big reasons why I think Robot Framework is the best tool to use. So let's jump right in. In this course I'm going to be using the PyCharm IDE to develop and run tests. So as you can see I've got a project open here with API tests, files, MySql, SQL server, web test, and XML.
And this gives you a general idea of the look and feel of tests. You can see I've got some resources that my test needs. I've got test setup and teardown. I've got some variables, and then I've got the tests themselves, which are a very pleasant to look at keyword format. I also have a terminal window down here that allows me to easily run the tests. Let's go ahead and do it. So you can see we've gotten to the web tests now and it's going to do two different tests. And when it's done it closes the browser.
Okay, so that series of tests is done and my results are stored here in this log file. Before we look at the log file though. I want to show you just how easy it is to switch browsers. I'm going to change this to say chrome instead of IE and now what I'm going to do is, I'm going to run only these two test cases instead of the entire suite, by specifying this tag, so I use my up arrow to bring back my command. I move back a little bit and use dash I to include the keyword web and then I hit return.
Now you can see that only my web tests are running. And they're running in the chrome browser. So that's how easy Robot Framework makes it to be able to switch different browsers. And you can do that on the command line as well. And now as you can see it's finishing up it's final test case. And fortunately this test case failed so what I can do now is drill in real quick to the results file I told you about. And show you how impressive it is.
So when a test case does fail, logged out user can add product cart. The results file opens right up to that failure, and it says the text cart subtotal did not appear in five seconds. And it automatically embeds a screenshot right into your results file. So it's telling me the cart subtotal did not appear. We can see that it says order subtotal instead of cart subtotal. So that's a simple change we can make by drilling into resources, web, page object, cart. And changing this from cart subtotal to order subtotal.
And running the tests again. So I rerun it in the background and you can see all of my tests have passed. Let's go take a closer look at that results file, and see what it looks like when I run all of these suites. If I start with the report file here. I can open in browser and notice the entire file is green. It gives me a bunch of interesting statistics and a summary of all my test cases. And down here I have tags where I can select certain tags to see those results, so I can see only the file's results if I want to, or only the XML results.
I can jump over to suites and I can filter by different suites of results that I want to see. And I can even jump into search here and type in various search terms and filter my results by tag for instance. Now the cool part comes when I click on this log button over here or I just go ahead and open up this log file. Using open in browser. In this file I get the same global statistics up here at the top, but the really good part comes down here where each of the suites is displayed in a tree format.
And if I click on these pluses and expand the trees I can see the various test cases that were run in any given suite, and when I drill down further I can see the user defined keywords that are part of the test case. And when I drill down even further yet I can see the Robot Framework keywords for the particular library I use, and drilling down even further I can see the input information that was applied to those keywords. So all in all you can see that the Robot Framework results file is very attractive and powerful.
Author
Released
11/8/2018- What's a test automation framework?
- Robot Framework vs. Selenium
- Creating and running your first script
- Options for running scripts, including PyCharm and Jenkins
- Making a script more readable
- Using variables to centralize data
- Incorporating the Page Object Model
- Robot Framework libraries
Skill Level Intermediate
Duration
Views
Related Courses
-
Java: Testing with JUnit
with Peggy Fisher1h 10m Intermediate -
F#: Automated Testing for Developers
with Kit Eason2h 33m Intermediate -
Effective Android Testing for Mobile Developers
with Chiu-Ki Chan2h 56m Intermediate -
Python Automation and Testing
with Bhoomika Agarwal1h 16m Intermediate
-
Introduction
-
About me43s
-
Demo4m 34s
-
Features and capabilities1m 17s
-
Robot Framework vs. Selenium2m 58s
-
-
1. Installation Overview and Preconditions
-
Installation overview2m 25s
-
-
2. Windows 10 Installation
-
Install Python and pip6m 19s
-
Install desired browsers1m 31s
-
Install WebDrivers6m 20s
-
-
3. Creating Your First Script
-
Overview4m 53s
-
Sections of the script file3m 54s
-
Write test steps, part 14m 24s
-
Write test steps, part 25m 43s
-
-
4. Script Running Options
-
Overview1m 24s
-
Running from PyCharm1m 41s
-
Running from a batch file2m 50s
-
Running multiple suites5m 25s
-
Running a single test case5m 23s
-
Advanced run options1m 10s
-
-
5. Make the Script More Readable
-
Overview6m 51s
-
Adding setup and tear down5m 36s
-
Overview of page objects7m 47s
-
-
6. Use Variables to Centralize Data
-
Overview4m 44s
-
Preview of final solution4m 12s
-
Scalar variables6m 9s
-
List variables5m 52s
-
Variable scope8m 48s
-
-
7. Semantic Sugar
-
Overview1m 52s
-
Adding quotes for clarity10m 44s
-
-
8. Challenge: Create a Test Suite from Start to Finish
-
Overview4m 42s
-
Part 1: You do it1m 12s
-
Part 1: I do it7m 12s
-
Part 2: You do it1m 3s
-
Part 2: I do it7m 12s
-
Part 3: I do it22m 8s
-
-
9. Exploring the Robot Framework Libraries
-
Overview1m 41s
-
Database: MS SQL and MySQL14m 48s
-
API11m 41s
-
XML12m 2s
-
SeleniumLibrary3m 20s
-
String1m 59s
-
-
Conclusion
-
Next steps3m 9s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Demo