Class TigerGlue


  • public class TigerGlue
    extends Object
    • Constructor Detail

      • TigerGlue

        public TigerGlue()
    • Method Detail

      • ctxtISetGlobalVariableTo

        @Wenn("TGR setze globale Variable {string} auf {string} setzen")
        @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} setzen")
        @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()