Few Table in StepDefinition
AnsweredIn all examples I have seen that table are always defined at the end of StepDefinition. It is possible to use two table in StepDefinition like this? Or use table in the middle of the text?
* filter using criteria
| field | value |
| [01] | I |
and save values in notepad as
| field | value |
| [01] | I |
[StepDefinition("filter using criteria '(.*)' and save values in notepad as '(.*)'")]
public void FilterWebTransactionOutputAndSaveValues(Table criteria, Table notepadKey)
-
Official comment
Hello,
Short answer to your questions: it is not possible.
The main idea is that one step should represent one action. If a step's text indicates more action than that, it is a sign that the step should be splitted.
The example you provided has 2 actions (the usage of "and" is also a sign), so you should make 2 steps out of it.
Kind regards,
Balázs
Please sign in to leave a comment.
Comments
1 comment