-
-
Notifications
You must be signed in to change notification settings - Fork 74
Missing class com.aventstack.extentreports.gherkin.model.Angenommen #58
Comments
We can introduce a mapper in the API which would allow you to use different languages with the existing classes (And, Given) etc. I will share a sample soon. |
We can base the mapper to https://github.com/cucumber/cucumber/blob/master/gherkin/gherkin-languages.json |
Hello. Can you please test with this branch: https://github.com/anshooarora/extentreports-java/tree/cucumber-spoken-languages? You will have to add the below statement to your setup:
Once functional, this will merge with master for 3.0.7. |
adds ability to specific GherkinDialect pom adds new dependency: gson extent setGherkinDialect(..)
adds tests adds docs + a few minor fixes
I will test it within the next few days, thanks alot! |
Hey @anshooarora , I finally have time to look into this issue. |
This issue is now fixed and will be part of 3.0.7. The release should be available in nexus/maven/gradle in the next hour or so. I will update the documentation and changelog tonight. |
Cool, sounds very promising! Thanks for taking care about this kind of niche issue! |
Thanks, everything is working as intended now! 👍 |
Hi, Gherkin also supports an asterisk "*" to use as a keyword instead of given,when,then. But when i use the asterisk i get te same error: java.lang.ClassNotFoundException: com.aventstack.extentreports.gherkin.model.* I am running as a cucumber plugin so at this point i dont have a exentreportsobject to set the dialect on. Using version 3.1.1 and extentreports 3.1.5. Or do I need to configure something? |
Have you set the gherkin dialect to the correct language code? |
Oh, ignore my previous comment. I was looking at the subject. An asterisk I believe is not supported. What will an asterisk convert to? |
An asterisk can be used instead of Given, Then, When, And, But; to specify a step where the keyword is irrelevant. If i understand the above mentioned json file correctly that is also what is intended here with the asteriskses in every dialect, for example: The asteriks does not necessarily have to convert into anything (if i understand your question right). It would be ok if it gets passed and parsed to the report as an asterisk. But indeed, it won't point to valid model in the report at the moment |
Support for asterisk is added in version 4.0.1-SNAPSHOT. The release version will be available in a few days. |
Great!, thanks! i'll check it out. |
I just updated to version 3.0.1 and ExtentReport 3.0.6 and suddenly get an error.
I need to point out that I'm using the german classes for implementing the steps. That's why the missing class is "Angenommen", which means "Given".
I'm aware that the error may not have anything to do with your work @email2vimalraj but I'd like to post it anyway.
Here the full stacktrace:
The text was updated successfully, but these errors were encountered: