The AdminSteps is defined on ActorSteps and called it from MyStepdefs with annotations: @Steps.
public class MyStepdefs {
@Steps
AdminSteps adminSteps;
@Then("^Verify Home page display$")
public void Verify_Home_page_display() throws Throwable {
adminSteps.should_see_the_homePage();
}
@Given("^I go to Login Page$")
public void I_go_to_Login_Page() throws Throwable {
// Express the Regexp above with the code you wish you had
adminSteps.open_LoginPage();
}
@When("^Login as (.*) and (.*)$")
public void Login_as_vanthao_gmail_com_and_password(String userName,String password) throws Throwable {
// Express the Regexp above with the code you wish you had
adminSteps.loginPage(userName, password);
}
}
It's always throws the AdminSteps is Null. How can I do to fix this issue?
Thanks,
Phuoc
On 17 March 2016 at 7:48:26 AM, Phuoc Nguyen (nguyen...@gmail.com) wrote:
MyStepdefs