Difference between revisions of "stoney core: REST API (Testing)"
From stoney cloud
[unchecked revision] | [unchecked revision] |
(→Overview) |
(→Test Division) |
||
Line 18: | Line 18: | ||
To make sure, that the tests are executed in the proper order, the following naming schema applies: | To make sure, that the tests are executed in the proper order, the following naming schema applies: | ||
− | Header (these tests will probably also be integrated into the tests based on the relationships) | + | * 0000_header_spec_js: Header (these tests will probably also be integrated into the tests based on the relationships) |
− | Authentication (these tests will probably also be integrated into the tests based on the relationships) | + | * 0100_authentication_abc_spec_js: Authentication (these tests will probably also be integrated into the tests based on the relationships) |
− | Service Provider Person (SPP) | + | * 0200_service_provider_person_spec.js: [[stoney_core:_REST_API#Service_Provider_Person_.28SPP.29 | Service Provider Person (SPP)]] |
− | Reseller Employee (RE) | + | * 0300_reseller_employee_spec_js: [[stoney_core:_REST_API#Reseller_Employee_.28RE.29 | Reseller Employee (RE)]] |
− | Reseller Person (PP) | + | * 0400_reseller_person_spec_js: [[stoney_core:_REST_API#Reseller_Person_.28P.29_and_Customer_Person_.28P.29 | Reseller Person (PP)]] |
− | Customer Employee (CE) | + | * 0500_customer_employee_spec_js: [[stoney_core:_REST_API#Customer_Employee_.28CE.29 | Customer Employee (CE)]] |
− | Customer Person (CP) | + | * 0600_customer_person_spec_js: [[stoney_core:_REST_API#Reseller_Person_.28P.29_and_Customer_Person_.28P.29 | Customer Person (CP)]] |
Revision as of 14:23, 4 August 2014
Overview
This page describes, how and what to test. The goal is to automate all tests with Frisby. Frisby is a REST API testing framework built on node.js and Jasmine.
stoney core resources
The following stoney core resources have automated Frisby tests:
- stoney core: Authentication Resource - REST API
- stoney core: Resellers Resource - REST API
- stoney core: Customers Resource - REST API
- stoney core: People Resource - REST API
- stoney core: Search Resource - REST API
Test Division
The automated Frisby tests test all resources and sorted based on the relationships. As described in stoney core: REST API, the relationships are hierarchical:
Service Provider Person > Reseller Employee > Customer Employee > Reseller Person and Customer Person
The further down you go, the less rights a person has.
To make sure, that the tests are executed in the proper order, the following naming schema applies:
- 0000_header_spec_js: Header (these tests will probably also be integrated into the tests based on the relationships)
- 0100_authentication_abc_spec_js: Authentication (these tests will probably also be integrated into the tests based on the relationships)
- 0200_service_provider_person_spec.js: Service Provider Person (SPP)
- 0300_reseller_employee_spec_js: Reseller Employee (RE)
- 0400_reseller_person_spec_js: Reseller Person (PP)
- 0500_customer_employee_spec_js: Customer Employee (CE)
- 0600_customer_person_spec_js: Customer Person (CP)