cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate step definition (BDD)

SOLVED
Highlighted
New Contributor

Duplicate step definition (BDD)

Hi everyone!!!

I want to repeat steps in several BDD feature , but i take  error log message: "Duplicate step definition"((

I know that cucumber progibits such use of the mechanism, but maybe in the TC can circumvent this problem?


BDD_Duplicate.png

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: Duplicate step definition (BDD)

Hi @kamserg1608,

 

Could you please contact our Support Team to clarify this behavior?

If Cucumber prohibits it, I'm not sure if TestComplete should do this. You can reach out to them here:

https://support.smartbear.com/message/?prod=TestComplete

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

4 REPLIES 4
Highlighted
Community Manager

Re: Duplicate step definition (BDD)

Hi @kamserg1608,

 

Could you please contact our Support Team to clarify this behavior?

If Cucumber prohibits it, I'm not sure if TestComplete should do this. You can reach out to them here:

https://support.smartbear.com/message/?prod=TestComplete

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

Highlighted
Community Hero

Re: Duplicate step definition (BDD)

@TanyaGorbunova :

Tanya, I believe that you meant this link: https://support.smartbear.com/message/?prod=TestComplete , didn't you?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Community Manager

Re: Duplicate step definition (BDD)

Good catch, Alex. I've updated my reply.

Sorry for this.

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

Re: Duplicate step definition (BDD)

Hi,

 

Any solution yet? I experienced the same error with my project. When running scenario using script. When a test failed the other one doesn't run and post "Duplicate step definition error". 

 

FirstTest.pngSecondTest.png

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!