use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesIT method verifySuccessfulDeleteCallEmptyData.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters")
public void verifySuccessfulDeleteCallEmptyData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.delete("post/4", new Request()).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesIT method verifySuccessfulBadPutCall.
@Test(groups = { "integration", "service", "httpput", "response" }, description = "An integration test to verify a successful put call with parameters in url")
public void verifySuccessfulBadPutCall() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.put("null/", new Request()).verifyEquals().message("We encountered an error, no page was found");
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesIT method verifySuccessfulDeleteCallJsonArrayMultipartData.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters")
public void verifySuccessfulDeleteCallJsonArrayMultipartData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.delete("post/4", new Request().setJsonPayload(new JsonArray()).setMultipartData(new HashMap<>())).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesIT method verifySuccessfulBadDeleteCall.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters in url")
public void verifySuccessfulBadDeleteCall() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.delete("null/", new Request()).verifyEquals().message("We encountered an error, no page was found");
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPostCallMultipartTrueData.
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCallMultipartTrueData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Map<String, Object> headers = new HashMap<>();
headers.put("Content-Type", "multipart/form-data;");
call.addHeaders(headers);
call.post("post/4", new Request().setMultipartData(new HashMap<>())).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
Aggregations