use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseVerifyEqualsIT method verifyJsonArrayMessage.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void verifyJsonArrayMessage() {
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().message(json.toString());
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesOverrideIT method overrideCredentialsTest.
@Test(groups = { "integration", "service", "headers" }, description = "An integration test to verify we can successfully override standard header values")
public void overrideCredentialsTest() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// set some custom credentials
call.addCredentials("hello", "world");
// perform some actions
call.get("posts/").verifyEquals().code(200);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonMessageIsntObject.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response", expectedExceptions = AssertionError.class)
public void assertJsonMessageIsntObject() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("null/").assertEquals().objectData(json1);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonObjectMismatch.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response", expectedExceptions = AssertionError.class)
public void assertJsonObjectMismatch() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/?id=4").assertEquals().objectData(json1);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonCrumbsSingle.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void assertJsonCrumbsSingle() {
List<String> crumbs = new ArrayList<>();
crumbs.add("userId");
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/?id=4").assertEquals().nestedValue(crumbs, 1);
// verify no issues
finish();
}
Aggregations