extentreports-cucumber4-adapter icon indicating copy to clipboard operation
extentreports-cucumber4-adapter copied to clipboard

Adapter not recognizing language of feature file

Open grasshopper7 opened this issue 5 years ago • 0 comments

Sample feature file

# language: pl

Właściwość: Polish Scenario And Scenario Outline

  Scenariusz: Scenario Number Seven Seven Seven
    Zakładając Write a 'given' step with precondition in 'Scenario 777'
    Kiedy Complete action in 'when' step in 'Scenario 777'
    Wtedy Validate the outcome in 'then' step in 'Scenario 777'

Get below exception as GherkinDialectManager.getDialect() is null and no appropriate matching is done with languages json.

java.lang.ClassNotFoundException: com.aventstack.extentreports.gherkin.model.Zakładając,Że
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at com.aventstack.extentreports.GherkinKeyword.<init>(GherkinKeyword.java:80)
	at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.createTestStep(ExtentCucumberAdapter.java:479)
	at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.handleTestStepStarted(ExtentCucumberAdapter.java:197)
	at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.access$2(ExtentCucumberAdapter.java:185)
	at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter$4.receive(ExtentCucumberAdapter.java:119)
	at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter$4.receive(ExtentCucumberAdapter.java:1)

grasshopper7 avatar Nov 19 '20 16:11 grasshopper7