API Automation Issues
Fix duplicate step definition errors in centralized API projects.
Resolving Duplicate Step Definition Error
Issue: In a centralized API project, when multiple test cases are generated, the Scenario (Given-When-Then) Steps in the Feature Files may generate identical steps. This leads to a duplicate step definition error during script generation, as shown in the following screenshot:

Resolution: To resolve this issue, the API request name is now included in the Scenario Steps. This ensures that each step is uniquely identified by its associated API request name, preventing the occurrence of identical steps.
Was this page helpful?