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

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…

Contents