<aside> 🗒️ Logger page: ‣

</aside>

What is PYPREST

PYPREST is an API automation testing framework written in python to create automated test scenarios for REST APIs.

This framework helps to reduce the time to write the logic for automation testing of APIs and uses a single Config XML file as Input where we have created the test cases.

Functionalities:

  1. It allows us to validate responses to the API.
  2. It cuts down the effort of writing long code for every test case and reduces code redundancy.
  3. Generates customized report posts executing the test cases & suites.
  4. Provides facilities like creating user defined variables, re-use those variables, skip test cases using the run flag tag.

METHODS OF EXECUTION

1. Through Command Line Interface:

We can run it like any python program.

$ python <path for restEngine.py> -config <config_file_path> -t <testcase_name>

Here we are running a restEngine script with two command line arguments which are as follows.