Cucumber Moduel 42- error while executing pom.xml | Selenium Forum
M
Posted on 28/02/2016
Hi Ashish,

through Runner class the script got executed but when i executed through pom.xml getting error:

None of the features[src/] matched the filters:[@login] in command prompt window

M
Replied on 28/02/2016

[img][attachment=0:19nxuu9k]pom.xml[/attachment:19nxuu9k][/img][attachment=1:19nxuu9k]error.png[/attachment:19nxuu9k]

i was able to resolve above issue , now facing another error while executing pom.xml file

failed to execute goal org.codehaus.mojo:exec-maven-plugin-1.4.0


M
Replied on 29/02/2016

its giving illegal argument exception.

check if there is a file missing in workspace/salesforce/com.


M
Replied on 29/02/2016

below screenshot refers the files I got in the com folder. I'm not able to figure out which file exactly is missing. please look into it and help me
[attachment=0:1hxkblh8]files in com folder.png[/attachment:1hxkblh8]

Responsive image

M
Replied on 29/02/2016

zip and upload the project.


M
Replied on 01/03/2016

Attached herewith the zip file for SalesForce-App-Project
[attachment=0:1fwpumq2]SalesForce-App-Project.rar[/attachment:1fwpumq2]


M
Replied on 02/03/2016

try with these lines

[quote:i8ohxjws] <testResources>
<testResource>
<directory>src/main/resources</directory>
<includes>
<include>log4j.properties</include>
</includes>
</testResource>
</testResources>[/quote:i8ohxjws]


M
Replied on 02/03/2016

updated the pom.xml as you have suggested below, but still facing same issue. Could you please revisit your module 42 pom.xml scenario and help me, with this issue i'm not able to proceed with my Cucumber Live project practice from past 3 days.
[img][attachment=0:3lsg14k7]error-filenotfound.png[/attachment:3lsg14k7][/img]

Responsive image

M
Replied on 02/03/2016

i check and this error come because of a bug in reflection API. try changing the version of cucumber.


M
Replied on 03/03/2016

Hi Ashish, as you have suggested I have changed cucumber version to 1.1.8 and executed the script then got errors as mentioned below:
[color=#0000BF:38n7oyh2][b:38n7oyh2]could you please help me to get this issue resolved asap[/b:38n7oyh2][/color:38n7oyh2]
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.113 s
[INFO] Finished at: 2016-03-03T22:10:21-05:00
[INFO] Final Memory: 17M/124M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SalesForce-App-Project: Compilation failure: Compilation failure:
[ERROR] /C:/Venkat Backup/Workspace/SalesForce-App-Project/src/main/java/com/qtpselenium/app/salesforce/util/WebConnector.java:[9,34] package org.openqa.selenium.chrome does not exist
[ERROR] /C:/Venkat Backup/Workspace/SalesForce-App-Project/src/main/java/com/qtpselenium/app/salesforce/util/WebConnector.java:[10,35] package org.openqa.selenium.firefox does not exist
[ERROR] /C:/Venkat Backup/Workspace/SalesForce-App-Project/src/main/java/com/qtpselenium/app/salesforce/util/WebConnector.java:[49,30] cannot find symbol
[ERROR] symbol: class FirefoxDriver
[ERROR] location: class com.qtpselenium.app.salesforce.util.WebConnector
[ERROR] /C:/Venkat Backup/Workspace/SalesForce-App-Project/src/main/java/com/qtpselenium/app/salesforce/util/WebConnector.java:[52,38] cannot find symbol
[ERROR] symbol: class ChromeDriver
[ERROR] location: class com.qtpselenium.app.salesforce.util.WebConnector

[b:38n7oyh2][size=150:38n7oyh2]To get above errors resolved added below dependency[/size:38n7oyh2][/b:38n7oyh2]
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>${selenium.version}</version>
</dependency>

now the above errors are fixed and same issue is encountered again. Also project zipped file.
[img][attachment=1:38n7oyh2]compilation%20failure.png[/attachment:38n7oyh2][/img]


M
Replied on 04/03/2016

could you please look into above issue and respond asap.


M
Replied on 04/03/2016

i am looking at it i'll reply to you before EOD.


M
Replied on 05/03/2016

i couldn't find the solution. i will reply on Monday.


M
Replied on 08/03/2016

download the cucumber jars from here and try to run

qtpselenium.com/downloads/cucumber.rar


M
Replied on 08/03/2016

for maven try these versions

Responsive image