use of org.wso2.mdm.qsg.dto.HTTPResponse in project product-iots by wso2.
the class AndroidOperation method testRing.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android ring operation.")
public void testRing() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.RING_ENDPOINT, Constants.AndroidOperations.RING_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.mdm.qsg.dto.HTTPResponse in project product-iots by wso2.
the class AndroidOperation method testLogcat.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android logcat operation")
public void testLogcat() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.DEVICE_LOGCAT_ENDPOINT, Constants.AndroidOperations.PAYLOAD_COMMON);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.mdm.qsg.dto.HTTPResponse in project product-iots by wso2.
the class AndroidOperation method testChangeLock.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android change lock operation.")
public void testChangeLock() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.CHANGE_LOCK_ENDPOINT, Constants.AndroidOperations.CHANGE_LOCK_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.mdm.qsg.dto.HTTPResponse in project product-iots by wso2.
the class AndroidOperation method testWebClip.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android web clip operation.")
public void testWebClip() throws Exception {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.WEB_CLIP_ENDPOINT, Constants.AndroidOperations.WEB_CLIP_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
use of org.wso2.mdm.qsg.dto.HTTPResponse in project product-iots by wso2.
the class AndroidOperation method testUninstallApplication.
@Test(groups = { Constants.AndroidOperations.OPERATIONS_GROUP }, description = "Test Android app un-install " + "operation")
public void testUninstallApplication() throws MalformedURLException, AutomationFrameworkException {
HttpResponse response = client.post(Constants.AndroidOperations.OPERATION_ENDPOINT + Constants.AndroidOperations.UNINSTALL_APPS_ENDPOINT, Constants.AndroidOperations.UNINSTALL_APPS_PAYLOAD);
Assert.assertEquals(HttpStatus.SC_CREATED, response.getResponseCode());
}
Aggregations