(Me too.)

Does it help if you remove the quoted " characters from your @When annotation? So it becomes, in other words,

  @When("user logs in as $login with password $pwd")

Jon

Hi all,

I'm pretty new to jBehave. I'm trying to test a web application, using jBehave + Selenium API + Maven but let's forget the maven part for the moment, I run the tests in Eclipse.

My problem is that when tests run, I got this as result for the story :

*Scenario: User logs in MyApp and logs out *

Given user is on MyApp Login page

When user logs in as toto.titi with password totopwd=77.7 (PENDING)

Then MYAPP Homepage page is shown (PENDING)

When user logs out (NOT PERFORMED)

Then MYAPP Login page is shown (NOT PERFORMED)

@When("user logs in as toto.titi with password totopwd=77.7")

@Pending

public void whenUserLogsInAstototitiWithPasswordtotopwd=777(){

  // PENDING

}

@Then("MYAPP Homepage page is shown")

@Pending

public void thenMYAPPHomepagePageIsShown(){

  // PENDING

}

But the step has been implemented in my MyAppWebSteps.java :

@When("user logs in as \"$login\" with password \"$pwd\"")

*public**void*userLogsIn(String login, String pwd){

pages.myAPPLoginPage().logsIn(login, pwd);

}

Does anyone have any idea ?

Thanks in advance,

Regards,

Maxime

Reply via email to