BH     TT     Cucumber Code    

        //     1.   Пример кода для всех 3 классов (name1.feature/name1SD/name1Page) на примере тестирования логина

// test/java/pages/LoginPage

@Step("the user clicks the button {0}")
public void theUserClicksTheButton(String buttonText) {
        commonPage.theUserClicksTheButton(buttonText);
}

// test/java/stepdefinitions/LoginSD

@And("the user clicks the button {string}")
public void theUserClicksTheButton(String buttonText) {
        commonS.theUserClicksTheButton(buttonText);
        logger.info("the user clicks the button " + buttonText);
}


// test/resources/features.search/Login.feature

@Lampada
Feature: Global Admin User Management

@Ampada
Scenario: Login Test
    Given Der Benutzer ruft die Ampada Anmeldeseite auf

        #Without username and password
        And the user clicks the button "Sign In"
        Then the user sees the error message "Invalid username or password."

        #With username without password
        And the user enters in the inputFiled "Username or email" "username" username
        And the user clicks the button "Sign In"
        Then the user sees the error message "Invalid username or password."

        #With password without username
        And user clears inputField "Username or email"
        And the user enters in the inputFiled "Password" "password" username
        And the user clicks the button "Sign In"
        Then the user sees the error message "Invalid username or password."

        #Incorect username and password
        And the user enters in the inputFiled "Username or email" "username" username
        And the user enters in the inputFiled "Password" "password" username
        And the user clicks the button "Sign In"
        Then the user sees the error message "Invalid username or password."

        #Correct username and password
        And the user enters in the inputFiled "Username or email" "AMS-admin" username
        And the user enters in the inputFiled "Password" "qweasd77" username
        And the user enters in the inputFiled "Attribute_Sign In" "username" username