Feature file running problem

2024-01-10 22:21:51.476 INFO  c.k.k.core.main.WSVerificationExecutor   - --------------------
2024-01-10 22:21:51.477 INFO  c.k.k.core.main.WSVerificationExecutor   - START Verification
Verification
null
2024-01-10 22:21:51.823 INFO  c.k.k.core.webui.driver.DriverFactory    - Starting 'Chrome' driver
Jan 10, 2024 10:21:51 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
2024-01-10 22:21:51.856 INFO  c.k.k.core.webui.driver.DriverFactory    - Action delay is set to 0 milliseconds
Starting ChromeDriver 120.0.6099.109 (3419140ab665596f21b385ce136419fde0924272-refs/branch-heads/6099@{#1483}) on port 25014
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Jan 10, 2024 10:21:53 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2024-01-10 22:21:53.251 INFO  c.k.k.core.webui.driver.DriverFactory    - sessionId = 4be69bee9767d5a54eb61ea35975df3a
2024-01-10 22:21:53.267 INFO  c.k.k.core.webui.driver.DriverFactory    - browser = Chrome 120.0.0.0
2024-01-10 22:21:53.267 INFO  c.k.k.core.webui.driver.DriverFactory    - platform = Windows 11
2024-01-10 22:21:53.268 INFO  c.k.k.core.webui.driver.DriverFactory    - seleniumVersion = 3.141.59
2024-01-10 22:21:53.268 INFO  c.k.k.core.webui.driver.DriverFactory    - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList="", isApplyToDesiredCapabilities=true }
[FINE] No subscribers registered for event class com.kms.katalon.core.event.TestingEvent
[FINE] No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent
2024-01-10 22:21:53.327 DEBUG testcase.                                - 1: runFeatureFile("Include/features/BaselineLogin.feature")
2024-01-10 22:21:53.396 INFO  c.k.k.c.c.k.CucumberBuiltinKeywords      - Starting run keyword runFeatureFile: 'Include/features/BaselineLogin.feature' and extract report to folder: 'C:\Users\Asus\AppData\Local\Temp\Katalon\Include\features\BaselineLogin.feature\20240110_222148/cucumber_report/1704905513381'...
2024-01-10 22:21:53.674 INFO  c.runtime.formatter.CucumberReporter     - --------------------
2024-01-10 22:21:53.674 INFO  c.runtime.formatter.CucumberReporter     - START SCENARIO Baseline Login and Verification
2024-01-10 22:21:53.676 DEBUG c.runtime.formatter.CucumberReporter     - STEP Launch the Baseline url
2024-01-10 22:21:53.678 WARN  c.runtime.formatter.CucumberReporter     - SKIP Launch the Baseline url
2024-01-10 22:21:53.679 DEBUG c.runtime.formatter.CucumberReporter     - STEP Select User Type
2024-01-10 22:21:53.681 WARN  c.runtime.formatter.CucumberReporter     - SKIP Select User Type
2024-01-10 22:21:53.681 DEBUG c.runtime.formatter.CucumberReporter     - STEP Select State Value
2024-01-10 22:21:53.682 WARN  c.runtime.formatter.CucumberReporter     - SKIP Select State Value
2024-01-10 22:21:53.682 DEBUG c.runtime.formatter.CucumberReporter     - STEP Select District Value
2024-01-10 22:21:53.683 WARN  c.runtime.formatter.CucumberReporter     - SKIP Select District Value
2024-01-10 22:21:53.684 DEBUG c.runtime.formatter.CucumberReporter     - STEP Select Hospital Type
2024-01-10 22:21:53.684 WARN  c.runtime.formatter.CucumberReporter     - SKIP Select Hospital Type
2024-01-10 22:21:53.685 DEBUG c.runtime.formatter.CucumberReporter     - STEP Select Hospital Name
2024-01-10 22:21:53.686 WARN  c.runtime.formatter.CucumberReporter     - SKIP Select Hospital Name
2024-01-10 22:21:53.686 DEBUG c.runtime.formatter.CucumberReporter     - STEP Login The User
2024-01-10 22:21:53.687 WARN  c.runtime.formatter.CucumberReporter     - SKIP Login The User
2024-01-10 22:21:53.687 DEBUG c.runtime.formatter.CucumberReporter     - STEP Valitate The User Id
2024-01-10 22:21:53.688 WARN  c.runtime.formatter.CucumberReporter     - SKIP Valitate The User Id
2024-01-10 22:21:53.692 WARN  c.runtime.formatter.CucumberReporter     - SKIP SCENARIO Baseline Login and Verification
2024-01-10 22:21:53.692 INFO  c.runtime.formatter.CucumberReporter     - END SCENARIO Baseline Login and Verification

e[33mUndefined scenarios:e[0m
e[33mC:/Users/Asus/Katalon Studio/Baseline/Include/features/BaselineLogin.feature:4 e[0m# Baseline Login and Verification

1 Scenarios (e[33m1 undefinede[0m)
8 Steps (e[33m8 undefinede[0m)
0m0.043s


You can implement missing steps with the snippets below:

@Given("Launch the Baseline url")
public void launch_the_Baseline_url() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("Select User Type")
public void select_User_Type() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("Select State Value")
public void select_State_Value() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("Select District Value")
public void select_District_Value() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("Select Hospital Type")
public void select_Hospital_Type() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("Select Hospital Name")
public void select_Hospital_Name() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("Login The User")
public void login_The_User() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Then("Valitate The User Id")
public void valitate_The_User_Id() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

2024-01-10 22:21:53.793 ERROR c.k.k.core.keyword.internal.KeywordMain  - ❌ Feature file 'Include/features/BaselineLogin.feature' was failed
2024-01-10 22:21:53.799 ERROR c.k.k.core.keyword.internal.KeywordMain  - ❌ Keyword runFeatureFile was failed (Root cause: com.kms.katalon.core.exception.StepFailedException: Feature file 'Include/features/BaselineLogin.feature' was failed
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:51)
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy)
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:23)
	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:116)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:75)
	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:69)
	at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:77)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.callStatic(Unknown Source)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:256)
	at WSVerification1704905513298.run(WSVerification1704905513298: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:180)
	at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:174)
	at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:157)
	at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:149)
	at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:131)
	at com.kms.katalon.core.main.TestCaseMain.runFeatureFile(TestCaseMain.java:167)
	at TempTempCase1704905508424.run(TempTempCase1704905508424.groovy:25)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
)
2024-01-10 22:21:53.801 ERROR c.k.k.core.main.WSVerificationExecutor   - ❌ Verification FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Feature file 'Include/features/BaselineLogin.feature' was failed
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:51)
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy)
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:23)
	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:116)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:75)
	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:69)
	at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:77)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.callStatic(Unknown Source)
	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:256)
	at WSVerification1704905513298.run(WSVerification1704905513298: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:180)
	at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:174)
	at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:157)
	at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:149)
	at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:131)
	at com.kms.katalon.core.main.TestCaseMain.runFeatureFile(TestCaseMain.java:167)
	at TempTempCase1704905508424.run(TempTempCase1704905508424.groovy:25)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Verification
FAILED
2024-01-10 22:21:53.949 INFO  c.k.k.core.main.WSVerificationExecutor   - END Verification

i try many time but this error was displaying what can i do and i don’t know there what is my mistake plz any one help me

1 Like

Hi there @gopikrishasr,

Welcome to our Community! :wave:

Could you provide us with more information such as what you were testing / trying to do, some information about your Katalon Studio version, your OS, a screenshots, etc.

Please refer to the topic below for when you create a topic in the future so that our team and other members can support you better: :point_down:


And if you have a long error log or a code block, please use the markdown symbol “```” at the top and bottom of the text portion that you would like to turn into a code block like the example below

This is a code block

Thanks,
Albert

Thanks team for spent your time with me for solving my problem now its cleared

i simply create a test listeners file and add glue for @befortestcase section
@BeforeTestCase
def beforeTestCase(TestCaseContext testCaseContext) {
CucumberKW.GLUE = [‘packag’]
WebUI.openBrowser(‘’);

the GLUE = [‘mention where the step defenition file was created the folder name placed’]

and then i run the test case it will run and no error will shown