use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulDeleteCallNoDataWithFile.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters")
public void verifySuccessfulDeleteCallNoDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.delete("post/4", new Request(), new File("Jenkinsfile")).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPutCallJsonArrayMultipartTrueData.
@Test(groups = { "integration", "service", "httpput", "response" }, description = "An integration test to verify a successful put call with parameters")
public void verifySuccessfulPutCallJsonArrayMultipartTrueData() {
// 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.put("post/4", new Request().setJsonPayload(new JsonArray()).setMultipartData(new HashMap<>())).verifyEquals().message("");
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPostCallUrlParamsDataWithFile.
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCallUrlParamsDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.post("post/4", new Request().setUrlParams(new HashMap<>()), new File("Jenkinsfile")).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulDeleteCallEmptyMultipartData.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters")
public void verifySuccessfulDeleteCallEmptyMultipartData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.delete("post/4", new Request().setMultipartData(new HashMap<>())).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulGetCallParams.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify a successful get call with parameters")
public void verifySuccessfulGetCallParams() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Map<String, Object> params = new HashMap<>();
params.put("id", 4);
call.get("posts/", new Request().setUrlParams(params)).verifyEquals().code(200);
// verify no issues
finish();
}
Aggregations