public class RestApiInterface extends Object
| Constructor and Description |
|---|
RestApiInterface() |
| Modifier and Type | Method and Description |
|---|---|
static io.restassured.specification.RequestSpecification |
evaluateOption(ServiceObject apiObject,
io.restassured.specification.RequestSpecification request)
sets the header, content type And body based on specifications
|
static io.restassured.response.Response |
evaluateRequest(ServiceObject apiObject) |
static io.restassured.specification.RequestSpecification |
evaluateRequestBody(ServiceObject apiObject,
io.restassured.specification.RequestSpecification request) |
static io.restassured.specification.RequestSpecification |
evaluateRequestHeaders(ServiceObject apiObject)
sets the header, content type And body based on specifications
Headers are based on key value, separated by ";"
Invalid token: if authorization token exists, replace last values with "invalid", else set to "invalid"
|
static io.restassured.response.Response |
RestfullApiInterface(ServiceObject apiObject)
interface for restful API calls
|
static void |
setURI(ServiceObject apiObject)
sets base uri for api call
|
static void |
validateExpectedValues(io.restassured.response.Response response,
ServiceObject apiObject) |
static void |
validateResponse(io.restassured.response.Response response,
ServiceObject apiObject) |
public static io.restassured.response.Response RestfullApiInterface(ServiceObject apiObject)
apiObject - public static void setURI(ServiceObject apiObject)
public static void validateResponse(io.restassured.response.Response response,
ServiceObject apiObject)
public static void validateExpectedValues(io.restassured.response.Response response,
ServiceObject apiObject)
public static io.restassured.specification.RequestSpecification evaluateRequestHeaders(ServiceObject apiObject)
apiObject - public static io.restassured.specification.RequestSpecification evaluateRequestBody(ServiceObject apiObject, io.restassured.specification.RequestSpecification request)
public static io.restassured.specification.RequestSpecification evaluateOption(ServiceObject apiObject, io.restassured.specification.RequestSpecification request)
apiObject - public static io.restassured.response.Response evaluateRequest(ServiceObject apiObject)
Copyright © 2019. All rights reserved.