Jenkins Pipeline to execute Robot Framework automation tests

Asanka Vithanage
3 min readAug 21, 2019

Here I am trying to explain how we wrote a Jenkins pipeline script to run our automation test cases written with Robot framework.

First We need to configure Jenkins machine to run the Robot automation testcases, Please refer Jenkins Machine Configuration section on my article Setting up your Jenkins machine to execute Robot Framework automation tests.

Now , We should write the Jenkins pipeline script. I came up with below script to execute our test suite.

Let me explain the individual blocks of above pipeline,

Agent block

In Agent block, Basically we define in which machines our tests should be executed. Jenkins master machine will read this configuration and will schedule our job to execute on slave machines which has labeled as “qatest”

environment block

In environment block, We define the variables which can be used later within our pipeline script.In above script, I have added our QA and CT application URLs.

stage(‘intialize’) block

In above code, we just printing the system path details. just to use in case of failure and as helper details…

--

--

Asanka Vithanage
Asanka Vithanage

Written by Asanka Vithanage

Software Quality Assurance Professional, Problem Solver, SOA Tester, Automation Engineer, CI/CD Practitioner, DevOps enthusiast

Responses (1)