From the course: Robot Framework Test Automation: Sauce Labs

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Trigger from a batch file

Trigger from a batch file

- [Instructor] Using a batch file to trigger your robot framework tests on SauceLabs, is really very easy to set up, and it's something anybody can do if you don't feel like you have the time or skills to create a Jenkins Instance. Batch files are just text files that are capable of running one or more Windows commands, and what we would do is just add one or more of the pybot calls we've been using to run our scripts this whole time. And that looks like pybot plus your results path, plus your desired capabilities, plus the script name. And you can run them sequentially by specifying, call pybot, or you can run them in parallel by specifying, start pybot. And of course you can mix and match those if you have one or two scripts that needs to run sequentially, followed by a few that need to run in parallel, followed by another sequential, and then two more parallel. You could use a call, and start, respectively, on multiple lines. You can also use the dash T option to preserve log…

Contents