Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to comment a story line in JBehave Story

Tags:

jbehave

I have a story line as follows

Scenario:   Given user is on Login page  When user types login details with xxx as user xxx as passwd and submits  Then dashboard is shown 

please advise, how to comment or not to make run for a line(example: 2 line should not undergo for test after 1 directly 3 line)

like image 292
Vijay Avatar asked Jan 04 '13 08:01

Vijay


1 Answers

You want to temporarily disable a step in your scenario? Comment the line using the prefix "!-- ", such as

Given user is on Login page !-- When user types login details with xxx as user xxx as passwd and submits Then dashboard is shown 

The space right after the !-- is mandatory. Thanks @flaz14

See documentation on JBehave: http://jbehave.org/reference/stable/grammar.html

like image 89
dertseha Avatar answered Oct 11 '22 12:10

dertseha