Adding policy mangement test cases

application-manager-new
megala21 8 years ago
parent a1688140c5
commit ed7e574939

@ -207,6 +207,6 @@
</repository> </repository>
</repositories> </repositories>
<properties> <properties>
<carbon.device.mgt.plugin.version>3.0.28</carbon.device.mgt.plugin.version> <carbon.device.mgt.plugin.version>3.0.30</carbon.device.mgt.plugin.version>
</properties> </properties>
</project> </project>

@ -1,3 +1,21 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.iot.integration.jmeter; package org.wso2.iot.integration.jmeter;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;

@ -0,0 +1,46 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.iot.integration.jmeter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.testng.annotations.Test;
import org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException;
import org.wso2.carbon.automation.extensions.jmeter.JMeterTest;
import org.wso2.carbon.automation.extensions.jmeter.JMeterTestManager;
import java.io.File;
import java.net.URL;
/**
* This test case is used to run the jmeter test cases related with Policy Management APIs.
*/
public class PolicyManagementJMeterTestCase {
private static Log log = LogFactory.getLog(PolicyManagementJMeterTestCase.class);
@Test(description = "This test case tests the Policy Management APIs")
public void PolicyManagementTest() throws AutomationFrameworkException {
URL url = Thread.currentThread().getContextClassLoader()
.getResource("jmeter-scripts" + File.separator + "PolicyManagementAPI.jmx");
JMeterTest script = new JMeterTest(new File(url.getPath()));
JMeterTestManager manager = new JMeterTestManager();
log.info("Running policy management api test cases using jmeter scripts");
manager.runTest(script);
}
}

@ -107,7 +107,6 @@
<classes> <classes>
<class name="org.wso2.iot.integration.jmeter.GroupManagementJMeterTestCase"/> <class name="org.wso2.iot.integration.jmeter.GroupManagementJMeterTestCase"/>
</classes> </classes>
</test> </test>
<test name="negative-test" preserve-order="true" parallel="false"> <test name="negative-test" preserve-order="true" parallel="false">
<classes> <classes>
@ -119,6 +118,11 @@
<class name="org.wso2.iot.integration.jmeter.NotificationManagementAPIJMeterTestCase"/> <class name="org.wso2.iot.integration.jmeter.NotificationManagementAPIJMeterTestCase"/>
</classes> </classes>
</test> </test>
<test name="policy-mgt" preserve-order="true" parallel="false">
<classes>
<class name="org.wso2.iot.integration.jmeter.PolicyManagementJMeterTestCase"/>
</classes>
</test>
<test name="user-mgt" preserve-order="true" parallel="false"> <test name="user-mgt" preserve-order="true" parallel="false">
<classes> <classes>
<class name="org.wso2.iot.integration.user.UserManagement"/> <class name="org.wso2.iot.integration.user.UserManagement"/>

@ -1513,7 +1513,7 @@
<!-- Carbon Device Management --> <!-- Carbon Device Management -->
<carbon.device.mgt.version>2.0.53</carbon.device.mgt.version> <carbon.device.mgt.version>2.0.54</carbon.device.mgt.version>
<carbon.device.mgt.version.range>[2.0.0, 3.0.0)</carbon.device.mgt.version.range> <carbon.device.mgt.version.range>[2.0.0, 3.0.0)</carbon.device.mgt.version.range>
<!-- IOT Device Management --> <!-- IOT Device Management -->
@ -1521,7 +1521,7 @@
<!-- Carbon Device Management Plugins--> <!-- Carbon Device Management Plugins-->
<carbon.device.mgt.plugin.version>3.0.29</carbon.device.mgt.plugin.version> <carbon.device.mgt.plugin.version>3.0.30</carbon.device.mgt.plugin.version>
<!-- API Management --> <!-- API Management -->
<carbon.api.mgt.version>6.1.80</carbon.api.mgt.version> <carbon.api.mgt.version>6.1.80</carbon.api.mgt.version>

Loading…
Cancel
Save