Hi everyone, 

I used the JBEHAVE archetype to generate a simple project.
The generated project does not compile.

*1 - The commands for the archetype*

*mvn archetype:generate -Dfilter=org.jbehave:jbehave*

[INFO] No archetype defined. Using maven-archetype-quickstart 
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> org.jbehave:jbehave-groovy-archetype (An archetype to run 
multiple textual stories with steps classes written in Groovy.)
2: remote -> org.jbehave:jbehave-guice-archetype (An archetype to run 
multiple textual stories configured programmatically but with steps classes 
composed using Guice.)
3: remote -> org.jbehave:jbehave-needle-archetype (An archetype to run 
multiple textual stories configured programmatically but with steps classes 
composed using Needle.)
4: remote -> org.jbehave:jbehave-pico-archetype (An archetype to run 
multiple textual stories configured programmatically but with steps classes 
composed using Pico.)
*5: remote -> org.jbehave:jbehave-simple-archetype (An archetype to run 
multiple textual stories configured programmatically.)*
6: remote -> org.jbehave:jbehave-spring-archetype (An archetype to run 
multiple textual stories configured programmatically but with steps classes 
composed using Spring.)
7: remote -> org.jbehave.web:jbehave-web-selenium-flash-archetype (An 
archetype to run web Flash stories using Selenium.)
8: remote -> org.jbehave.web:jbehave-web-selenium-groovy-pico-archetype (An 
archetype to run web stories using Selenium, Groovy and Pico.)
9: remote -> org.jbehave.web:jbehave-web-selenium-java-spring-archetype (An 
archetype to run web stories using Selenium, Java and Spring.)
*Choose a number or apply filter (format: [groupId:]artifactId, case 
sensitive contains): : 5*

*2 - When we do MVN CLEAN INSTALL, there is the error.*

[ERROR] *Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.1:compile 
(default-compile) on project goodstep434: Compilation failure*
[ERROR] 
\Data\development\WorkspaceBDD\jbehave-janvier-2019\goodstep434\src\main\java\com\training\MyStories.java:[55,77]
 
error: incompatible types: *LocalizedKeywords *cannot be converted to 
ResourceLoader
[ERROR]

*3 - The solution in the code is the following.*

Old line:
//      ExamplesTableFactory examplesTableFactory = new 
ExamplesTableFactory(new LocalizedKeywords(), new 
LoadFromClasspath(embeddableClass), parameterConverters, new 
TableTransformers());
New Line        
ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new 
LocalizedKeywords(), new LoadFromClasspath(embeddableClass), new 
TableTransformers());
        
4 - I need some* good exemples working fine*, for simple cases, web UI 
testing and Rest webservices testing.
The one provided on the JBEHAVE github do not always work.
Please, we do you get your working tutorials code ?

Thank you very much



-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/a84d72b1-f74d-4c47-83f3-a8c5ad8a02d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to