Jenkins is a popular continuous integration server. Now you can automate your vREST test suite with Jenkins Server.
If you are using some other Continuous Integration Server, you can integrate vREST with that in the same way as with Jenkins Server. If you face any issues then do let us know by dropping an email to support@vrest.io |
<iframe width="560" height="315" src="https://www.youtube.com/embed/L8utEhz_vVU?list=PLmua155_WrDyoe7dYDB3lCfh-UK4XicT6?ecver=1" frameborder="0" allowfullscreen></iframe> |
Let's take a sample application (Contacts Application) and step by step guide on how we can integrate vREST with Jenkins Server.
Note: You can find the source code of sample application at Github.
Step by Step Guide:Step 1: Write your automated test suite in vREST First you need to write test cases for your test application in vREST to ensure the build quality of your web application. Then copy the test case list URL by clicking on button "Copy Current Test Case List URL" available in Continuous Integration section. You can find the test cases for this sample application in vREST here. Step 2: [Optional] Learn how vrunner command works and get your hands dirty on it by installing it locally firstFirst setup the vrunner module by following the guide Setup / install vrunner. Once you setup this module on your local machine, you can execute the vREST test cases by executing the following command:
Options
|
In Jenkins Project Configuration, select "Add build step" >> "Execute shell" in the build section and just add the commands shown in the snapshot below in the field "Command". Please replace the email, password, env, url parameters of the command according to your configuration.
By default, vrunner command writes the report in 'vrest_logs/logs.xml' if logger 'xunit' is used. You may change this path by providing the filepath option in the vrunner command. In Jenkins Project Configuration, select "Add post-build action" >> "Publish JUnit test result report" in the "Post-build Actions" section and add the vrest logs path in field "Test report XMLs".
That's it.