vREST Utility (vutil)
vREST Utility (vutil) is an external NodeJS module provided by vREST team. This utility provides the REST API for the following tasks:
- Execute a system command
- Provides REST interface to execute a system command.
- This is useful in setting up the test environment.
- You may execute any bash script / system command with the help of this API.
- Access Database
- Provides REST interfaces for various databases.
- It is useful in validating database state after executing a test case.
- Fetch CSV Data
- Provides REST interface to access a CSV file (on system) and convert this CSV into JSON and provides JSON response.
- It is useful in doing data driven testing in vREST.
- You may store the test data in external CSV files stored on your system.
- Read a system file
- Provides REST interface to access any text file.
- It is useful in cases where your test data is already in JSON format stored in files.
- Execute Multipart request
- Provides REST Interface to execute multipart request.
- This API also handles nested multipart requests / responses.