Class ApiSteps
java.lang.Object
de.telekom.test.bddwebapp.api.steps.ApiSteps
- All Implemented Interfaces:
RestAssuredSteps
Abstract steps class for api tests.
- Author:
- Daniel Keiss <daniel.keiss@telekom.de>
Copyright (c) 2023 Daniel Keiss, Deutsche Telekom IT GmbH This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
-
Field Summary
FieldsFields inherited from interface de.telekom.test.bddwebapp.api.steps.RestAssuredSteps
REQUEST_INTERACTION_KEY, RESPONSE_INTERACTION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidio.restassured.specification.RequestSpecificationio.restassured.response.ResponseRecall the current response from story interaction.voidrememberRequest(io.restassured.specification.RequestSpecification requestSpecification) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.telekom.test.bddwebapp.api.steps.RestAssuredSteps
baseUri, createRequest, createRequestWithBaseUriAndProxy, createRequestWithJsonConfig, determineStandardPortForScheme, jsonConfig, proxy, proxy, recallResponseAsMap
-
Field Details
-
scenarioInteraction
-
-
Constructor Details
-
ApiSteps
public ApiSteps()
-
-
Method Details
-
clearRequest
public void clearRequest() -
recallRequest
public io.restassured.specification.RequestSpecification recallRequest()- Specified by:
recallRequestin interfaceRestAssuredSteps
-
rememberRequest
public void rememberRequest(io.restassured.specification.RequestSpecification requestSpecification) - Specified by:
rememberRequestin interfaceRestAssuredSteps
-
recallResponse
public io.restassured.response.Response recallResponse()Description copied from interface:RestAssuredStepsRecall the current response from story interaction. The response is set a RequestInteractionFilter.- Specified by:
recallResponsein interfaceRestAssuredSteps
-