Add android device mgt jmeter script

pull/1/head
Gimhan Wijayawardana 2 years ago
parent ae9d376c78
commit 4e53faae20

@ -32,13 +32,13 @@ import java.net.URL;
/** /**
* JMeter Test cases for Device Management APIs. * JMeter Test cases for Device Management APIs.
*/ */
public class DeviceMgtCoreAPIJmeterTestCase { public class AndroidDeviceManagementAPIJmeterTestCase {
private static Log log = LogFactory.getLog(DeviceMgtCoreAPIJmeterTestCase.class); private static Log log = LogFactory.getLog(AndroidDeviceManagementAPIJmeterTestCase.class);
@Test(description = "Testing the device-mgt core functionalities") @Test(description = "Testing the android device management functionalities")
public void permutationTest() throws AutomationFrameworkException { public void permutationTest() throws AutomationFrameworkException {
URL url = Thread.currentThread().getContextClassLoader().getResource( URL url = Thread.currentThread().getContextClassLoader().getResource(
"jmeter-scripts" + File.separator + "DeviceMgtCoreTestPlan.jmx"); "jmeter-scripts" + File.separator + "AndroidDeviceManagementAPI.jmx");
JMeterTest script = new JMeterTest(new File(url.getPath())); JMeterTest script = new JMeterTest(new File(url.getPath()));
JMeterTestManager manager = new JMeterTestManager(); JMeterTestManager manager = new JMeterTestManager();
log.info("Running permutation test using jmeter scripts"); log.info("Running permutation test using jmeter scripts");

@ -31,7 +31,7 @@
<test name="iot-test-cases" preserve-order="true" parallel="false"> <test name="iot-test-cases" preserve-order="true" parallel="false">
<classes> <classes>
<class name="org.wso2.iot.integration.jmeter.DeviceMgtCoreAPIJmeterTestCase"/> <class name="org.wso2.iot.integration.jmeter.AndroidDeviceManagementAPIJmeterTestCase"/>
</classes> </classes>
</test> </test>
</suite> </suite>

Loading…
Cancel
Save