Difference between revisions of "stoney core: REST API (Testing)"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Test Division)
(Testing Naming Schema)
Line 11: Line 11:
  
 
= Testing Naming Schema =
 
= Testing Naming Schema =
The automated Frisby tests test all resources and sorted based on the relationships. As described in [[stoney_core:_REST_API#Relationships | stoney core: REST API]], the relationships are hierarchical:
+
The automated Frisby tests test all resources and sorted based on users and their relationships. As described in [[stoney_core:_REST_API#Relationships | stoney core: REST API]], the relationships are hierarchical:
  
 
'''Service Provider Person''' > '''Reseller Employee''' > '''Customer Employee''' > '''Reseller Person''' and '''Customer Person'''
 
'''Service Provider Person''' > '''Reseller Employee''' > '''Customer Employee''' > '''Reseller Person''' and '''Customer Person'''
  
The further down you go, the less rights a person has.
+
The further down you go, the less rights a person has. Therefore the same tests can be run for all the users, just the expectations change.
  
 
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:
Line 26: Line 26:
 
* 0600_customer_person_spec_js: [[stoney_core:_REST_API#Reseller_Person_.28P.29_and_Customer_Person_.28P.29 | Customer Person (CP)]]
 
* 0600_customer_person_spec_js: [[stoney_core:_REST_API#Reseller_Person_.28P.29_and_Customer_Person_.28P.29 | Customer Person (CP)]]
  
 +
= What are we testing? =
  
  

Revision as of 16:33, 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:

Testing Naming Schema

The automated Frisby tests test all resources and sorted based on users and their 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. Therefore the same tests can be run for all the users, just the expectations change.

To make sure, that the tests are executed in the proper order, the following naming schema applies:

What are we testing?