Resolving Duplicate Step Definition Error
Issue: In the API centralized project, when multiple test cases are generated, the GWT (Given-When-Then) step in the Feature Files is generating identical steps. This leads to duplicate step definition error during script generation, as shown in the following screenshot:
Resolution:
To resolve this issue, the Request Name, which signifies the name assigned to a specific API request, is included in the GWT steps. This addition ensures that each step is identified by its associated API request name. As a result, the occurrence of identical steps is prevented.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article