use of org.wso2.carbon.automation.extensions.jmeter.JMeterTestManager in project product-iots by wso2.
the class DeviceManagementAPINegativeTestCase method negativeTests.
@Test(description = "This test case tests the response when the APIs are called with invalid payloads and without" + " required parameters")
public void negativeTests() throws AutomationFrameworkException {
URL url = Thread.currentThread().getContextClassLoader().getResource("jmeter-scripts" + File.separator + "AndroidDeviceManagementAPI_Negative_Tests.jmx");
JMeterTest script = new JMeterTest(new File(url.getPath()));
JMeterTestManager manager = new JMeterTestManager();
manager.runTest(script);
}
use of org.wso2.carbon.automation.extensions.jmeter.JMeterTestManager in project product-iots by wso2.
the class GroupManagementJMeterTestCase method GroupManagementTest.
@Test(description = "This test case tests the Group Management APIs")
public void GroupManagementTest() throws AutomationFrameworkException {
URL url = Thread.currentThread().getContextClassLoader().getResource("jmeter-scripts" + File.separator + "GroupManagementAPI.jmx");
JMeterTest script = new JMeterTest(new File(url.getPath()));
JMeterTestManager manager = new JMeterTestManager();
log.info("Running group management api test cases using jmeter scripts");
manager.runTest(script);
}
use of org.wso2.carbon.automation.extensions.jmeter.JMeterTestManager in project product-iots by wso2.
the class AppManagerJmeterTestCase method AppManagementTest.
@Test(description = "This test case tests the flow of App Manager mobile-app creation and lifecycle")
public void AppManagementTest() throws AutomationFrameworkException {
URL url = Thread.currentThread().getContextClassLoader().getResource("jmeter-scripts" + File.separator + "AppManagerTest.jmx");
JMeterTest script = new JMeterTest(new File(url.getPath()));
JMeterTestManager manager = new JMeterTestManager();
log.info("Running app manager mobile creation related test cases using jmeter scripts");
manager.runTest(script);
}
Aggregations