Hi.
I am new in BDD Framework. I just learned 2 months ago. I made a simple project in Katalon V. 8.x and its working until now.
I upgraded my Katalon to V. 9.x.
I read a lot of posts about error in Katalon BDD in v. 9.x. and i am doing your responses as well, but it seems like i miss something that i still cant run the BDD.
When its running, console shows :
Undefined scenarios:e[0m
e[33mC:/Users/Katalon Studio/test/Include/features/New Feature File.feature:28 e[0m# Successful login with combined datas
e[33mC:/Users/Katalon Studio/test/Include/features/New Feature File.feature:29 e[0m# Successful login with combined datas
2 Scenarios (e[33m2 undefinede[0m)
6 Steps (e[33m6 undefinede[0m)
0m0.196s
You can implement missing steps with the snippets below:
@Given("User is open the dev website and checks")
public void user_is_open_the_dev_website_and_checks() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("User enters name{int} username and {int} password with Oracle setting")
public void user_enters_name_username_and_password_with_Oracle_setting(Integer int1, Integer int2) {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("User should be redirected to the homepage or error")
public void user_should_be_redirected_to_the_homepage_or_error() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
I run it in Test Case with this code :
CucumberKW.runFeatureFile(‘Include/features/New Feature File.feature’)
My test listener :
@BeforeTestCase
def beforeTestCase(TestCaseContext testCaseContext) {
CucumberGlueGenerator.addDefaultPackages();
CucumberKW.GLUE = ['Include/scripts/groovy/aaa.groovy']
}
This is the directories of all files :
Am i missing something ? Thank you.