My dear friend, or I should say my teacher. This is a very simple tutorial and from the beginning to the end I understood everything. I used your JMeter tutorial and I did some KPI's and did some load tests. It made a huge impact for my carrier and I am trying to automate our applications and thank you very much for sharing your knowledge and help people like us to conquer the world. Wishing you all the best and Thank you very much.
Thanks sir for the tutorial. I heard of BDD and GHERKINS language before, but practiced for the first time with the help of this tutorial. Details are well explained
Thanks for the tutorial I am new to gherkin language, I noticed in gherkin language we can pass test data in different ways 1. Given I am learning "gherkin" ---- Here test data is hard coded 2. Given I am learning "language" -----Here test data is passed as a parameter Example: |language| |gherkin| 3. Given I am learning language ----- Step definition file has utilities to read excel file where language variable is stored as "gherkin" It will a great help, if you guide me in knowing which way is better to pass data or pros and cons of each way with respect to form size (bigger/smaller), data visibility on feature file, data driven testing etc.
Hi Ranjith, check if this helps - www.anycodings.com/1questions/4684452/cucumber-scenario-giving-an-empty-string-as-value-of-parameter-in-a-scenario-step groups.google.com/g/specflow/c/b-Vrah1GK0g
Thanks Raghav for such a clear presentation & it helped a lot. Also could you please help with the steps of implementing data files in BDD,if it is possible?
Hi, From ver 7 many features have gone commercial, I will request you to check if the feature is available for free. This video will help - ruclips.net/video/6OzLz0x4E8s/видео.html
Hi Raghav, thank you for your vids. I have a question. What if we want to make precondition for another feature? Example, I have done creating Login feature. But I want to edit my profile, which is require to login first. Is that any ways to make login be a precondition? So I don't need to make login step again bcs I already make login feature. Thank you!
Yes, you can just add a statement in feature file and in its step definition call the required test case. YOu can get the code when you add a test case in keyword Call Test and goto the script mode. Check this - ruclips.net/video/FU7XmeFH1u4/видео.html
Hello Raghav, Thank you very much for all your videos. Is it possible to use other Regex? Instead of (.*) If yes , are they any pre setup or pre definition to put in place?
Hi raghav, excellent video, I am implementing Katalon with cucumber and it helped me a lot. but I have a problem. Duplicate step definitions, how can I correct this? thanks.
Hi Victor, I believe some of your step definition code matches more than one statements of the feature file. Check this - stackoverflow.com/questions/44111353/duplicate-step-definition-in-cucumber
Hi, may i check how we do assertions, i was able to do a normal assertequals using testng in normal test cases, however, when comes to BDD test definition grovvy script, i am getting this error. Keyword runFeatureFile was failed (Root cause: java.lang.NoClassDefFoundError: org/junit/runner/Result at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:78) at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
Thanks for the video! Really clear & helpful. Can we create a Cucumber without do any web recording? Sure we need that in order to do first-test development (creating the runnable testing script before doing any development---including creating the static html first )
Hi Raghav, How you set run configuration , to run feature file is there any classpath we have to set ? please let me know ,i am unable to run feature file .
hello Raghav, excellent video, thanks for sharing the knowledge. could you please give me a hint how i can implement an excel data instead of having all the data in the "Example:"
Hi Raghav, I tried executing the feature file but getting an error as below 020-04-08 12:57:36.278 ERROR c.k.k.core.main.WSVerificationExecutor - ❌ Verification FAILED. Reason: 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:50) at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy) Please help me out in this.
Hi Zaid, just check if you have added some scripts/verification in the step definition that has failed. You can try to debug like this - ruclips.net/video/ew7NSJeK53w/видео.html
hello, how are the features related to their steps ?, if you have more than one feature and many scripts as they relate to each other. since I have this error: cucumber.runtime.AmbiguousStepDefinitionsException: "The user navigates to the application page through the URL" matches more than one step definition: "The user navigates to the application page through the (. *)" In loginsteeps.navegar_URL (String) "The user navigates to the application page through the URL" in excelSteps.navegar_URL ()
You can, you will have to parameterize the values in the test case and in a test suite do mapping. You can take example from this - ruclips.net/video/tu5Zc89w6oQ/видео.html
@@RaghavPal sorry for the late reply. Many thanks for your reply I just want to use the examples data on include to be global variables. Is it possible? Scenario Outline: Title of your scenario outline Given I want to write a step with When I check for the in step Then I verify the in step Examples: | name | value | status | | name1 | 5 | success | - this value to be global variables on the project | name2 | 7 | Fail | - this value to be global variables on the project
Hi, In robot framework you can add libraries and then write your scripts. In Katalon you will have a lot of things in-built. RF is Free, KS is commercial
Hello, when i execute a test suit, it doesn't upload to TestOps. The testcases were built by "run with tags" But the manual tests are uploading normally. Do you know what the problem might be? Thank you.. amazing Tutorial! It's helping me a lot!
Hey Raghav, just a update, currently the bdd feature file is validating the "Example" statement, I got this issue. so, if you want create a bdd with no parameters you must create like this (empty examples): Feature: Title of your feature Scenario Outline: Title of your scenario outline Given I want to write a step When I check for the step Then I verify the in step Examples: | | | |
Hi raghav, can we implement the same using java language instead of groovy.If so can u please upload the video using java language,it will help me a lot.Thanks in advance!!
Thanks for the tutorial, I think it will help me get started on using BDD and Katalon. One question "Why does the password '456' not get added into the password field when you execute the script?"
Hi Raghav how can I create test in katalon with dynamic fields eg: when you create enquiry which generates new enquiry Id , so how can I point my test case to the newly generated Id . Thanks
hi Raghav why in my catalon, I cant see selection generic when i creat project? WEB,API/Service and Mobile. Im sorry my english its not good. Nice to meet you and thank you hehe
@@RaghavPal katalon hehe Raghav,do you know script negatif testting ? Where I use script like that ? Test suite ? Please Made video like that :) I hope example username, password and login in form login hehehe
Hello sir, I don't get the result like you here is my console ,I don't get cucumber Reports I am inside navigateToLoginPage I am inside enterCredentials I am inside clickLogin I am inside Homepage
@@RaghavPal Thank you for replying, I followed every step in the video, only one that I don't have available since I am using the free version, I can't choose generic project, I don't know if that is what made the difference.
@@RaghavPal I want to compare the data in a test case with same script. The data stored in excel file. If I run 3 times with different data, I want to verify whether the data that I test ia same with the existing data. If I change the data from excel file, it will show data not matched message in the report. I have no idea what command should I need to add
Hi Raghav, thank you so much for this tutorial and the runner tuturial really helped out. If you could please help me with this issue - I have made two step definitions and two feature files, i am trying to reuse the method from A to B step files - but i keep getting errors .. i tried calling the instance and then added the method from the previous stepfile still no luck ---> class AMPVerifyAllUIElementsStep { def AMPChapterOverviewStep = new AMPChapterOverviewStep (); @Given("Test user navigates to software solutions page and enters (.*) and password to login to portal page") AMPChapterOverviewStep.LoginPage_TestUserLogin() I also tried --> LoginPage_TestUserLogin() please help thanks :)
Hi Raghav...Thanks for the wonderful tutorial...Just one query.... When I am using the Run Feature Folder command it is not giving the feature file code as the output along with the groovy code(below)...Why is it so? Also it is not readable....Please let me know how to include the pretty parameter at folder level to generate readable output and is it expected that the Given When Then statements will be printed when we run the feature folder.... Scenario Outline: Title of your scenario outline [90m# /Users/ishandhaliwal/Katalon Studio/BDDCucumberDemo/Include/features/Login.feature:3[0m [36mGiven User navigates to login page[0m [36mWhen User enters and [0m [36mAnd Click on login button[0m [36mThen User is navgated to homepage[0m Examples: Scenario Outline: Title of your scenario outline [90m# /Users/ishandhaliwal/Katalon Studio/BDDCucumberDemo/Include/features/Login.feature:12[0m ......I am in TC1....... [32mGiven [0m[32mUser navigates to login page[0m [90m# LoginSteps.user_navigates_to_login_page()[0m ......I am in TC2....... Username is: ABC Password is: 123 [32mWhen [0m[32mUser enters [0m[32m[1mABC[0m[32m and [0m[32m[1m123[0m [90m# LoginSteps.user_enters_username_and_password(String,String)[0m .....I am in TC3......... [32mAnd [0m[32mClick on login button[0m [90m# LoginSteps.click_on_login_button()[0m .....I am in TC4......... [32mThen [0m[32mUser is navgated to homepage[0m [90m# LoginSteps.user_is_navgated_to_homepage()[0m 1 Scenarios ([32m1 passed[0m) 4 Steps ([32m4 passed[0m) 0m0.015s
@@RaghavPal Hi Raghav... I did exactly like the steps and also matched it with Katalon documentation... I am getting this result when I run Feature folder only... And not when I run Feature File..
My dear friend, or I should say my teacher. This is a very simple tutorial and from the beginning to the end I understood everything. I used your JMeter tutorial and I did some KPI's and did some load tests. It made a huge impact for my carrier and I am trying to automate our applications and thank you very much for sharing your knowledge and help people like us to conquer the world. Wishing you all the best and Thank you very much.
So happy to read this, You're very welcome Shehan
Excellent presentation of BDD test with Katalon, Thank you so much! Keep up the good work.
Thanks for watching Ashraf
Thanks sir for the tutorial. I heard of BDD and GHERKINS language before, but practiced for the first time with the help of this tutorial. Details are well explained
Glad it helped Sumit
Thanks for the tutorial
I am new to gherkin language, I noticed in gherkin language we can pass test data in different ways
1. Given I am learning "gherkin" ---- Here test data is hard coded
2. Given I am learning "language" -----Here test data is passed as a parameter
Example:
|language|
|gherkin|
3. Given I am learning language ----- Step definition file has utilities to read excel file where language variable is stored as "gherkin"
It will a great help, if you guide me in knowing which way is better to pass data or pros and cons of each way with respect to form size (bigger/smaller), data visibility on feature file, data driven testing etc.
Hi Tina, I will need to read more on this and will plan a session
This video is very helpful.
One question I have is,
How can we pass empty strings to the step definitions?
Hi Ranjith, check if this helps -
www.anycodings.com/1questions/4684452/cucumber-scenario-giving-an-empty-string-as-value-of-parameter-in-a-scenario-step
groups.google.com/g/specflow/c/b-Vrah1GK0g
Excellent presentation of BDD test with Katalon, Thanks!!!
Glad you liked it Carlos
Easy to understand and really powerfull tool and as usual very good session Raghav! Thanks a lot
Most welcome Srikanth
Thanks Raghav, could you please do a video on jbehave + assertj as well ?
I will do in some time Sanish
Automation Step by Step - Raghav Pal thanks 😊
Thanks Raghav for such a clear presentation & it helped a lot. Also could you please help with the steps of implementing data files in BDD,if it is possible?
Hi Pradipa, I will check, Although you can also take reference from cucumber videos here - automationstepbystep.com/
Hi Raghav ,I am using Katalon STudio 7.2 and I dont see the Warning about no glue code when I author feature file and save it .
Hi, From ver 7 many features have gone commercial, I will request you to check if the feature is available for free. This video will help - ruclips.net/video/6OzLz0x4E8s/видео.html
Hi Raghav, thank you for your vids. I have a question. What if we want to make precondition for another feature? Example, I have done creating Login feature. But I want to edit my profile, which is require to login first. Is that any ways to make login be a precondition? So I don't need to make login step again bcs I already make login feature. Thank you!
Yes, you can just add a statement in feature file and in its step definition call the required test case. YOu can get the code when you add a test case in keyword Call Test and goto the script mode. Check this - ruclips.net/video/FU7XmeFH1u4/видео.html
Hi Do you have a video with katalon and object
spy ? This was a great video as well.
Yes, can check Katalon Studio playlists here - automationstepbystep.com/
Great work, Thanks alot.
You're welcome Sunaina
For training purpose we have taken zomato and run test in that case we dont have module link... So which test can use so for
Hi Jamseena, you can try
Hello Raghav,
Thank you very much for all your videos.
Is it possible to use other Regex? Instead of (.*)
If yes , are they any pre setup or pre definition to put in place?
Yes, you can try Hajer
Hi raghav, excellent video, I am implementing Katalon with cucumber and it helped me a lot. but I have a problem. Duplicate step definitions, how can I correct this? thanks.
Hi Victor, I believe some of your step definition code matches more than one statements of the feature file. Check this - stackoverflow.com/questions/44111353/duplicate-step-definition-in-cucumber
Hi, may i check how we do assertions, i was able to do a normal assertequals using testng in normal test cases, however, when comes to BDD test definition grovvy script, i am getting this error. Keyword runFeatureFile was failed (Root cause: java.lang.NoClassDefFoundError: org/junit/runner/Result
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:78)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
Hi Tan, you will need to add required libraries
Thanks for the video! Really clear & helpful.
Can we create a Cucumber without do any web recording?
Sure we need that in order to do first-test development (creating the runnable testing script before doing any development---including creating the static html first )
Yes you can, On cucumber runner, you can check the next video of this playlist
Hi Raghav,
How you set run configuration , to run feature file is there any classpath we have to set ?
please let me know ,i am unable to run feature file .
Will post a video tomorrow on this Jayesh
Thanks for the tutorial, it was really helpful!
Most welcome Ana
hello Raghav, excellent video, thanks for sharing the knowledge. could you please give me a hint how i can implement an excel data instead of having all the data in the "Example:"
Hi Victor, I will try to add a session, You can try online help till then
@@RaghavPal thanks.
I'll be waiting.
Thanks for the vid. I have a question. How can we pull the variable parameters in the BDD feature file from the Excel sheet? TIA
Hi Chetan, you can run this in a test suite and rest of the process will be same as shown here - ruclips.net/video/tu5Zc89w6oQ/видео.html
Hi Raghav,
I tried executing the feature file but getting an error as below
020-04-08 12:57:36.278 ERROR c.k.k.core.main.WSVerificationExecutor - ❌ Verification FAILED.
Reason:
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:50)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy)
Please help me out in this.
Hi Zaid, just check if you have added some scripts/verification in the step definition that has failed. You can try to debug like this - ruclips.net/video/ew7NSJeK53w/видео.html
hello, how are the features related to their steps ?, if you have more than one feature and many scripts as they relate to each other. since I have this error:
cucumber.runtime.AmbiguousStepDefinitionsException: "The user navigates to the application page through the URL" matches more than one step definition:
"The user navigates to the application page through the (. *)" In loginsteeps.navegar_URL (String)
"The user navigates to the application page through the URL" in excelSteps.navegar_URL ()
Here you will need to add unique steps and step definition, you can also see how to use cucumber runner ruclips.net/video/7l_k2SJeBs4/видео.html
Nice content sir!!
I have a questions, how to get data example from table csv/excel?
Thank you before
Ex:
When user input
Example:|username|
|admin123|
Can i get data from excel like:
@Source:resources/namefile.xlsx
Example :
|username|
You can, you will have to parameterize the values in the test case and in a test suite do mapping. You can take example from this - ruclips.net/video/tu5Zc89w6oQ/видео.html
Its possible to use profile global variables for the test data using BDD? i mean replace the examples to global variables ?
Hi Ian, I am not too sure on this, How exactly you are using BDD with Postman
@@RaghavPal sorry for the late reply. Many thanks for your reply I just want to use the examples data on include to be global variables.
Is it possible?
Scenario Outline: Title of your scenario outline
Given I want to write a step with
When I check for the in step
Then I verify the in step
Examples:
| name | value | status |
| name1 | 5 | success | - this value to be global variables on the project
| name2 | 7 | Fail | - this value to be global variables on the project
Yes you can do that you will need to do it in scripts
Could you give some comparation between Robot framework and Katalon. Which one do you prefer?
Hi, In robot framework you can add libraries and then write your scripts. In Katalon you will have a lot of things in-built.
RF is Free, KS is commercial
@@RaghavPal So which one do you prefer? As I know that, many features were moved from Katalon free version to Katalon to paid version.
If you are looking for a complete free option and are ready to do setup yourself go with RF. Else Katalon is good
Hello, when i execute a test suit, it doesn't upload to TestOps.
The testcases were built by "run with tags"
But the manual tests are uploading normally.
Do you know what the problem might be? Thank you.. amazing Tutorial! It's helping me a lot!
Hi Rodrigo, i will do a hands-on and check, meanwhile also get in touch with katalon support
Hey Raghav, just a update,
currently the bdd feature file is validating the "Example" statement, I got this issue.
so, if you want create a bdd with no parameters you must create like this (empty examples):
Feature: Title of your feature
Scenario Outline: Title of your scenario outline
Given I want to write a step
When I check for the step
Then I verify the in step
Examples:
| |
| |
pin this comment if you don't mind =)
Thanks Bruno, will add in Description
how to use custom keyword in step definition ?
import Customkeyword but not works
Hi Rahman, pls check this forum.katalon.com/t/bdd-testing-step-definition-files-is-not-able-to-recognize-the-custom-keywords-from-plugin/40449
thanks for your video, it was helpful
You're welcome Andrew
Hi raghav, can we implement the same using java language instead of groovy.If so can u please upload the video using java language,it will help me a lot.Thanks in advance!!
Hi Swapna, Although there is option to create a Java class in Scripts folder, I believe for Step Definition the option is Groovy
Thanks for the tutorial, I think it will help me get started on using BDD and Katalon.
One question "Why does the password '456' not get added into the password field when you execute the script?"
Pls tell me the time in the video
@@RaghavPal 25:20- it enter 456 on the automation test but returns validation field can't be empty.
Okay that is application behaviour, when you enter wrong credentials, it shows message and clears the password field
Hi Raghav how can I create test in katalon with dynamic fields eg: when you create enquiry which generates new enquiry Id , so how can I point my test case to the newly generated Id .
Thanks
Hi in case you need random number. Check this - forum.katalon.com/t/how-do-i-set-a-random-number-in-a-text-field/10598/4
hi Raghav
why in my catalon, I cant see selection generic when i creat project? WEB,API/Service and Mobile. Im sorry my english its not good. Nice to meet you and thank you hehe
Hi Chevin, What ver are you using.
@@RaghavPal katalon hehe
Raghav,do you know script negatif testting ? Where I use script like that ? Test suite ? Please Made video like that :) I hope example username, password and login in form login hehehe
@@RaghavPal 7.2.1 katalon studio, not enterprise
Okay, the generic option is not there now, I will do the session on the topic
hi Raghav, i'm trying to import BDD test cases from jira into katalon studio, but the feature file created is always empty, can u assist please
Hi Mariana, I have not tried JIRA integration, pls check if you get any message, Do setup again
@@RaghavPal by doing the setup again, you mean of the jira integration?
Yes, and check if anything was missed. I am not very sure on the JIRA part
Can we do BDD approach for API testing from katalon . I am trying but its giving me errors
Hi Bajaj, we can, will need to see your details of setup and logs
Hello sir, I don't get the result like you
here is my console ,I don't get cucumber Reports
I am inside navigateToLoginPage
I am inside enterCredentials
I am inside clickLogin
I am inside Homepage
Hi Zakaria, I will need to check your setup. Pls check again with the video step by step
@@RaghavPal Thank you for replying, I followed every step in the video, only one that I don't have available since I am using the free version, I can't choose generic project, I don't know if that is what made the difference.
The project type should not be an issue, and as I know from here - www.katalon.com/pricing/ the BDD feature is available in Free ver.
Tq so........much sir.
You're welcome Mounica
can you please guide how to remove SLF4J errors in katalon studio.
Will need to be specific to troubleshoot. Can also check in katalon forum
Sir, I face a problem, can you help me to solve it?
Pls tell me
@@RaghavPal I want to compare the data in a test case with same script. The data stored in excel file. If I run 3 times with different data, I want to verify whether the data that I test ia same with the existing data. If I change the data from excel file, it will show data not matched message in the report. I have no idea what command should I need to add
Use Checkpoints - ruclips.net/video/e26Dp8Jnwzg/видео.html
Hi Raghav, thank you so much for this tutorial and the runner tuturial really helped out. If you could please help me with this issue - I have made two step definitions and two feature files, i am trying to reuse the method from A to B step files - but i keep getting errors .. i tried calling the instance and then added the method from the previous stepfile still no luck ---> class AMPVerifyAllUIElementsStep {
def AMPChapterOverviewStep = new AMPChapterOverviewStep ();
@Given("Test user navigates to software solutions page and enters (.*) and password to login to portal page")
AMPChapterOverviewStep.LoginPage_TestUserLogin()
I also tried --> LoginPage_TestUserLogin()
please help thanks :)
Hi Shahbaz, will need to see the setup, Can try again on a fresh setup and follow all the steps
Hi Raghav...Thanks for the wonderful tutorial...Just one query.... When I am using the Run Feature Folder command it is not giving the feature file code as the output along with the groovy code(below)...Why is it so? Also it is not readable....Please let me know how to include the pretty parameter at folder level to generate readable output and is it expected that the Given When Then statements will be printed when we run the feature folder....
Scenario Outline: Title of your scenario outline [90m# /Users/ishandhaliwal/Katalon Studio/BDDCucumberDemo/Include/features/Login.feature:3[0m
[36mGiven User navigates to login page[0m
[36mWhen User enters and [0m
[36mAnd Click on login button[0m
[36mThen User is navgated to homepage[0m
Examples:
Scenario Outline: Title of your scenario outline [90m# /Users/ishandhaliwal/Katalon Studio/BDDCucumberDemo/Include/features/Login.feature:12[0m
......I am in TC1.......
[32mGiven [0m[32mUser navigates to login page[0m [90m# LoginSteps.user_navigates_to_login_page()[0m
......I am in TC2.......
Username is: ABC
Password is: 123
[32mWhen [0m[32mUser enters [0m[32m[1mABC[0m[32m and [0m[32m[1m123[0m [90m# LoginSteps.user_enters_username_and_password(String,String)[0m
.....I am in TC3.........
[32mAnd [0m[32mClick on login button[0m [90m# LoginSteps.click_on_login_button()[0m
.....I am in TC4.........
[32mThen [0m[32mUser is navgated to homepage[0m [90m# LoginSteps.user_is_navgated_to_homepage()[0m
1 Scenarios ([32m1 passed[0m)
4 Steps ([32m4 passed[0m)
0m0.015s
Hi Ishan, pls check if you have followed all the steps, Can also check some examples online
@@RaghavPal Hi Raghav... I did exactly like the steps and also matched it with Katalon documentation... I am getting this result when I run Feature folder only... And not when I run Feature File..
I will share if I get any information on this
@@RaghavPal thanks for the effort Raghav...😅