Package | Description |
---|---|
io.restassured | |
io.restassured.builder | |
io.restassured.internal | |
io.restassured.internal.filter | |
io.restassured.listener | |
io.restassured.specification |
Modifier and Type | Field and Description |
---|---|
static RequestSpecification |
RestAssured.requestSpecification
Specify a default request specification that will be sent with each request.
|
Modifier and Type | Method and Description |
---|---|
static RequestSpecification |
RestAssured.given()
Start building the request part of the test io.restassured.specification.
|
static RequestSpecification |
RestAssured.given(RequestSpecification requestSpecification)
When you're only interested in supplying a predefined request specification without a response specification then you can use this method.
|
static RequestSpecification |
RestAssured.with()
Start building the request part of the test io.restassured.specification.
|
Modifier and Type | Method and Description |
---|---|
static RequestSpecification |
RestAssured.given(RequestSpecification requestSpecification)
When you're only interested in supplying a predefined request specification without a response specification then you can use this method.
|
static RequestSender |
RestAssured.given(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification)
When you have long specifications it can be better to split up the definition of response and request specifications in multiple lines.
|
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecBuilder.build()
Build RequestSpecBuilder.
|
Modifier and Type | Method and Description |
---|---|
RequestSpecBuilder |
RequestSpecBuilder.addRequestSpecification(RequestSpecification specification)
Merge this builder with settings from another specification.
|
Modifier and Type | Class and Description |
---|---|
class |
RequestSpecificationImpl |
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecificationImpl.accept(ContentType contentType) |
RequestSpecification |
RequestSpecificationImpl.accept(String mediaTypes) |
RequestSpecification |
RequestLogSpecificationImpl.all() |
RequestSpecification |
RequestLogSpecificationImpl.all(boolean shouldPrettyPrint) |
RequestSpecification |
RedirectSpecificationImpl.allowCircular(boolean allowCircularRedirects) |
RequestSpecification |
RequestSpecificationImpl.and() |
RequestSpecification |
RequestSpecificationImpl.basePath(String basePath) |
RequestSpecification |
RequestSpecificationImpl.baseUri(String baseUri) |
RequestSpecification |
PreemptiveAuthSpecImpl.basic(String username,
String password) |
RequestSpecification |
AuthenticationSpecificationImpl.basic(String userName,
String password) |
RequestSpecification |
RequestLogSpecificationImpl.body() |
RequestSpecification |
RequestLogSpecificationImpl.body(boolean shouldPrettyPrint) |
RequestSpecification |
RequestSpecificationImpl.body(byte... body) |
RequestSpecification |
RequestSpecificationImpl.body(File body) |
RequestSpecification |
RequestSpecificationImpl.body(InputStream body) |
RequestSpecification |
RequestSpecificationImpl.body(Object object) |
RequestSpecification |
RequestSpecificationImpl.body(Object object,
ObjectMapper mapper) |
RequestSpecification |
RequestSpecificationImpl.body(Object object,
ObjectMapperType mapperType) |
RequestSpecification |
RequestSpecificationImpl.body(String body) |
RequestSpecification |
AuthenticationSpecificationImpl.certificate(String certURL,
String password) |
RequestSpecification |
AuthenticationSpecificationImpl.certificate(String certURL,
String password,
CertificateAuthSettings settings) |
RequestSpecification |
RequestSpecificationImpl.config(RestAssuredConfig config) |
RequestSpecification |
RequestSpecificationImpl.contentType(ContentType contentType) |
RequestSpecification |
RequestSpecificationImpl.contentType(String contentType) |
RequestSpecification |
RequestSpecificationImpl.cookie(Cookie cookie) |
RequestSpecification |
RequestSpecificationImpl.cookie(String cookieName) |
RequestSpecification |
RequestSpecificationImpl.cookie(String cookieName,
Object value,
Object... additionalValues) |
RequestSpecification |
RequestLogSpecificationImpl.cookies() |
RequestSpecification |
RequestSpecificationImpl.cookies(Cookies cookies) |
RequestSpecification |
RequestSpecificationImpl.cookies(Map cookies) |
RequestSpecification |
RequestSpecificationImpl.cookies(String firstCookieName,
Object firstCookieValue,
Object... cookieNameValuePairs) |
RequestSpecification |
RequestSpecificationImpl.csrf(String csrfTokenPath) |
RequestSpecification |
RequestSpecificationImpl.csrf(String csrfTokenPath,
String csrfInputFieldName) |
RequestSpecification |
AuthenticationSpecificationImpl.digest(String userName,
String password) |
RequestSpecification |
RequestSpecificationImpl.disableCsrf() |
RequestSpecification |
RequestLogSpecificationImpl.everything() |
RequestSpecification |
RequestLogSpecificationImpl.everything(boolean shouldPrettyPrint) |
RequestSpecification |
RequestSpecificationImpl.filter(Filter filter) |
RequestSpecification |
RequestSpecificationImpl.filters(Filter filter,
Filter... additionalFilter) |
RequestSpecification |
RequestSpecificationImpl.filters(List<Filter> filters) |
RequestSpecification |
RedirectSpecificationImpl.follow(boolean followRedirects) |
RequestSpecification |
AuthenticationSpecificationImpl.form(String userName,
String password) |
RequestSpecification |
AuthenticationSpecificationImpl.form(String userName,
String password,
FormAuthConfig config) |
RequestSpecification |
RequestSpecificationImpl.formParam(String parameterName,
Collection<?> parameterValues) |
RequestSpecification |
RequestSpecificationImpl.formParam(String parameterName,
Object... additionalParameterValues) |
RequestSpecification |
RequestSpecificationImpl.formParams(Map parametersMap) |
RequestSpecification |
RequestSpecificationImpl.formParams(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs) |
RequestSpecification |
RequestLogSpecificationImpl.getRequestSpecification() |
RequestSpecification |
TestSpecificationImpl.getRequestSpecification() |
RequestSpecification |
RequestSpecificationImpl.given() |
RequestSpecification |
ResponseSpecificationImpl.given() |
RequestSpecification |
RequestSpecificationImpl.header(Header header) |
RequestSpecification |
RequestSpecificationImpl.header(String headerName,
Object headerValue,
Object... additionalHeaderValues) |
RequestSpecification |
RequestLogSpecificationImpl.headers() |
RequestSpecification |
RequestSpecificationImpl.headers(Headers headers) |
RequestSpecification |
RequestSpecificationImpl.headers(Map headers) |
RequestSpecification |
RequestSpecificationImpl.headers(String firstHeaderName,
Object firstHeaderValue,
Object... headerNameValuePairs) |
RequestSpecification |
RequestLogSpecificationImpl.ifValidationFails() |
RequestSpecification |
RequestLogSpecificationImpl.ifValidationFails(LogDetail logDetail) |
RequestSpecification |
RequestLogSpecificationImpl.ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint) |
RequestSpecification |
RequestSpecificationImpl.keyStore(File pathToJks,
String password) |
RequestSpecification |
RequestSpecificationImpl.keyStore(KeyStore keyStore) |
RequestSpecification |
RequestSpecificationImpl.keyStore(String pathToJks,
String password) |
RequestSpecification |
RedirectSpecificationImpl.max(int maxNumberOfRedirect) |
RequestSpecification |
RequestLogSpecificationImpl.method() |
RequestSpecification |
RequestSpecificationImpl.multiPart(File file) |
RequestSpecification |
RequestSpecificationImpl.multiPart(MultiPartSpecification multiPartSpec) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String controlName,
File file) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String controlName,
File file,
String mimeType) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
NoParameterValue contentBody) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String controlName,
Object object) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String controlName,
Object object,
String mimeType) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
String contentBody) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
String fileName,
byte... bytes) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
String fileName,
byte[] bytes,
String mimeType) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
String fileName,
InputStream stream) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
String fileName,
InputStream stream,
String mimeType) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String controlName,
String filename,
Object object,
String mimeType) |
RequestSpecification |
RequestSpecificationImpl.multiPart(String name,
String contentBody,
String mimeType) |
RequestSpecification |
RequestSpecificationImpl.noContentType() |
RequestSpecification |
RequestSpecificationImpl.noFilters() |
RequestSpecification |
RequestSpecificationImpl.noFiltersOfType(Class filterType) |
RequestSpecification |
AuthenticationSpecificationImpl.none() |
RequestSpecification |
AuthenticationSpecificationImpl.ntlm(String userName,
String password,
String workstation,
String domain) |
RequestSpecification |
AuthenticationSpecificationImpl.oauth(String consumerKey,
String consumerSecret,
String accessToken,
String secretToken) |
RequestSpecification |
AuthenticationSpecificationImpl.oauth(String consumerKey,
String consumerSecret,
String accessToken,
String secretToken,
OAuthSignature signature) |
RequestSpecification |
PreemptiveAuthSpecImpl.oauth2(String accessToken) |
RequestSpecification |
AuthenticationSpecificationImpl.oauth2(String accessToken) |
RequestSpecification |
AuthenticationSpecificationImpl.oauth2(String accessToken,
OAuthSignature signature) |
RequestSpecification |
RequestSpecificationImpl.param(String parameterName,
Collection<?> parameterValues) |
RequestSpecification |
RequestSpecificationImpl.param(String parameterName,
Object... parameterValues) |
RequestSpecification |
RequestLogSpecificationImpl.parameters() |
RequestSpecification |
RequestLogSpecificationImpl.params() |
RequestSpecification |
RequestSpecificationImpl.params(Map parametersMap) |
RequestSpecification |
RequestSpecificationImpl.params(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs) |
RequestSpecification |
RequestSpecificationImpl.pathParam(String parameterName,
Object parameterValue) |
RequestSpecification |
RequestSpecificationImpl.pathParams(Map parameterNameValuePairs) |
RequestSpecification |
RequestSpecificationImpl.pathParams(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs) |
RequestSpecification |
RequestSpecificationImpl.port(int port) |
RequestSpecification |
RequestSpecificationImpl.proxy(int port) |
RequestSpecification |
RequestSpecificationImpl.proxy(ProxySpecification proxySpecification) |
RequestSpecification |
RequestSpecificationImpl.proxy(String host) |
RequestSpecification |
RequestSpecificationImpl.proxy(String host,
int port) |
RequestSpecification |
RequestSpecificationImpl.proxy(String host,
int port,
String scheme) |
RequestSpecification |
RequestSpecificationImpl.proxy(URI uri) |
RequestSpecification |
RequestSpecificationImpl.queryParam(String parameterName,
Collection<?> parameterValues) |
RequestSpecification |
RequestSpecificationImpl.queryParam(String parameterName,
Object... parameterValues) |
RequestSpecification |
RequestSpecificationImpl.queryParams(Map parametersMap) |
RequestSpecification |
RequestSpecificationImpl.queryParams(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs) |
RequestSpecification |
RedirectSpecificationImpl.rejectRelative(boolean rejectRelativeRedirects) |
RequestSpecification |
RequestSpecificationImpl.relaxedHTTPSValidation() |
RequestSpecification |
RequestSpecificationImpl.relaxedHTTPSValidation(String protocol) |
RequestSpecification |
RequestSpecificationImpl.request() |
RequestSpecification |
ResponseSpecificationImpl.request() |
RequestSpecification |
RequestSpecificationImpl.sessionId(String sessionIdValue) |
RequestSpecification |
RequestSpecificationImpl.sessionId(String sessionIdName,
String sessionIdValue) |
RequestSpecification |
RequestSpecificationImpl.spec(RequestSpecification requestSpecificationToMerge) |
RequestSpecification |
RequestSpecificationImpl.specification(RequestSpecification requestSpecificationToMerge) |
RequestSpecification |
RequestSpecificationImpl.that() |
RequestSpecification |
RequestSpecificationImpl.trustStore(File path,
String password) |
RequestSpecification |
RequestSpecificationImpl.trustStore(KeyStore trustStore) |
RequestSpecification |
RequestSpecificationImpl.trustStore(String path,
String password) |
RequestSpecification |
RequestLogSpecificationImpl.uri() |
RequestSpecification |
RequestSpecificationImpl.urlEncodingEnabled(boolean isEnabled) |
RequestSpecification |
RequestSpecificationImpl.when() |
RequestSpecification |
RequestSpecificationImpl.with() |
RequestSpecification |
ResponseSpecificationImpl.with() |
Modifier and Type | Method and Description |
---|---|
PrintStream |
LogSpecificationImpl.getPrintStream(RequestSpecification requestSpecification) |
void |
LogRequestAndResponseOnFailListener.onFailure(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification,
Response response) |
void |
RequestLogSpecificationImpl.setRequestSpecification(RequestSpecification value) |
boolean |
LogSpecificationImpl.shouldPrettyPrint(RequestSpecification requestSpecification) |
boolean |
LogSpecificationImpl.shouldUrlEncodeRequestUri(RequestSpecification requestSpecification) |
RequestSpecification |
RequestSpecificationImpl.spec(RequestSpecification requestSpecificationToMerge) |
RequestSpecification |
RequestSpecificationImpl.specification(RequestSpecification requestSpecificationToMerge) |
Constructor and Description |
---|
AuthenticationSpecificationImpl(RequestSpecification requestSpecification) |
PreemptiveAuthSpecImpl(RequestSpecification requestBuilder) |
RedirectSpecificationImpl(RequestSpecification requestSpecification,
Map httpClientParams) |
RequestSpecificationImpl(String baseURI,
int requestPort,
String basePath,
AuthenticationScheme defaultAuthScheme,
List<Filter> filters,
RequestSpecification defaultSpec,
boolean urlEncode,
RestAssuredConfig restAssuredConfig,
LogRepository logRepository,
ProxySpecification proxySpecification,
boolean allowContentType,
boolean addCsrfFilter) |
TestSpecificationImpl(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification) |
Modifier and Type | Method and Description |
---|---|
static void |
FormAuthFilter.applySessionFilterFromOriginalRequestIfDefined(FilterableRequestSpecification requestSpec,
RequestSpecification loginRequestSpec) |
Modifier and Type | Method and Description |
---|---|
void |
ResponseValidationFailureListener.onFailure(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification,
Response response)
Called when a failure occurs
|
Modifier and Type | Interface and Description |
---|---|
interface |
FilterableRequestSpecification
A request specification that also supports getting and changing the defined values.
|
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecification.accept(ContentType contentType)
Specify the accept header of the request.
|
RequestSpecification |
RequestSpecification.accept(String mediaTypes)
Specify the accept header of the request.
|
RequestSpecification |
RedirectSpecification.allowCircular(boolean allowCircularRedirects)
Defines whether circular redirects are allowed.
|
RequestSpecification |
RequestSpecification.and()
Syntactic sugar, e.g.
|
RequestSpecification |
RequestSpecification.basePath(String basePath)
Set the basePath property of the RequestSpecification instead of using static field RestAssured.basePath.
|
RequestSpecification |
RequestSpecification.baseUri(String baseUri)
Adding the baseUri Property from the RequestSpecification instead of using static field RestAssured.baseURI.
|
RequestSpecification |
PreemptiveAuthSpec.basic(String username,
String password)
Use preemptive http basic authentication.
|
RequestSpecification |
AuthenticationSpecification.basic(String userName,
String password)
Use http basic authentication.
|
RequestSpecification |
RequestSpecification.body(byte[] body)
Specify a byte array request body that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.body(File body)
Specify file content that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.body(InputStream body)
Specify file content that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.body(Object object)
Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request.
|
RequestSpecification |
RequestSpecification.body(Object object,
ObjectMapper mapper)
Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request using a specific object mapper.
|
RequestSpecification |
RequestSpecification.body(Object object,
ObjectMapperType mapperType)
Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request using a specific object mapper type.
|
RequestSpecification |
RequestSpecification.body(String body)
Specify a String request body (such as e.g.
|
RequestSpecification |
AuthenticationSpecification.certificate(String certURL,
String password)
Sets a certificate to be used for SSL authentication.
|
RequestSpecification |
AuthenticationSpecification.certificate(String certURL,
String password,
CertificateAuthSettings certificateAuthSettings)
Sets a certificate to be used for SSL authentication.
|
RequestSpecification |
RequestSpecification.config(RestAssuredConfig config)
Define a REST Assured configuration.
|
RequestSpecification |
RequestSpecification.contentType(ContentType contentType)
Specify the content type of the request.
|
RequestSpecification |
RequestSpecification.contentType(String contentType)
Specify the content type of the request.
|
RequestSpecification |
RequestSpecification.cookie(Cookie cookie)
Specify a
Cookie to send with the request. |
RequestSpecification |
RequestSpecification.cookie(String cookieName)
Specify a cookie with no value that'll be sent with the request e.g:
|
RequestSpecification |
RequestSpecification.cookie(String cookieName,
Object value,
Object... additionalValues)
Specify a cookie that'll be sent with the request e.g:
|
RequestSpecification |
RequestSpecification.cookies(Cookies cookies)
Specify the cookies that'll be sent with the request as
Cookies : |
RequestSpecification |
RequestSpecification.cookies(Map<String,?> cookies)
Specify the cookies that'll be sent with the request as Map e.g:
|
RequestSpecification |
RequestSpecification.cookies(String firstCookieName,
Object firstCookieValue,
Object... cookieNameValuePairs)
Specify the cookies that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.csrf(String csrfTokenPath)
Enable Cross-site request forgery (csrf) support by specifying the path to the HTML page that contains the CSRF token.
|
RequestSpecification |
RequestSpecification.csrf(String csrfTokenPath,
String csrfFieldName)
Enable Cross-site request forgery (csrf) support by specifying the path to the HTML page that contains the CSRF token as well as the name of the input field that contains the CSRF token.
|
RequestSpecification |
AuthenticationSpecification.digest(String userName,
String password)
Use http digest authentication.
|
RequestSpecification |
RequestSpecification.disableCsrf()
Disable CSRF for this request
|
RequestSpecification |
RequestSpecification.filter(Filter filter)
Add a filter that will be used in the request.
|
RequestSpecification |
RequestSpecification.filters(Filter filter,
Filter... additionalFilter)
Add filters that will be used in the request.
|
RequestSpecification |
RequestSpecification.filters(List<Filter> filters)
Add filters that will be used in the request.
|
RequestSpecification |
RedirectSpecification.follow(boolean followRedirects)
Defines whether redirects should be followed automatically.
|
RequestSpecification |
AuthenticationSpecification.form(String userName,
String password)
Use form authentication.
|
RequestSpecification |
AuthenticationSpecification.form(String userName,
String password,
FormAuthConfig config)
Use form authentication with the supplied configuration.
|
RequestSpecification |
RequestSpecification.formParam(String parameterName,
Collection<?> parameterValues)
Specify a multi-value form parameter that'll be sent with the request e.g:
|
RequestSpecification |
RequestSpecification.formParam(String parameterName,
Object... parameterValues)
Specify a form parameter that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.formParams(Map<String,?> parametersMap)
Specify the form parameters that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.formParams(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs)
Specify the form parameters that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.given()
Syntactic sugar, e.g.
|
RequestSpecification |
ResponseSpecification.given()
Returns the request io.restassured.specification so that you can define the properties of the request.
|
RequestSpecification |
RequestSpecification.header(Header header)
Specify a
Header to send with the request. |
RequestSpecification |
RequestSpecification.header(String headerName,
Object headerValue,
Object... additionalHeaderValues)
Specify a header that'll be sent with the request e.g:
|
RequestSpecification |
RequestSpecification.headers(Headers headers)
Specify the headers that'll be sent with the request as
Headers , e.g: |
RequestSpecification |
RequestSpecification.headers(Map<String,?> headers)
Specify the headers that'll be sent with the request as Map e.g:
|
RequestSpecification |
RequestSpecification.headers(String firstHeaderName,
Object firstHeaderValue,
Object... headerNameValuePairs)
Specify the headers that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.keyStore(File pathToJks,
String password)
Use a keystore located on the file-system.
|
RequestSpecification |
RequestSpecification.keyStore(KeyStore keyStore)
Use the supplied keystore for HTTPS requests.
|
RequestSpecification |
RequestSpecification.keyStore(String pathToJks,
String password)
The following documentation is taken from https://github.com/jgritman/httpbuilder/wiki/SSL:
|
RequestSpecification |
RedirectSpecification.max(int maxNumberOfRedirect)
Limit the number of redirects to prevent infinite loops.
|
RequestSpecification |
RequestLogSpecification.method()
Only logs the request method.
|
RequestSpecification |
RequestSpecification.multiPart(File file)
Specify a file to upload to the server using multi-part form data uploading.
|
RequestSpecification |
RequestSpecification.multiPart(MultiPartSpecification multiPartSpecification)
Specify a multi-part specification.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
File file)
Specify a file to upload to the server using multi-part form data uploading with a specific
control name.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
File file,
String mimeType)
Specify a file to upload to the server using multi-part form data uploading with a specific
control name and mime-type.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
Object object)
Specify an object that will be serialized to JSON and uploaded to the server using multi-part form data
uploading with a specific control name.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
Object object,
String mimeType)
Specify an object that will be serialized and uploaded to the server using multi-part form data
uploading with a specific control name.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String contentBody)
Specify a string to send to the server using multi-part form data.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String fileName,
byte[] bytes)
Specify a byte-array to upload to the server using multi-part form data.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String fileName,
byte[] bytes,
String mimeType)
Specify a byte-array to upload to the server using multi-part form data.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String fileName,
InputStream stream)
Specify an inputstream to upload to the server using multi-part form data.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String fileName,
InputStream stream,
String mimeType)
Specify an inputstream to upload to the server using multi-part form data.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String filename,
Object object,
String mimeType)
Specify an object that will be serialized and uploaded to the server using multi-part form data
uploading with a specific control name.
|
RequestSpecification |
RequestSpecification.multiPart(String controlName,
String contentBody,
String mimeType)
Specify a string to send to the server using multi-part form data with a specific mime-type.
|
RequestSpecification |
RequestSpecification.noContentType()
Instructs rest assured to don't include a content-type in the request
|
RequestSpecification |
RequestSpecification.noFilters()
Remove all applied filters
|
<T extends Filter> |
RequestSpecification.noFiltersOfType(Class<T> filterType)
Remove all applied filters
|
RequestSpecification |
AuthenticationSpecification.none()
Explicitly state that you don't wish to use any authentication in this request.
|
RequestSpecification |
AuthenticationSpecification.ntlm(String userName,
String password,
String workstation,
String domain)
Use NTLM authentication.
|
RequestSpecification |
AuthenticationSpecification.oauth(String consumerKey,
String consumerSecret,
String accessToken,
String secretToken)
Excerpt from the HttpBuilder docs:
OAuth sign the request. |
RequestSpecification |
AuthenticationSpecification.oauth(String consumerKey,
String consumerSecret,
String accessToken,
String secretToken,
OAuthSignature signature)
Excerpt from the HttpBuilder docs:
OAuth sign the request. |
RequestSpecification |
PreemptiveAuthSpec.oauth2(String accessToken)
OAuth2 sign the request.
|
RequestSpecification |
AuthenticationSpecification.oauth2(String accessToken)
OAuth2 sign the request.
|
RequestSpecification |
AuthenticationSpecification.oauth2(String accessToken,
OAuthSignature signature)
OAuth2 sign the request.
|
RequestSpecification |
RequestSpecification.param(String parameterName,
Collection<?> parameterValues)
Specify a multi-value parameter that'll be sent with the request e.g:
|
RequestSpecification |
RequestSpecification.param(String parameterName,
Object... parameterValues)
Specify a parameter that'll be sent with the request e.g:
|
RequestSpecification |
RequestLogSpecification.parameters()
Logs only the parameters of the request.
|
RequestSpecification |
RequestLogSpecification.params()
Logs only the parameters of the request.
|
RequestSpecification |
RequestSpecification.params(Map<String,?> parametersMap)
Specify the parameters that'll be sent with the request as Map e.g:
|
RequestSpecification |
RequestSpecification.params(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs)
Specify the parameters that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.pathParam(String parameterName,
Object parameterValue)
Specify a path parameter.
|
RequestSpecification |
RequestSpecification.pathParams(Map<String,?> parameterNameValuePairs)
Specify multiple path parameter name-value pairs.
|
RequestSpecification |
RequestSpecification.pathParams(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs)
Specify multiple path parameter name-value pairs.
|
RequestSpecification |
RequestSpecification.port(int port)
Specify the port of the URI.
|
RequestSpecification |
RequestSpecification.proxy(int port)
Instruct REST Assured to connect to a proxy on the specified port on localhost.
|
RequestSpecification |
RequestSpecification.proxy(ProxySpecification proxySpecification)
Instruct REST Assured to connect to a proxy using a
ProxySpecification . |
RequestSpecification |
RequestSpecification.proxy(String host)
Instruct REST Assured to connect to a proxy on the specified host on port
8888 . |
RequestSpecification |
RequestSpecification.proxy(String host,
int port)
Instruct REST Assured to connect to a proxy on the specified host and port.
|
RequestSpecification |
RequestSpecification.proxy(String host,
int port,
String scheme)
Instruct REST Assured to connect to a proxy on the specified port on localhost with a specific scheme.
|
RequestSpecification |
RequestSpecification.proxy(URI uri)
Instruct REST Assured to connect to a proxy using a URI.
|
RequestSpecification |
RequestSpecification.queryParam(String parameterName,
Collection<?> parameterValues)
Specify a multi-value query parameter that'll be sent with the request e.g:
|
RequestSpecification |
RequestSpecification.queryParam(String parameterName,
Object... parameterValues)
Specify a query parameter that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.queryParams(Map<String,?> parametersMap)
Specify the query parameters that'll be sent with the request.
|
RequestSpecification |
RequestSpecification.queryParams(String firstParameterName,
Object firstParameterValue,
Object... parameterNameValuePairs)
Specify the query parameters that'll be sent with the request.
|
RequestSpecification |
RedirectSpecification.rejectRelative(boolean rejectRelativeRedirects)
Defines whether relative redirects should be allowed.
|
RequestSpecification |
RequestSpecification.relaxedHTTPSValidation()
Use relaxed HTTP validation with SSLContext protocol SSL.
|
RequestSpecification |
RequestSpecification.relaxedHTTPSValidation(String protocol)
Use relaxed HTTP validation with the given SSLContext protocol.
|
RequestSpecification |
RequestSpecification.request()
Syntactic sugar, e.g.
|
RequestSpecification |
ResponseSpecification.request()
Returns the request io.restassured.specification so that you can define the properties of the request.
|
RequestSpecification |
RequestSpecification.sessionId(String sessionIdValue)
Set the session id for this request.
|
RequestSpecification |
RequestSpecification.sessionId(String sessionIdName,
String sessionIdValue)
Set the session id name and value for this request.
|
RequestSpecification |
RequestSpecification.spec(RequestSpecification requestSpecificationToMerge)
Add request data from a pre-defined specification.
|
RequestSpecification |
RequestSpecification.that()
Syntactic sugar, e.g.
|
RequestSpecification |
RequestSpecification.trustStore(File path,
String password)
Use a trust store located on the file-system.
|
RequestSpecification |
RequestSpecification.trustStore(KeyStore trustStore)
Use the supplied truststore for HTTPS requests.
|
RequestSpecification |
RequestSpecification.trustStore(String path,
String password)
Apply a trust store.
|
RequestSpecification |
RequestLogSpecification.uri()
Only logs the request uri.
|
RequestSpecification |
RequestSpecification.urlEncodingEnabled(boolean isEnabled)
Specifies if Rest Assured should url encode the URL automatically.
|
RequestSpecification |
RequestSpecification.when()
Syntactic sugar, e.g.
|
RequestSpecification |
RequestSpecification.with()
Syntactic sugar, e.g.
|
RequestSpecification |
ResponseSpecification.with()
Returns the request io.restassured.specification so that you can define the properties of the request.
|
Modifier and Type | Method and Description |
---|---|
static QueryableRequestSpecification |
SpecificationQuerier.query(RequestSpecification specification) |
RequestSpecification |
RequestSpecification.spec(RequestSpecification requestSpecificationToMerge)
Add request data from a pre-defined specification.
|
Copyright © 2010–2023. All rights reserved.