Class TigerGlue

java.lang.Object
de.gematik.test.tiger.glue.TigerGlue

public class TigerGlue extends Object
  • Constructor Details

    • TigerGlue

      public TigerGlue()
  • Method Details

    • ctxtISetGlobalVariableTo

      @Wenn("TGR setze globale Variable {string} auf {string}") @When("TGR set global variable {string} to {string}") public void ctxtISetGlobalVariableTo(String key, String value)
      Sets the given key to the given value in the global configuration store. Variable substitution is performed.
      Parameters:
      key - key of the context
      value - value for the context entry with given key
    • ctxtISetLocalVariableTo

      @Wenn("TGR setze lokale Variable {string} auf {string}") @When("TGR set local variable {string} to {string}") public void ctxtISetLocalVariableTo(String key, String value)
      Sets the given key to the given value in the global configuration store. Variable substitution is performed. This value will only be accessible from this exact thread.
      Parameters:
      key - key of the context
      value - value for the context entry with given key
    • ctxtAssertVariableMatches

      @Dann("TGR pr\u00fcfe Variable {string} stimmt \u00fcberein mit {string}") @Then("TGR assert variable {string} matches {string}") public void ctxtAssertVariableMatches(String key, String regex)
      asserts that value with given key either equals or matches (regex) the given regex string. Variable substitution is performed. This checks both global and local variables!

      Parameters:
      key - key of entry to check
      regex - regular expression (or equals string) to compare the value of the entry to
    • ctxtAssertVariableUnknown

      @Dann("TGR pr\u00fcfe Variable {string} ist unbekannt") @Then("TGR assert variable {string} is unknown") public void ctxtAssertVariableUnknown(String key)
      asserts that value of context entry with given key either equals or matches (regex) the given regex string. Variable substitution is performed.

      Special values can be used:

      Parameters:
      key - key of entry to check
    • tgrShowColoredBanner

      @Gegebensei("TGR zeige {word} Banner {string}") @Given("TGR show {word} banner {string}") public void tgrShowColoredBanner(String color, String text)
    • tgrShowColoredText

      @Gegebensei("TGR zeige {word} Text {string}") @Given("TGR show {word} text {string}") public void tgrShowColoredText(String color, String text)
    • tgrIWantToShowBanner

      @Gegebensei("TGR zeige Banner {string}") @Given("TGR show banner {string}") public void tgrIWantToShowBanner(String text)
    • tgrWaitForUserAbort

      @When("TGR wait for user abort") @Wenn("TGR warte auf Abbruch") public void tgrWaitForUserAbort()
    • tgrPauseExecution

      @When("TGR pause test run execution") @Wenn("TGR pausiere Testausf\u00fchrung") public void tgrPauseExecution()
    • tgrPauseExecutionWithMessage

      @When("TGR pause test run execution with message {string}") @Wenn("TGR pausiere Testausf\u00fchrung mit Nachricht {string}") public void tgrPauseExecutionWithMessage(String message)
    • tgrPauseExecutionWithMessageAndErrorMessage

      @When("TGR pause test run execution with message {string} and message in case of error {string}") @Wenn("TGR pausiere Testausf\u00fchrung mit Nachricht {string} und Meldung im Fehlerfall {string}") public void tgrPauseExecutionWithMessageAndErrorMessage(String message, String errorMessage)
    • tgrShowHtmlNotification

      @When("TGR show HTML Notification:") @Wenn("TGR zeige HTML Notification:") public void tgrShowHtmlNotification(String message)
    • tgrAssertMatches

      @When("TGR assert {string} matches {string}") @Dann("TGR pr\u00fcfe das {string} mit {string} \u00fcberein stimmt") public void tgrAssertMatches(String rawValue1, String rawValue2)
    • printVariable

      @Dann("TGR gebe variable {string} aus") @Then("TGR print variable {string}") public void printVariable(String key)
      Prints the value of the given variable to the System-out