In this post, we are going to demonstrate, how you may perform data driven testing with the help of looping feature of vREST.
Here is the video tutorial for the same:
<iframe width="560" height="315" src="https://www.youtube.com/embed/_NuKk02t5XE?list=PLmua155_WrDyoe7dYDB3lCfh-UK4XicT6?ecver=1" frameborder="0" allowfullscreen></iframe> |
Context: We are defining test cases for a sample Contacts Application. More specifically we are validating various scenarios of Update Contact API with the help of loop. And we are providing data to Update Contact API from a CSV file using vutil module.
For providing data with the help of CSV file, you will need to install vutil module. vutil module converts this CSV file into JSON format via REST API. For more information, please read Fetch CSV data for data driven testing. |
Steps: