Reputation: 73
I am new to Robot Framework and I need to trigger my scripts from jenkins. Can someone give me a step by step guide for the same.
Upvotes: 1
Views: 3030
Reputation: 2384
The ways Jenkins may access the test data and the ways to trigger Robot Framework scripts from Jenkins are numerous, so I am not sure how useful a step by step guide would be.
Start out simple - use a Execute shell
or Execute Windows batch command
build step. The script should read something like
python -m robot.run path/to/tests
. The current directory is the root of the workspace.
Typically the tests would be put in the workspace by the Source Code Management configuration of the job.
As you add more and more jobs, you may want to have a common script to invoke Robot Framework, so that common configurations can be extracted out of individual jobs. If you want to always exclude certain tags (e.g. WIP), use a listener, or control where the output goes, using a common script is useful.
I highly recommend adding a post-Build step in the project for the Robot Framework plugin for Jenkins.
Upvotes: 2