Error when running Features

I have problem when i run a FEATURE.

Background: The feature uses a Step definition that clicks a dynamic link on a dynamic table row at runtime and when I execute the feature I’m getting an error while executing a feature.

does anyone know why I get this error… since the link is dynamic I don’t have it on the object repository ?

Thanks in Advanced . see below

-MJ

03-20-2019 12:13:50 PM runFeatureFile(“Include/features/Login.feature”)

Elapsed time: 12.439s

Keyword runFeatureFile was failed (Root cause: com.kms.katalon.core.exception.StepFailedException: Feature file ‘Include/features/Login.feature’ was failed
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:21)
at com.kms.katalon.core.keyword.internal.KeywordMain$stepFailed$0.call(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:82)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:66)
at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:46)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:101)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)
at WSVerification1553098430417.run(WSVerification1553098430417:2)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.WSVerificationExecutor.runScript(WSVerificationExecutor.java:146)
at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:140)
at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:123)
at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:115)
at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:103)
at com.kms.katalon.core.main.TestCaseMain.runFeatureFile(TestCaseMain.java:144)
at com.kms.katalon.core.main.TestCaseMain$runFeatureFile$0.call(Unknown Source)
at TempTempCase1553098428898.run(TempTempCase1553098428898.groovy:21)

Background: The feature uses a Step definition that clicks a dynamic link on a dynamic table row at runtime and when I execute the feature I’m getting an error while executing a feature.

Are the locators still correct when the test executed?

locators for the table element still correct…table object ID is always the same then the code in the step definition loops thru all the dyamic rows (today there could be 10 rows, tomorrow there could be 100 rows) until it finds the correct row then another loop goes thru all the columns until it finds the column when the link is located and clicks on it…

hope that explains my situation. code works and runs but this error above causes the “test” to fail.

There are some issues I think you need to double check to figure out exactly why the test script failed. You mentioned about dynamic locators and “since the link is dynamic I don’t have it on the object repository ?”. You need to run the test without using BDD cucumber to get the root cause first.