vREST Test Automation

24
Automated API Testing using vREST Pankaj Jangid [email protected] Optimizory Technologies Pvt. Ltd. December 3, 2014

description

vREST is an automated REST API testing tool. This presentation is an introduction to the tool. It tells you how to create, execute and manage tests. It also tells you how to analyse results and do some advanced configuration. Try vREST at http://vrest.io/.

Transcript of vREST Test Automation

Page 1: vREST Test Automation

Automated API Testing using vREST

Pankaj [email protected]

Optimizory Technologies Pvt. Ltd.

December 3, 2014

Page 2: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Outline

1 Setting Up

2 Writing Tests

3 Executing Tests

4 Analyzing Results

5 Advanced Configuration

Jangid Automated API Testing using vREST

Page 3: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Create an Account

Go to http://vrest.io/ and click on Sign Up button.

Jangid Automated API Testing using vREST

Page 4: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Create Instance

Click Setup New Instance and follow instructions.

Jangid Automated API Testing using vREST

Page 5: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

“Test Cases” Tab

Tests are managed under the Test Cases tab.

Jangid Automated API Testing using vREST

Page 6: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Writing Test Case

Click New button to write a new test case.

Jangid Automated API Testing using vREST

Page 7: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Writing Test Case (Contd.)

Fill in URL of the API to test.

Jangid Automated API Testing using vREST

Page 8: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Click the Test Case for its Details

Later on, you may edit the test case details by clicking the testcase itself.

Jangid Automated API Testing using vREST

Page 9: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

View or Edit Test Case Details

Jangid Automated API Testing using vREST

Page 10: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Set Request Parameters

Parameters will be sent to the service API. Use variables to savetime.

Jangid Automated API Testing using vREST

Page 11: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Expected Result

Jangid Automated API Testing using vREST

Page 12: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

List of Test Cases

Jangid Automated API Testing using vREST

Page 13: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Running Tests

Click on Run to execute the test cases. If no test cases are selectedthen all the tests are executed.

Jangid Automated API Testing using vREST

Page 14: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Running Tests (Contd.)

Jangid Automated API Testing using vREST

Page 15: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Running Selected Tests

You may select the test cases to run just the tests you desire.

Jangid Automated API Testing using vREST

Page 16: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

View Diff on the Results Screen

Jangid Automated API Testing using vREST

Page 17: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Filter on Test Runs

Jangid Automated API Testing using vREST

Page 18: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Other Filters

Jangid Automated API Testing using vREST

Page 19: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

“Results” Tab

Jangid Automated API Testing using vREST

Page 20: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

“Diff” Tab

Jangid Automated API Testing using vREST

Page 21: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Default Validator

Validators are used to compare the actual response to the expectedresponse.

Jangid Automated API Testing using vREST

Page 22: vREST Test Automation

Setting Up Writing Tests Executing Tests Analyzing Results Advanced Configuration

Create Validators

Validators are written using Javascript programming language. Youmay write your own logic to compare.

Jangid Automated API Testing using vREST

Page 23: vREST Test Automation

Go Sign Up!http://vrest.io/

Page 24: vREST Test Automation

Thank [email protected]