Multiple Checks in one Scenario
As this is our first challenge, we are starting with an rather easy to fix feature file. Someone wrote a scenario to check, if depending on the chosen vehicle type the correct input fields are displayed.
This is SpecFlow's solution
The biggest issue with this feature file was the multiple When/Then combinations.
You can almost every time make multiple scenarios out of it.
The second issue is, that it was too much focused on the UI. You can formulate it in a way, that the scenario is independent of the UI and you can automate then on a level of your choosing.
More details here.
This weeks winners:
- Sarah W. (https://app.specflow.org/gherkin-editor/feature/SFSID4cmXOFQ0cEuTCrQBOxn1vy1gYd6x5h5OlF7zF9HDaUE)
We liked that she did all the good practices to improve the provided feature file. - Radu C. (https://app.specflow.org/gherkin-editor/feature/SFSID7iF7b3jWrE-XI0T6L1v3ScDYpM4Ne4VLnN18xEjAdHo)
He was the first submitter, that provided a version, where the common fields were first specified and later in a step only referenced, to increase the readability all along. - Mandy F. (https://app.specflow.org/gherkin-editor/feature/SFSIDEcF0Q3gaQkqyXJ6dOEoqURbjXVI_W_BHnV8yW4QV-BU)
Mandy used the same approach as Radu but executed it a little bit better.