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
*************************************************************************
This message and any attachments (the "message") are confidential, intended
solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to
alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be
liable for the message if altered, changed or
falsified.
************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et susceptibles de contenir des informations couvertes
par le secret professionnel.
Ce message est etabli a l'intention exclusive de ses destinataires. Toute
utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de
ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************