-
Notifications
You must be signed in to change notification settings - Fork 315
Support for gherkin keywords in different languages (ex. norwegian) #939
Comments
Please test with this branch by compiling into jar or adding sources as project. To initiate:
Note: Dialects come from gherkin-languages.json. Does it work? |
I followed your suggestion and now I get the following erro:r
|
Can you share the code you used or possible create a project for me to reproduce what you're doing? |
I am trying to adapt this plugin to support Norwegian Gherkin dialect. The plugin uses your plugin as basis to generate a user-friendly cucumber Test report
I made some adjustments in the original project in order to support norwegian language. Just run the test class RunCukesTest I sent you an invitation as a collaborator to the project bellow https://github.com/krehator21/cucumber-extentsreport-norwegian/ |
All tests have passed. All I did to the project was, host the -SNAPSHOT at Nexus, add the latest dependency to the project. Can you please check once? |
@krehator21 |
Sorry I didn't get back to you sooner. For a simple Test in english works great. But if the language in the gluecode is in norwegian the plugin is not able to find the Step definitions. Updated the Tests in the project if you are interested in reproducing the error. Thanks in advance |
@anshooarora |
I believe it is the way this setting is created. The issue got resolved when I did this in
|
Note: this should be the very first setting applied to ExtentReports, before any of the tests start. |
I'm still getting the error java.lang.ClassNotFoundException: com.aventstack.extentreports.gherkin.model.* |
On what keyword was this error thrown? |
I am using v 3.0.7 along with cucumber. and while using * instead of Given, When Then, i am facing below error. I did not faced this in 3.0.2. java.lang.ClassNotFoundException: com.aventstack.extentreports.gherkin.model.* |
Why are you using * instead of a GherkinKeyword? |
it is for data set up steps that I do which are not part of acceptance criteria. |
It is not an acceptable GherkinKeyword, so obviously this error is thrown. |
But it was supported in v 3.0.3 |
Summary
Extent report is not able to recognize Cucumber feature files in a different language other then english. I am currently using gherkin Feature files in Norwegian language. My issue is does Extent report support different languages?
Expected Behavior
Extent report is able to recognize gherkin keywords based in different languages other then english.
Current Behavior
Extent report is not able to translate the gherkin keyword Gitt (norwegian) into Given. An exception is throw because the plugin is not able to find the class.
Sample
Environment Details
The text was updated successfully, but these errors were encountered: