Unable to run cucumber feature file scenarios as via cucumber testNG integration

402 views
Skip to first unread message

Rahul Rajasekharan

unread,
May 1, 2021, 4:45:34 AM5/1/21
to testng-users
Hi Krish,

 I am attempting  to run a basic cucumber feature file as a TestNG test via TestRunner class facilitating a cucumber-testng integration in Intellij.

Please note that I was able to successfully run the cucumber scenarios as cucumber java tests.

But when tried to run the same feature file scenarios via cucumber testNG integration via testrunner class extending AbstractTestNGCucumberTests,the following happens:

  1. No scenarios mentioned in feature file gets executed

  2. Browser does not get launched at all.

  3. Console window says Test passed



Please find attached the stack overflow link to the question  which has more details on the maven dependences used and its versions,the TestNG xml  , the way i tried to run the Testrunner class as run class configuration and also tried to run the testng.xml that points to testrunner class .


⇜Krishnan Mahadevan⇝

unread,
May 3, 2021, 4:39:10 AM5/3/21
to testng-users
Please edit your question on stackoverflow and add the link to a sample project (preferably uploaded into github) which can be cloned and executed to reproduce the problem.

Note: AbstractTestNGCucumberTests is not owned/maintained by TestNG team.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/a57dd7aa-2e36-49fe-934a-7d60d7f91e28n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages