use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseVerifyEqualsIT method verifyJsonObjectIsntArray.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void verifyJsonObjectIsntArray() {
JsonArray json = new JsonArray();
json.add(json4);
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/?id=4").verifyEquals().arrayData(json);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseVerifyEqualsIT method verifyJsonCrumbsEmpty.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void verifyJsonCrumbsEmpty() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/?id=4").verifyEquals().nestedValue(new ArrayList<>(), json4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseVerifyEqualsIT method verifyJsonMessageMessageMismatch.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void verifyJsonMessageMessageMismatch() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Response response = call.get("posts/?id=4");
response.verifyEquals().message("Something");
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseVerifyEqualsIT method verifyJsonMessageIsntObject.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void verifyJsonMessageIsntObject() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("null/").verifyEquals().objectData(json1);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseVerifyEqualsIT method verifyJsonArray.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void verifyJsonArray() {
JsonArray json = new JsonArray();
json.add(json1);
json.add(json2);
json.add(json3);
json.add(json4);
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/").verifyEquals().arrayData(json);
// verify no issues
finish();
}
Aggregations