Testing the REST API
- Marc Dumontier
Owned by Marc Dumontier
This page describes the methods by which we test the API
OSCAREMR-6076 - Getting issue details... STATUS is a commit designed to integrate tomcat7-maven-plugin and rest-assured in order to give use API testing as part the the build
When running the 'verify' phase in maven, integration-tests will be run (including pre-integration-test and post-integration-test) . This will result in the following actions
1) pre-integration-test phase
- Setup a properties file (from src/test/resources/integration-tests/oscar_test.properties)
- Setup the DB (oscar_test db is dropped, created, and setup with OSCAR startup scripts
- Setup an access token so testing can get through oauth flow
- startup tomcat7
2) integration-test phase
- execute all tests with "IntegrationTest" in their name
- each test should make REST calls then make some assertions
3) post-integration-test phase
- shut down tomcat7
Assertions are done using the rest assured framework
Related pages
Connecting to OSCAR's REST API
Connecting to OSCAR's REST API
Read with this
Data Formats
Data Formats
Read with this
Web Services
Web Services
Read with this
Tokens, etc
Tokens, etc
Read with this
Integration (Apps)
Integration (Apps)
Read with this