A
A
Alexander Vasilenko2017-02-16 17:50:26
Java
Alexander Vasilenko, 2017-02-16 17:50:26

How can I have two similar Cucumber descriptions associated with the same method?

Hello! Such a situation, we write feature-files in Russian (it's not my fault)
But to the point. I have two almost identical descriptions:

When the User clicked the "???" button
When I pressed the button "???"
When Pressing the "???" button

Actually, two different methods will be formed, but in fact the point is only in the difference contained in "some text" before the "button "???""
Actually, the goal is for these three different phrases to lead to one method, but how? Does anyone have experience?
There are thoughts somehow with RegExp to be smarter, but I was smarter and nothing happened. In general, what do you recommend?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question