From the course: Robot Framework Test Automation: Level 1 (Selenium)
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Running from a command window - Selenium Tutorial
From the course: Robot Framework Test Automation: Level 1 (Selenium)
Running from a command window
In this video, we're going to demonstrate running our tests from a command line window. Executing our Robot Framework tests from a command line window is pretty simple. You simply open a command line, then you CD to your project directory, which in my case is C:\development\robot-scripts\amazon. Then you simply execute the Pybot command, and that consists of the word Pybot with a -d to point at your results directory, and then of course, the path to your script. Like I mentioned before, results could be just a directory like this, or it could be an absolute path to a network share someplace. And if you did use tags in your test cases, you could use --include to reference which tag you want to run, or shorthand -i, and reference the tag that would allow you to run a subset of your test cases. Let's see what that looks like. So I type in cmd to open a command window. I use the paste mechanism here to cd to my Robot Framework project file and now that I'm pointing at my project…
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
-
-
-
-
-
-
Overview1m 23s
-
(Locked)
Robot vs. pybot41s
-
(Locked)
Running from PyCharm1m 41s
-
(Locked)
Running from a command window1m 28s
-
(Locked)
Running from a batch file2m 50s
-
(Locked)
Running from the Task Scheduler3m 30s
-
(Locked)
Running on SauceLabs.com browsers3m
-
(Locked)
Running and scheduling from Jenkins6m 42s
-
(Locked)
Running multiple suites5m 24s
-
(Locked)
Running a single test case5m 23s
-
(Locked)
Advanced run options1m 10s
-
-
-
-
-
-
-
-