stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reka Thirunavukkarasu <r...@wso2.com>
Subject Tips to write scenario based integration test for Stratos
Date Fri, 07 Aug 2015 06:29:46 GMT
Hi All,

I have completed an integration test suite for stratos. It is available
with following test classes with all the CRUD operations for all the
artifacts and with few application related test cases like application
deployment with groups, application update for group/cartridge and
application bursting. All the integration tests can be independently
executed.

The convention that followed when writing integration test is to have
separate set of artifacts per integration test. Eg: If the integration test
class is ApplicationBurstingTest, then the relevant artifacts can be found
in resources/application-bursting-test/* as below: <%2B94776442007>


​
​If you need to write a new integration test, please follow below steps:

- Create a test class inside the relevant package by extending
StratosTestServerManager.
- Create relevant samples inside resources
- Add the samples path to the test class
- Create relevant test methods using the existing restclient and add the
relevant assertion
- Add the test class to resource/strats-testng.xml

Please do contribute to the integration test to include more scenarios as
time permits..

Thanks,
Reka

-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Mime
View raw message