I am using Katlaon version 7.2.7(it has step definition fixes) and trying to map the variables in variable binding to the feature file. Any responses will be much appreciated. I have changed the feature file ‘Scenario Outline’ to only use ‘Scenario’, so that I can incorporate use of variables in variable binding.
I did refer - https://docs.katalon.com/katalon-studio/docs/run-test-case-external-data.html, but feature file documentation is not mentioned.
Thanks in advance
Please Help !!! Still waiting for answer or any leads.
1 Like
Please share the step definition file.
Here is my step defination for login feature and testcase and the variables in the test case that are binded to the test suite. Not completely sure of how to use variables that are binded in a test suite to use in the step definition file.
I am using “${username}” and “${password}” as my test case is calling the feature file and thought the feature file will use the binded variables, but instead it uses the variable name itself. So, my script is using “username” and “password” and trying to login. I want it to use the variable value that I have binded in the test case.
Hello,
I am very interesting in this topic. Actually I am facing the same problem, did you find a solution?
Thank you in advance for your answer.
Hello! Did you solve this already? May I know how you did it? Much appreciated.
Hello,
I am very interesting in this topic. Actually I am facing the same problem, did you find a solution?
Thank you in advance for your answer.
Just for your information.
Any Katalon project has a file named <projectDir>/.classpath
. In the .classpath
file, you can see the path of all jar files associated to the project. In a project with Katalon Studio 8.6.8 on my machine, I found the following code which includes “Cucumber” related jars:
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/com.kms.katalon.core.cucumber_1.0.0.202309060301.jar" sourcepath="/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/source/com.kms.katalon.core.cucumber/com.kms.katalon.core.cucumber-sources.jar">
<attributes>
<attribute name="javadoc_location" value="file:/Applications/Katalon%20Studio.app/Contents/Eclipse/configuration/resources/apidocs/com.kms.katalon.core.cucumber/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.core_3.0.2.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.datatable_1.0.3.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.datatable-dependencies_1.0.3.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.expressions_5.0.19.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.gherkin_5.0.0.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.html_0.2.7.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.java_3.0.2.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.tag-expressions_1.1.1.jar"/>
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/io.cucumber.junit_3.0.2.jar"/>
You can find that the version of Cucumeber-related jars are very old. For example, Katalon Studio bundles io.cucumber.core_3.0.2.jar
.
On the other hand, in the Maven Central repository you can check the full list of io.cucumber.core
artifacts. their v3.0.2 was released at May 28, 2018.
It is 22, Oct 2023 today. The io.cucumber.core_3.0.2.jar
is over 5 years old.
By looking at this, I guess that the Katalon team is no longer interested in Cucumber support in Katalon Studio. I am afraid that there are many problems about Cucumber in this Katalon user forum left unresolved. I guess the Katalon team would not be responsive enough about the Cucumber issues in future.
@duyluong
@vu.tran
@Elly_Tran
Any comment from Katalon?
Hi,
I will ask my team and back to this case if any updates. Thank you for letting us know