Unable to run the feature files in CMD using runwithCucumberRunner


#1

Hi all, I need a help, unable to run Cucumber features from CMD by using “runwithCucumberRunner(Myrunner.class)”

It works when I run in the web browser, but when I try in CMD(command prompt) it says keyword runwithCucumberRunner was failed.

Can you help me in resolving this… It’s urgent. Please find the image attached.


#2

Could you please share your test case’s content?


#3

Contents in the testcase

Contents in the Runner Class


#4

I’m sorry this seems to be a bug. If possible please use an absolute path, e.g.

@CucumberOptions(features="C:/Users/alex/sample/Include/features", glue="", plugin=["pretty", "html:ReportFolder"])

I’ll move this to Bug Reports category for further investigation. @duyluong @Dung_Ngo


#5

Thanks for the timely help. It worked.
But when we push it to git and to work in jenkins i doubt we can keep changing the absolute path and work .


#6

We will have a fix soon. This is only a temporary workaround.


#7

Thanks… :slight_smile: :smiley:


#8

Dear @sabareesh,

Your reported issue has been logged to Github. Please check for its implementation status there: https://github.com/katalon-studio/katalon-studio/issues/97 .

Best regards,