Package de.gematik.test.tiger.glue
Class RBelValidatorGlue
java.lang.Object
de.gematik.test.tiger.glue.RBelValidatorGlue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcurrentRequestAtMatchesAsJsonOrXml(String rbelPath, ModeType mode, String oracleDocStr) assert that request matches at given rbel path node/attribute assuming it's JSON or XML.voidcurrentRequestBodyMatches(String docString) assert that request body matches.voidcurrentRequestMessageAtMatchesDocString(String rbelPath, String docString) assert that request matches at given rbel path node/attribute.voidcurrentRequestMessageAttributeDoesNotMatch(String rbelPath, String value) assert that request does not match at given rbel path node/attribute.voidcurrentRequestMessageAttributeMatches(String rbelPath, String value) assert that request matches the value at given rbel path node/attribute.voidcurrentRequestMessageContainsNode(String rbelPath) assert that request contains at least 1 (or maybe more) node/attribute at given rbel path.voidcurrentResponseAtMatchesAsJsonOrXml(String rbelPath, ModeType mode, String oracleDocStr) assert that response of filtered request matches at given rbel path node/attribute assuming it's JSON or XML.voidcurrentResponseAtMatchesAsXMLAndDiffOptions(String rbelPath, String diffOptionsCSV, String xmlDocStr) assert that response of filtered request matches at given rbel path node/attribute assuming its XML with the given list of diff options.voidcurrentResponseBodyMatches(String docString) assert that response body of filtered request matches.voidcurrentResponseMessageAtDoesNotMatchDocString(String rbelPath, String docString) assert that response of filtered request does not match at given rbel path node/attribute.voidcurrentResponseMessageAtMatchesDocString(String rbelPath, String docString) assert that response of filtered request matches at given rbel path node/attribute.voidcurrentResponseMessageAttributeDoesNotMatch(String rbelPath, String value) assert that response of filtered request does not match at given rbel path node/attribute.voidcurrentResponseMessageAttributeMatches(String rbelPath, String value) assert that response of filtered request matches at given rbel path node/attribute.voidcurrentResponseMessageContainsNode(String rbelPath) assert that response of filtered request contains at least one node/attribute at given rbel path.voidfindAnyMessageAttributeMatches(String rbelPath, String value) Deprecated, for removal: This API element is subject to removal in a future version.voidfindFirstRequestToPathContainingNode(String path, String rbelPath) find the first request where path matches and request contains node with given rbel path and memorize it in therbelValidatorinstance.voidfindLastMessageWithNode(String rbelPath) find the last message containing given node and memorize it in the {@link * #rbelValidator} instance.voidfindLastMessageWithNodeMatching(String rbelPath, String value) find the last message where node value equal or match as regex and memorize it in therbelValidatorinstance.voidfind the LAST request.voidfindLastRequestToPath(String path) find the LAST request where the path equals or matches as regex and memorize it in therbelValidatorinstance.voidfindLastRequestToPathWithCommand(String path, String rbelPath, String value) find the LAST request where path and node value equal or match as regex and memorize it in therbelValidatorinstance.voidfindLastRequestWithNodeMatching(String rbelPath, String value) find the LAST request where the node value equal or match as regex and memorize it in therbelValidatorinstance.voidfindMessageWithNode(String rbelPath) find the first message containing given node and memorize it in therbelValidatorinstance.voidfindMessageWithNodeMatching(String rbelPath, String value) find the first message where node value equal or match as regex and memorize it in therbelValidatorinstance.voidfindNextMessageWithNode(String rbelPath) find the next message containing given node and memorize it in therbelValidatorinstance.voidfindNextMessageWithNodeMatching(String rbelPath, String value) find the next message where node value equal or match as regex and memorize it in therbelValidatorinstance.voidfindNextRequestToPath(String path) find the NEXT request where the path equals or matches as regex and memorize it in therbelValidatorinstance.voidfindNextRequestToPathContainingNode(String path, String rbelPath) find the NEXT request where path matches and request contains node with given rbel path and memorize it in therbelValidatorinstance.voidfindNextRequestToPathWithCommand(String path, String rbelPath, String value) find the NEXT request where path and node value equal or match as regex and memorize it in therbelValidatorinstance.voidfindRequestToPath(String path) find the first request where the path equals or matches as regex and memorize it in therbelValidatorinstancevoidfindRequestToPathWithCommand(String path, String rbelPath, String value) find the first request where path and node value equal or match as regex and memorize it in therbelValidatorinstance.voidPrints the rbel-tree of all requests and responses to the System-outvoidPrints the rbel-tree of the current request to the System-outvoidPrints the rbel-tree of the current response to the System-outvoidreadTgrFile(String filePath) Reads a Tiger traffic file and sends messages to local Tiger proxyvoidreplaceContentOfVariable(String regexPattern, String replace, String varName) replace stored content with given regexvoidClears the custom failure messagevoidsetCustomFailureMessage(String customFailureMessage) Sets a custom failure message that will be displayed in the logs if a following step in the test fails.voidstoreCurrentRequestNodeTextValueInVariable(String rbelPath, String varName) store given rbel path node/attribute text value of current request.voidstoreCurrentResponseNodeTextValueInVariable(String rbelPath, String varName) store given rbel path node/attribute text value of current response.voidclear all validatable rbel messages.voidtgrFilterBasedOnHost(String hostname) filter all subsequent findRequest steps for hostname.voidtgrFilterBasedOnMethod(String method) filter all subsequent findRequest steps for method.voidreset filter for method for subsequent findRequest steps.voidtgrSetRequestWaitTimeout(int waitsec) Specify the amount of seconds Tiger should wait when filtering for requests / responses before reporting them as not found.voidwaitForMessageWithValue(String rbelPath, String value) Wait until a message is found in which the given node, specified by a RbelPath-Expression, matches the given value.voidwaitForNewMessageWithValue(String rbelPath, String value) Wait until a NEW message is found in which the given node, specified by a RbelPath-Expression, matches the given value.
-
Constructor Details
-
RBelValidatorGlue
-
RBelValidatorGlue
public RBelValidatorGlue()
-
-
Method Details
-
tgrSetRequestWaitTimeout
@Gegebensei("TGR setze Anfrage Timeout auf {int} Sekunden") @Given("TGR set request wait timeout to {int} seconds") public void tgrSetRequestWaitTimeout(int waitsec) Specify the amount of seconds Tiger should wait when filtering for requests / responses before reporting them as not found. -
tgrClearRecordedMessages
@Wenn("TGR l\u00f6sche aufgezeichnete Nachrichten") @When("TGR clear recorded messages") public void tgrClearRecordedMessages()clear all validatable rbel messages. This does not clear the recorded messages later on reported via the rbel log HTML page or the messages shown on web ui of tiger proxies. -
tgrFilterBasedOnHost
@Wenn("TGR filtere Anfragen nach Server {tigerResolvedString}") @When("TGR filter requests based on host {tigerResolvedString}") public void tgrFilterBasedOnHost(String hostname) filter all subsequent findRequest steps for hostname. To reset set host name to empty string "".- Parameters:
hostname- host name (regex supported) to filter for
-
tgrFilterBasedOnMethod
@Wenn("TGR filtere Anfragen nach HTTP Methode {tigerResolvedString}") @When("TGR filter requests based on method {tigerResolvedString}") public void tgrFilterBasedOnMethod(String method) filter all subsequent findRequest steps for method.- Parameters:
method- method to filter for
-
tgrResetRequestMethodFilter
@Wenn("TGR l\u00f6sche den gesetzten HTTP Methodenfilter") @When("TGR reset request method filter") public void tgrResetRequestMethodFilter()reset filter for method for subsequent findRequest steps. -
waitForMessageWithValue
@Wenn("TGR warte auf eine Nachricht, in der Knoten {tigerResolvedString} mit {tigerResolvedString} \u00fcbereinstimmt") @When("TGR wait for message with node {tigerResolvedString} matching {tigerResolvedString}") public void waitForMessageWithValue(String rbelPath, String value) Wait until a message is found in which the given node, specified by a RbelPath-Expression, matches the given value. This method will NOT alter currentRequest/currentResponse!!- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
waitForNewMessageWithValue
@Wenn("TGR warte auf eine neue Nachricht, in der Knoten {tigerResolvedString} mit {tigerResolvedString} \u00fcbereinstimmt") @When("TGR wait for new message with node {tigerResolvedString} matching {tigerResolvedString}") public void waitForNewMessageWithValue(String rbelPath, String value) Wait until a NEW message is found in which the given node, specified by a RbelPath-Expression, matches the given value. NEW in this context means that the step will wait and check only messages which are received after the step has started. Any previously received messages will NOT be checked. Please also note that the currentRequest/currentResponse used by the find / find next steps are not altered by this step.- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
findRequestToPath
@Wenn("TGR finde die erste Anfrage mit Pfad {string}") @When("TGR find request to path {string}") public void findRequestToPath(String path) find the first request where the path equals or matches as regex and memorize it in therbelValidatorinstance- Parameters:
path- path to match
-
findRequestToPathWithCommand
@Wenn("TGR finde die erste Anfrage mit Pfad {string} und Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find request to path {string} with {string} matching {string}") public void findRequestToPathWithCommand(String path, String rbelPath, String value) find the first request where path and node value equal or match as regex and memorize it in therbelValidatorinstance.- Parameters:
path- path to matchrbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
findNextRequestToPath
@Wenn("TGR finde die n\u00e4chste Anfrage mit dem Pfad {string}") @When("TGR find next request to path {string}") public void findNextRequestToPath(String path) find the NEXT request where the path equals or matches as regex and memorize it in therbelValidatorinstance.- Parameters:
path- path to match
-
findNextRequestToPathWithCommand
@Wenn("TGR finde die n\u00e4chste Anfrage mit Pfad {string} und Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find next request to path {string} with {string} matching {string}") public void findNextRequestToPathWithCommand(String path, String rbelPath, String value) find the NEXT request where path and node value equal or match as regex and memorize it in therbelValidatorinstance.- Parameters:
path- path to matchrbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
findFirstRequestToPathContainingNode
@Wenn("TGR finde die erste Anfrage mit Pfad {string} die den Knoten {string} enth\u00e4lt") @When("TGR find request to path {string} containing node {string}") public void findFirstRequestToPathContainingNode(String path, String rbelPath) find the first request where path matches and request contains node with given rbel path and memorize it in therbelValidatorinstance.- Parameters:
path- path to matchrbelPath- rbel path to node/attribute
-
findNextRequestToPathContainingNode
@Wenn("TGR finde die n\u00e4chste Anfrage mit Pfad {string} die den Knoten {string} enth\u00e4lt") @When("TGR find next request to path {string} containing node {string}") public void findNextRequestToPathContainingNode(String path, String rbelPath) find the NEXT request where path matches and request contains node with given rbel path and memorize it in therbelValidatorinstance.- Parameters:
path- path to matchrbelPath- rbel path to node/attribute
-
findLastRequestToPath
@Wenn("TGR finde die letzte Anfrage mit dem Pfad {string}") @When("TGR find last request to path {string}") public void findLastRequestToPath(String path) find the LAST request where the path equals or matches as regex and memorize it in therbelValidatorinstance.- Parameters:
path- path to match
-
findLastRequestToPathWithCommand
@Wenn("TGR finde die letzte Anfrage mit Pfad {string} und Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find last request to path {string} with {string} matching {string}") public void findLastRequestToPathWithCommand(String path, String rbelPath, String value) find the LAST request where path and node value equal or match as regex and memorize it in therbelValidatorinstance.- Parameters:
path- path to matchrbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
findLastRequestWithNodeMatching
@Wenn("TGR finde die letzte Anfrage mit Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find last request with {string} matching {string}") public void findLastRequestWithNodeMatching(String rbelPath, String value) find the LAST request where the node value equal or match as regex and memorize it in therbelValidatorinstance.- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
findLastRequest
@Wenn("TGR finde die letzte Anfrage") @When("TGR find the last request") public void findLastRequest()find the LAST request. -
findAnyMessageAttributeMatches
@Wenn("TGR finde eine Nachricht mit Knoten {tigerResolvedString} der mit {tigerResolvedString} \u00fcbereinstimmt") @When("TGR any message with attribute {tigerResolvedString} matches {tigerResolvedString}") @Deprecated(forRemoval=true) public void findAnyMessageAttributeMatches(String rbelPath, String value) Deprecated, for removal: This API element is subject to removal in a future version.assert that there is any message with given rbel path node/attribute matching given value. The matching will NOT perform regular expression matching but only checks for identical string content The result (request or response) will not be stored in therbelValidatorinstance.- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute
-
findMessageWithNodeMatching
@Wenn("TGR finde die erste Nachricht mit Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find message with {string} matching {string}") public void findMessageWithNodeMatching(String rbelPath, String value) throws AssertionError find the first message where node value equal or match as regex and memorize it in therbelValidatorinstance.- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute- Throws:
AssertionError
-
findMessageWithNode
@Wenn("TGR finde die erste Nachricht mit Knoten {string}") @When("TGR find message with {string}") public void findMessageWithNode(String rbelPath) throws AssertionError find the first message containing given node and memorize it in therbelValidatorinstance.- Parameters:
rbelPath- rbel path to node/attribute- Throws:
AssertionError
-
findNextMessageWithNodeMatching
@Wenn("TGR finde die n\u00e4chste Nachricht mit Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find next message with {string} matching {string}") public void findNextMessageWithNodeMatching(String rbelPath, String value) throws AssertionError find the next message where node value equal or match as regex and memorize it in therbelValidatorinstance. If the previous search using the 'find*message' steps found a response message, then this search starts after that response, otherwise, it starts after the current request message.- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute- Throws:
AssertionError
-
findNextMessageWithNode
@Wenn("TGR finde die n\u00e4chste Nachricht mit Knoten {string}") @When("TGR find next message with {string}") public void findNextMessageWithNode(String rbelPath) throws AssertionError find the next message containing given node and memorize it in therbelValidatorinstance. If the previous search using any of the 'find*message' steps found a response message, then this search starts after that response, otherwise, it starts after the current request message.- Parameters:
rbelPath- rbel path to node/attribute- Throws:
AssertionError
-
findLastMessageWithNodeMatching
@Wenn("TGR finde die letzte Nachricht mit Knoten {string} der mit {string} \u00fcbereinstimmt") @When("TGR find last message with {string} matching {string}") public void findLastMessageWithNodeMatching(String rbelPath, String value) throws AssertionError find the last message where node value equal or match as regex and memorize it in therbelValidatorinstance.- Parameters:
rbelPath- rbel path to node/attributevalue- value to match at given node/attribute- Throws:
AssertionError
-
findLastMessageWithNode
@Wenn("TGR finde die letzte Nachricht mit Knoten {string}") @When("TGR find last message with {string}") public void findLastMessageWithNode(String rbelPath) throws AssertionError find the last message containing given node and memorize it in the {@link * #rbelValidator} instance.- Parameters:
rbelPath- rbel path to node/attribute- Throws:
AssertionError
-
currentRequestBodyMatches
@Dann("TGR pr\u00fcfe aktueller Request stimmt im Body \u00fcberein mit:") @Then("TGR current request body matches:") public void currentRequestBodyMatches(String docString) assert that request body matches.- Parameters:
docString- value / regex that should equal or match
-
currentRequestMessageAttributeMatches
@Dann("TGR pr\u00fcfe aktueller Request stimmt im Knoten {tigerResolvedString} \u00fcberein mit {tigerResolvedString}") @Then("TGR current request with attribute {tigerResolvedString} matches {tigerResolvedString}") public void currentRequestMessageAttributeMatches(String rbelPath, String value) assert that request matches the value at given rbel path node/attribute. If multiple nodes are found, each is tested and if any matches, this step succeeds.- Parameters:
rbelPath- path to node/attributevalue- value / regex that should equal or match as string content with MultiLine and DotAll regex option
-
currentRequestMessageContainsNode
@Dann("TGR pr\u00fcfe aktueller Request enth\u00e4lt Knoten {tigerResolvedString}") @Then("TGR current request contains node {tigerResolvedString}") public void currentRequestMessageContainsNode(String rbelPath) assert that request contains at least 1 (or maybe more) node/attribute at given rbel path.- Parameters:
rbelPath- path to node/attribute
-
currentRequestMessageAtMatchesDocString
@Dann("TGR pr\u00fcfe aktueller Request im Knoten {tigerResolvedString} stimmt \u00fcberein mit:") @Then("TGR current request at {tigerResolvedString} matches:") public void currentRequestMessageAtMatchesDocString(String rbelPath, String docString) assert that request matches at given rbel path node/attribute. If multiple nodes are found, each is tested and if any matches, this step succeeds.- Parameters:
rbelPath- path to node/attributedocString- value / regex that should equal or match as string content with MultiLine and DotAll regex option supplied as DocString
-
currentRequestAtMatchesAsJsonOrXml
@Dann("TGR pr\u00fcfe aktueller Request im Knoten {tigerResolvedString} stimmt als {modeType} \u00fcberein mit:") @Then("TGR current request at {tigerResolvedString} matches as {modeType}:") public void currentRequestAtMatchesAsJsonOrXml(String rbelPath, ModeType mode, String oracleDocStr) assert that request matches at given rbel path node/attribute assuming it's JSON or XML. If multiple nodes are found, each is tested, and if any matches, this step succeeds.- Parameters:
rbelPath- path to node/attributemode- one of JSON|XMLoracleDocStr- value / regex that should equal or match as JSON or XML content- See Also:
-
currentRequestMessageAttributeDoesNotMatch
@Dann("TGR pr\u00fcfe aktueller Request stimmt im Knoten {tigerResolvedString} nicht \u00fcberein mit {tigerResolvedString}") @Then("TGR current request with attribute {tigerResolvedString} does not match {tigerResolvedString}") public void currentRequestMessageAttributeDoesNotMatch(String rbelPath, String value) assert that request does not match at given rbel path node/attribute. If multiple nodes are found, each is tested, and if any matches, this step fails.- Parameters:
rbelPath- path to node/attributevalue- value / regex that should NOT BE equal or should NOT match as string content with MultiLine and DotAll regex option
-
storeCurrentRequestNodeTextValueInVariable
@Dann("TGR speichere Wert des Knotens {tigerResolvedString} der aktuellen Anfrage in der Variable {tigerResolvedString}") @Then("TGR store current request node text value at {tigerResolvedString} in variable {tigerResolvedString}") public void storeCurrentRequestNodeTextValueInVariable(String rbelPath, String varName) store given rbel path node/attribute text value of current request.- Parameters:
rbelPath- path to node/attributevarName- name of variable to store the node text value in
-
storeCurrentResponseNodeTextValueInVariable
@Dann("TGR speichere Wert des Knotens {tigerResolvedString} der aktuellen Antwort in der Variable {tigerResolvedString}") @Then("TGR store current response node text value at {tigerResolvedString} in variable {tigerResolvedString}") public void storeCurrentResponseNodeTextValueInVariable(String rbelPath, String varName) store given rbel path node/attribute text value of current response.- Parameters:
rbelPath- path to node/attributevarName- name of variable to store the node text value in
-
replaceContentOfVariable
@Dann("TGR ersetze {tigerResolvedString} mit {tigerResolvedString} im Inhalt der Variable {tigerResolvedString}") @Then("TGR replace {tigerResolvedString} with {tigerResolvedString} in content of variable {tigerResolvedString}") public void replaceContentOfVariable(String regexPattern, String replace, String varName) replace stored content with given regex- Parameters:
regexPattern- regular expression to search forreplace- string to replace all matches withvarName- name of variable to store the node text value in
-
currentResponseBodyMatches
@Dann("TGR pr\u00fcfe aktuelle Antwort stimmt im Body \u00fcberein mit:") @Then("TGR current response body matches:") public void currentResponseBodyMatches(String docString) assert that response body of filtered request matches.- Parameters:
docString- value / regex that should equal or match
-
currentResponseMessageContainsNode
@Dann("TGR pr\u00fcfe aktuelle Antwort enth\u00e4lt Knoten {tigerResolvedString}") @Then("TGR current response contains node {tigerResolvedString}") public void currentResponseMessageContainsNode(String rbelPath) assert that response of filtered request contains at least one node/attribute at given rbel path.- Parameters:
rbelPath- path to node/attribute
-
currentResponseMessageAttributeMatches
@Dann("TGR pr\u00fcfe aktuelle Antwort stimmt im Knoten {tigerResolvedString} \u00fcberein mit {tigerResolvedString}") @Then("TGR current response with attribute {tigerResolvedString} matches {tigerResolvedString}") public void currentResponseMessageAttributeMatches(String rbelPath, String value) assert that response of filtered request matches at given rbel path node/attribute. If multiple nodes are found, each is tested and if any matches, this step succeeds.- Parameters:
rbelPath- path to node/attributevalue- value / regex that should equal or match as string content with MultiLine and DotAll regex option
-
currentResponseMessageAttributeDoesNotMatch
@Dann("TGR pr\u00fcfe aktuelle Antwort stimmt im Knoten {tigerResolvedString} nicht \u00fcberein mit {tigerResolvedString}") @Then("TGR current response with attribute {tigerResolvedString} does not match {tigerResolvedString}") public void currentResponseMessageAttributeDoesNotMatch(String rbelPath, String value) assert that response of filtered request does not match at given rbel path node/attribute. If multiple nodes are found, each is tested and if any matches, this step fails.- Parameters:
rbelPath- path to node/attributevalue- value / regex that should NOT BE equal or should NOT match as string content with MultiLine and DotAll regex option
-
currentResponseMessageAtMatchesDocString
@Dann("TGR pr\u00fcfe aktuelle Antwort im Knoten {tigerResolvedString} stimmt \u00fcberein mit:") @Then("TGR current response at {tigerResolvedString} matches:") public void currentResponseMessageAtMatchesDocString(String rbelPath, String docString) assert that response of filtered request matches at given rbel path node/attribute. If multiple nodes are found, each is tested and if any matches, this step succeeds.- Parameters:
rbelPath- path to node/attributedocString- value / regex that should equal or match as string content with MultiLine and DotAll regex option supplied as DocString
-
currentResponseMessageAtDoesNotMatchDocString
@Dann("TGR pr\u00fcfe aktuelle Antwort im Knoten {tigerResolvedString} stimmt nicht \u00fcberein mit:") @Then("TGR current response at {tigerResolvedString} does not match:") public void currentResponseMessageAtDoesNotMatchDocString(String rbelPath, String docString) assert that response of filtered request does not match at given rbel path node/attribute. If multiple nodes are found, each is tested and if any matches, this step fails.- Parameters:
rbelPath- path to node/attributedocString- value / regex that should equal or match as string content with MultiLine and DotAll regex option supplied as DocString
-
currentResponseAtMatchesAsJsonOrXml
@Dann("TGR pr\u00fcfe aktuelle Antwort im Knoten {tigerResolvedString} stimmt als {modeType} \u00fcberein mit:") @Then("TGR current response at {tigerResolvedString} matches as {modeType}:") public void currentResponseAtMatchesAsJsonOrXml(String rbelPath, ModeType mode, String oracleDocStr) assert that response of filtered request matches at given rbel path node/attribute assuming it's JSON or XML. If multiple nodes match, each is tested, and if any match this step succeeds.- Parameters:
rbelPath- path to node/attributemode- one of JSON|XMLoracleDocStr- value / regex that should equal or match as JSON or XML content- See Also:
-
currentResponseAtMatchesAsXMLAndDiffOptions
@Dann("TGR pr\u00fcfe aktuelle Antwort im Knoten {tigerResolvedString} stimmt als XML mit folgenden diff Optionen {tigerResolvedString} \u00fcberein mit:") @Then("TGR current response at {tigerResolvedString} matches as XML and diff options {tigerResolvedString}:") public void currentResponseAtMatchesAsXMLAndDiffOptions(String rbelPath, String diffOptionsCSV, String xmlDocStr) assert that response of filtered request matches at given rbel path node/attribute assuming its XML with the given list of diff options. If multiple nodes match, each is tested and if any match, this step succeeds- Parameters:
rbelPath- path to node/attributediffOptionsCSV- a csv separated list of diff option identifiers to be applied to comparison of the two XML sources- nocomment ...
DiffBuilder.ignoreComments() - txtignoreempty ...
DiffBuilder.ignoreElementContentWhitespace() - txttrim ...
DiffBuilder.ignoreWhitespace() - txtnormalize ...
DiffBuilder.normalizeWhitespace()
- nocomment ...
xmlDocStr- value / regex that should equal or match as JSON content- See Also:
-
printAllMessages
@Dann("TGR gebe alle Nachrichten als Rbel-Tree aus") @Then("TGR print all messages as rbel-tree") public void printAllMessages()Prints the rbel-tree of all requests and responses to the System-out -
printCurrentResponse
@Dann("TGR gebe aktuelle Response als Rbel-Tree aus") @Then("TGR print current response as rbel-tree") public void printCurrentResponse()Prints the rbel-tree of the current response to the System-out -
printCurrentRequest
@Dann("TGR gebe aktuelle Request als Rbel-Tree aus") @Then("TGR print current request as rbel-tree") public void printCurrentRequest()Prints the rbel-tree of the current request to the System-out -
readTgrFile
@Dann("TGR liest folgende .tgr Datei {tigerResolvedString}") @Then("TGR reads the following .tgr file {tigerResolvedString}") public void readTgrFile(String filePath) Reads a Tiger traffic file and sends messages to local Tiger proxy -
setCustomFailureMessage
@Given("TGR the custom failure message is set to {tigerResolvedString}") @Gegebensei("TGR die Fehlermeldung wird gesetzt auf: {tigerResolvedString}") public void setCustomFailureMessage(String customFailureMessage) Sets a custom failure message that will be displayed in the logs if a following step in the test fails.- Parameters:
customFailureMessage- the custom failure message
-
resetCustomFailureMessage
@Then("TGR clear the custom failure message") @Dann("TGR l\u00f6sche die benutzerdefinierte Fehlermeldung") public void resetCustomFailureMessage()Clears the custom failure message -
getRbelValidator
-