use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPostCall.
// for post calls
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCall() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.post("post/4", new Request()).verifyEquals().code(200);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPostCallJsonObjectDataWithFile.
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCallJsonObjectDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.post("post/4", new Request().setJsonPayload(new JsonObject()), 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 verifySuccessfulPostCallJsonArrayMultipartTrueData.
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCallJsonArrayMultipartTrueData() {
// 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().setJsonPayload(new JsonArray()).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 verifySuccessfulPostCallJsonArrayDataWithFile.
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCallJsonArrayDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.post("post/4", new Request().setJsonPayload(new JsonArray()), 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 verifySuccessfulPutCallNoData.
@Test(groups = { "integration", "service", "httpput", "response" }, description = "An integration test to verify a successful put call with parameters")
public void verifySuccessfulPutCallNoData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.put("post/4", new Request()).verifyEquals().message("");
// verify no issues
finish();
}
Aggregations