Hi Community,

Lets check simple scenario:

Scenario: Test Login
When the user enters <username> username in login form 
And the user enters <password> in login form
And the user presses login button in login form
Then find diff in reponse
Examaples:
|username|password|
|aaa|xxx|
|bbb|yyy|
|ccc|zzz|

*I want to find difference between reponses of this scenario and saved HTML 
pages(saved in previous tests, it doesn't matter). 
*I have limitation(lets say, by design) - I can change only last sentence: 
"Then find diff in response"(and its java handler). 
"Then find diff in response" - do the following:
   1. Find diff of HTML returned in reponse, and another HTML page saved on 
disk.
   2. If there is difference, I want to save, which input make this 
difference
*The step "Then find diff in response" can be used in absolutely different 
tests with various number of parameters. (E.g. Login page have 2 
parameters. Register page have 5 parameters, and I will search for diff in 
register procedure too, but I want one method to handle all cases)

Any ideas are welcome!

Thx in advance,
Maxim

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/21ce944f-19f0-4008-88df-540e6614dd97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to