Module27: Unable to run Cucumber sceanrios in parallel. | Selenium Forum
D
dipu.sandeep Posted on 21/04/2020

Gettliong below error

C:\Users\Praveen\eclipse-workspace\Learning-java\LearningCucumber>mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.learning.cucumber:LearningCucumber >---------------
[INFO] Building LearningCucumber 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocate
d to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ LearningCu
cumber ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Praveen\eclipse-workspace\Le
arning-java\LearningCucumber\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ LearningCucumbe
r ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- cucumber-jvm-parallel-plugin:5.0.0:generateRunners (generateRunners)
@ LearningCucumber ---
[INFO] Adding C:\Users\Praveen\eclipse-workspace\Learning-java\LearningCucumber\
target\generated-test-sources\cucumber to test-compile source root
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Le
arningCucumber ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Learnin
gCucumber ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to C:\Users\Praveen\eclipse-workspace\Learning-j
ava\LearningCucumber\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[7,2] cannot find symbol
symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[7,2] cannot find symbol
symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[7,2] cannot find symbol
symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[7,2] cannot find symbol
symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[6,10] cannot find symbol
symbol: class Cucumber
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[6,10] cannot find symbol
symbol: class Cucumber
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[6,10] cannot find symbol
symbol: class Cucumber
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[6,10] cannot find symbol
symbol: class Cucumber
[INFO] 16 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.017 s
[INFO] Finished at: 2020-04-20T21:21:13-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:testCompile (default-testCompile) on project LearningCucumber: Compilation fai
lure: Compilation failure:
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[7,2] cannot find symbol
[ERROR] symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[7,2] cannot find symbol
[ERROR] symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[7,2] cannot find symbol
[ERROR] symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[3,20] package cucumber.api
does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[4,26] package cucumber.api.
junit does not exist
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[7,2] cannot find symbol
[ERROR] symbol: class CucumberOptions
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[6,10] cannot find symbol
[ERROR] symbol: class Cucumber
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel02IT.java:[6,10] cannot find symbol
[ERROR] symbol: class Cucumber
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel03IT.java:[6,10] cannot find symbol
[ERROR] symbol: class Cucumber
[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel01IT.java:[6,10] cannot find symbol
[ERROR] symbol: class Cucumber
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

 

Attaching my pom.xml


A
Ashish Replied on 21/04/2020

[ERROR] /C:/Users/Praveen/eclipse-workspace/Learning-java/LearningCucumber/targe
t/generated-test-sources/cucumber/Parallel04IT.java:[3,20] package cucumber.api
does not exist

 

 

this clearly says that package is not existing


D
dipu.sandeep Replied on 23/04/2020

Yes. I have added the dependecy and build info in pom. Why it is still not showing? Can you please suggest.


A
Ashish Replied on 23/04/2020

can you zip and send project


D
dipu.sandeep Replied on 28/04/2020

Attaching the project.


D
dipu.sandeep Replied on 01/05/2020

Team, 

Can you please provide the update when you get a chance.

 


D
dipu.sandeep Replied on 09/05/2020

Team,

Can you please take a look at attached project and suggest.


D
dipu.sandeep Replied on 24/05/2020

Team,

Can we have an answer the query posted a month back. Thanks!


A
Ashish Replied on 25/05/2020

Right now This is giving issues as cucumber guyshave removed and changed the plugin

I am coming out with a video soon which is going to fix this issue


D
dipu.sandeep Replied on 26/05/2020

Thank you.. Wait wait for new video.


Related Posts