Комментарии:
in my case some of the gherkin key are showing yellow flag while other dont why
ОтветитьHi Naveen
Thank you and really appreciate your efforts. I have quick question: In my project we are using step definition file. I am new to this API automation as well as Karate framework. How do i know from where integrating methods. We are using IntelliJ IDE. Java is pgm language.
Hey Naveen, Cucumber options has been depreciated now, cab you please show how to create new Test Runner class using Junit Platform Engine?
ОтветитьYour videos are really helpful and gives brief info on any feature ... was having one doubt on the same topic i.e. how to extract feature file name from .feature file to step definition class ?
ОтветитьGreat explain 👍👍👍
ОтветитьWARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Exception in thread "main" java.lang.NoClassDefFoundError: io/cucumber/gherkin/GherkinParser
at io.cucumber.core.gherkin.messages.GherkinMessagesFeatureParser.parse(GherkinMessagesFeatureParser.java:41)
at io.cucumber.core.feature.FeatureParser.parseResource(FeatureParser.java:46)
at java.base/java.util.function.BiFunction.lambda$andThen$0(BiFunction.java:70)
at io.cucumber.core.resource.ResourceScanner.lambda$processResource$1(ResourceScanner.java:79)
at io.cucumber.core.resource.PathScanner$ResourceFileVisitor.visitFile(PathScanner.java:75)
at io.cucumber.core.resource.PathScanner$ResourceFileVisitor.visitFile(PathScanner.java:60)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2812)
at io.cucumber.core.resource.PathScanner.findResourcesForPath(PathScanner.java:53)
at io.cucumber.core.resource.PathScanner.findResourcesForUri(PathScanner.java:31)
at io.cucumber.core.resource.ResourceScanner.findResourcesForUri(ResourceScanner.java:61)
at io.cucumber.core.resource.ResourceScanner.scanForResourcesUri(ResourceScanner.java:134)
at io.cucumber.core.runtime.FeaturePathFeatureSupplier.loadFeatures(FeaturePathFeatureSupplier.java:62)
at io.cucumber.core.runtime.FeaturePathFeatureSupplier.get(FeaturePathFeatureSupplier.java:45)
at io.cucumber.core.runtime.Runtime.run(Runtime.java:80)
at io.cucumber.core.cli.Main.run(Main.java:87)
at cucumber.api.cli.Main.run(Main.java:30)
at cucumber.api.cli.Main.main(Main.java:15)
Caused by: java.lang.ClassNotFoundException: io.cucumber.gherkin.GherkinParser
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 17 more
Not able to run my feature file. Could anyone please help
Hi Sir, Can please make the video on the JBhave with maven
Ответитьthank you
ОтветитьFantastic like always!
ОтветитьI use Eclipse. My other cucumber project can run feature file and show me to define step definition. But when i created my 2nd project in Eclipse, when I run feature file, it doesn't show me any step definition that I will need to create. WHy?
ОтветитьWhy and is getting mapped to then over here?
ОтветитьThank You, Sir !
Ответитьgreat man. you are always there with a solution video. Thanks again and again My Automation Guru.
ОтветитьYour videos are good. but contents are not visible. Please show by zooming in.
ОтветитьHi @naveen Hi really good video But i'm getting initialization error while running the test runner file.... Its telling that "Method 'initialization error' not found.Opening the test class"
ОтветитьHi Naveen sir, is there any plugin which help to merge to junit XML file
ОтветитьHi naveen i have built the same project as you teach also copied your pom
But i am getting test class not found in project error
I have tried by changing path in class file still i am getting same issue. Please provide the solution i am bit frusted due the issue please help sir
Thanks a million! this video was exactly what i was looking for!
Ответитьwe can directly run Runner class which shall automatically find the missing step defs ..
ОтветитьHello Naveen, Is this possible to add multiple annotation in one step definition. I have two scenarios where in one scenario same step can be used with Then and another is with And annotation. So I should write two steps definition for each with duplicate code(which i will not prefer to do) . Could you please highlight on this?
Ответитьcan we run two feature files run from one test runner like both feature files mapped to different step def and we have to run both the feature one by one , can we do this
ОтветитьNaveen you life saver
Ответитьim running a feature file as "Run as configuration"
i have not defined any steps
instead of flagging for undefined steps, its running with no output, test success
what could be reason that undefined steps are not coming up ?
Amazing tutorial. You are jus wow Naveen.
ОтветитьMy test is showing "steps undefined". The only difference between your code and my code is "import io.cucumber.java.en.Given". I do not know from where you got this import. I get error if I use this import. So I have used "import cucumber.api.java.en.Given"
Ответитьhi.. Can you please tell me which Screen recorder is using on your laptop for recoding audio and video purpose ?
ОтветитьThanks sir for great video but could you please make a video on how to run multiple features file using runner class.
ОтветитьHi sir,
What is the solution for regeneration step definition? Step Definition is generated when I run the feature file for the first time. The step definition is generated when i run the Java class again after implementation in the Java class.Result : (you can implement the missing steps with the snippet given below:
1) with scenarios (1 undefined)
3 steps (1 omitted, 2 undefined) while step definition has already been generated and implemented.
Hi Naveen, I have created the same feature file, but the run configuration generated step definitions only for last 3 lines, and when I created step definition file with those 3 steps, the code was running successfully without any warning for missing glue code of Given And When situation. Can you please help me with this situation.
ОтветитьHow can i have 2 separate step definition files with 1 feature file ?
My requirement is that for the same feature file I need to have 2 separate step definition file (one for component test and one for integration test).
Hi Naveen,
i am facing following issues
1. Am using windows 10 and eclipse IDE version 2020-09
Following your video i created a feature file and its step definition file
Andi can only execute the feature file by right clicking on the feature page ->RunAs -> cucmber feature
But i cannot execute the feature file by right clicking on feature file name ->RunAs -> cucmber feature in the explorer
2. AutoNavigation from feature file to stepDefinition file is not happening for few when i try to perform using ctrl+mouse hover and click
i checked with naming and even spaces everything is looking same in both the files "feature" "stepDefinition"
3.And also getting this warning in feature file
Multiple markers at this line
- The resource is a duplicate of src/test/resources/features/uber.feature and was not copied to the output folder
- 8 changed lines
And i created this resource source folder based on the lecture and i dont know where it is referring for duplicate.
Solution from peers also highly appreciable
Thanks in advance
Hi Naveen,
How can we run two feature file one after another?
I have created two feature file- one is for login and second one is of clicking on any menu items after login.
Hi Naveen,
Thank you for the video, code seems to successful but the only issue is on ctrl +hovering the feature file is not getting higlighted(. Kindly note the plugin is the latest and even the project is converted(I can see green icons also).
If the feature file is not showing colours or steps as link .. Go to your feature file right click open with Editors it will work most properly 👍🏻
I am writing 3 scenarios in 3 different feature files and step definition files. The first 2 steps are the same in all 3 scenarios. will it work or will show some error here?? Anyone please suggest me here
ОтветитьHi Naveen,
I was able to install new plugin followed by converting to cucumber project as well. In feature file I was able to see green color dots eventhough I was not able to move from feature file to step definition since it's not highlighting the step as link (ctr mouse over - windows machine - Eclipse). Can you suggest me how to overcome this.
Clicking on your telegram link it says the link is expired
ОтветитьHi Naveen,
It's wonderful. Crystal clear explaination.
I have followed the similar steps mentioned in the video. But, in the feature file, (*.feature), i dont see any auto generated script file. I am using below configurations
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<junit.version>4.13.2</junit.version>
<cucumber.version>6.10.0</cucumber.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.surefire.version>2.22.2</maven.surefire.version>
Eclipse version : eclipse-java-2020-12-R-win32-x86_64
Hi Naveen, After updating cucumber as you suggested my existing cucumber turned into plain editor. Unable to run feature files now.Please help me
ОтветитьHi Naveen, i am trying to generate snippet from Feature file first time it generated snippet, after adding new feature file it is not executing and giving report. It is giving warning as You are using deprecated Main class. Please use io.cucumber.core.cli.Main. It is saying all scenarios passed but not giving step definition.
ОтветитьHi Naveen
is it possible to map one feature step Definition into another feature Step?
HI Naveen
I have installed new software and tried to configure as cucumber project but still i am seeing warning as does not have matching glue code. Could you please suggest me how to remove the warning in the feature file.
Hi Naveen, I am getting no glue code warning for the feature files. I have defined the step definitions and also installed latest cucumber plugin. I tried uninstalling and reinstalling the plugin still no luck. Could you please suggest some solution.
ОтветитьThank you so much Naveen for your videos. Your videos are crisp, to the point,covers all the information. We can study more in a lesser time because you don't beat around the bush. I am a fan
ОтветитьHi Naveen, I am getting a "No Definition Found" warning message in the feature file even though I have added all the Feature File Statement in Step Definition. Can you please help me?
Ответить