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.response.Response |
evaluateRequestAndValidateResponse(ServiceObject apiObject)
evaluate request and validate response
retry until validation timeout period in seconds
|
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 |
setProxy()
set proxy from config file
|
static void |
setTimeout()
set connection timeout in milliseconds
|
static void |
setURI(ServiceObject apiObject)
sets base uri for api call
|
static List<String> |
validateExpectedValues(io.restassured.response.Response response,
ServiceObject apiObject) |
static List<String> |
validateResponse(io.restassured.response.Response response,
ServiceObject apiObject) |
public static io.restassured.response.Response RestfullApiInterface(ServiceObject apiObject)
apiObject - public static io.restassured.response.Response evaluateRequestAndValidateResponse(ServiceObject apiObject)
apiObject - public static void setURI(ServiceObject apiObject)
public static void setTimeout()
public static void setProxy()
public static List<String> validateResponse(io.restassured.response.Response response, ServiceObject apiObject)
public static List<String> 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.