Hello everyone. We are developing a web service that will be available through SOAP and REST (xml and JSon). Our specflow functions are basically the same: ie:
Scenario: There are at least 3 radio Channels Given The test server is up and running And The previously obtained channel list is reset When I request a list of radio channels Then the resulting deliveryPackage contains a list of at least 3 items
All of these features need to be tested for the SOAP interface, the REST / Xml interface, and the REST / JSon interface.
In a cucumber, you can run functions using -R to determine where the step files are, however in SpecFlow I have not yet found a way to create step files so that I have the same run of the function in different steps.
I would prefer not to write each script 3 times to change which implementation of the step to use.
So, two questions: 1) How can I run the function 3 times for 3 different interfaces that expect accurate scripts? 2) How can I select the correct steps file every time?
Solution (1) is likely to solve (2).
source share