For Cucumber steps, TestComplete doesn't generate step definition with Keyword And. It only generates steps with Given, When, & Then Keywords. This causes code duplicity.
Module 1:
Scenario: Check and Open app
Given I have app installed on my machine
And I install DB on SQL Server for "IM"
And I should open app with "IM" database as "default" user
Module2:
Scenario: Prerequisite for app
Given I have app installed on my machine
And I install DB on SQL Server for "CF"
Then I install Application Server on my machine "CF" with "WorkflowFeature"
And I should open app with "CF" database as "default" user
In the above 2 steps are the same
And I should open app with "IM" database as "default" user
And I should open app with "CF" database as "default" user
and should have only one step definition. But TestComplete generates 2 steps definitions, one with Given And other with Then.
Cucumber, in general, doesn't take keywords in consideration while doing the step matching but in TestComplete it does. This is causing the problem and creating a lot of duplicate code.
We are looking for solution where TestComplete uses Cucumbers basic feature and do not consider Keywords while doing step matching and generates step definitions with all the keywords.We are looking for solution where TestComplete uses Cucumbers basic feature and do not consider Keywords while doing step matching and generates step definitions with all the keywords.