Sample Test Application to demonstrate vREST NG.
Sample Test Application "Contacts" is a CRUD application built with with Backbone.js, Bootstrap, Node.js, ExpressJS, and LowDB.
The application allows you to browse through a list of contacts, as well as add, update, read and delete contacts using the following APIs.
- POST /contacts/rePopulateDB - Re-initialize the Database State
- GET /contacts - Returns List of contacts
- POST /contacts - Adds a new contact
- PUT /contacts/{{contactId}} - Update the contact by id
- GET /contacts/{{contactId}} - Read the contact by id
- DELETE /contacts/{{contactId}} - Delete the contact by id
- NodeJS (Tested with v10.16.2)
-
Install the dependencies
npm install
-
Run the application server
npm run start
The test
directory contains the following sample vREST NG projects which you may drag in vREST NG Application workspace area to see the test cases.
-
ddt-tests
: This is a project written by vREST NG application to demonstrate the Data driven testing capability of vREST NG. vREST NG - Data Driven Testing Example -
scenario-tests
: This is a project written by vREST NG application to demonstrate the Scenario or workflow testing capability of vREST NG. vREST NG - Scenario Testing Example -
tests-using-npm-packages
: This is a project written by vREST NG application to demonstrate how you may importnpm
packages to extend the power of vREST NG Application. For more information, read this guide link. vREST NG - Use of NPM Package Example
Gitlab CI
: For Gitlab CI, use file.gitlab-ci.yml
.Azure DevOps
: For Microsoft Azure DevOps, use fileazure-pipelines.yml
Note: Before executing your tests, make sure your application server is running.