Hi all.
$subject is committed to Clarity-Framework branch 4.0.2.
This basically facilitates to nominate the expected execution environment
for each test we are writing.
the custom annotation logic is shown below
@SetEnvironment(executionEnvironments =
{ExecutionEnvironment.platform,ExecutionEnvironment.integration})
the stetted environments are " integration, platform, stratos, all"
and they are with executionEnvironments enum.
Sample test case will looks like follows
@Test(groups = {"wso2.esb"}, description = "Test endpoint addition,
deletion & stats" )
@SetEnvironment(executionEnvironments =
{ExecutionEnvironment.platform,ExecutionEnvironment.bamboo})
public void testAddressEndpoint() throws Exception,
LoginAuthenticationExceptionException,
XMLStreamException {
cleanupEndpoints();
endpointAdditionScenario();
endpointStatisticsScenario();
endpointDeletionScenario();
}
And for execution to set property on clarity.property file as follows
#execution.environment = bamboo|integration|platform|stratos|all
execution.environment=integration
Thank you,
Dharshana
--
Dharshana Warusavitharana
Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : [email protected] <[email protected]>
cell : +94772202595
blog : http://dharshanaw.wordpress.com/
lean . enterprise . middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev