This post will explain, how you can schedule test cases written in vREST on Windows.
Here is a video tutorial for the same:
<iframe width="560" height="315" src="https://www.youtube.com/embed/sTrvp_JJ1dM?list=PLmua155_WrDyoe7dYDB3lCfh-UK4XicT6?ecver=1" frameborder="0" allowfullscreen></iframe> |
Prerequisite for the machine, on which you want to schedule test cases.
Let's take a sample application (Contacts Application) and step by step guide on how we can schedule vREST test cases.
Note: You can find the source code of sample application at Github.
Now, you can add this vrunner command in a batch script which you can schedule via Windows Task Scheduler. That's it.
In the below batch script,
set mydate=%date:/=_% set mytime=%time::=_% set logFileName=%mydate: =_%_%mytime:.=_% "C:\Users\John Doe\Desktop"\vrunner_win_0_3_7_x64.exe --debug=true --email="john.doe@example.com" --password="johndoe" --url="https://vrest.io/i/demo/g/testcase?projectId=549550cb68e831540bd849b1&versionIds=54d86e3a4908a5a106e6243f" 1> "C:\Users\John Doe\Desktop\vrest_process_logs"\%logFileName%.log 2>&1 |
For integration, please follow our video tutorial available on the top of this post.