[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
its giving illegal argument exception.
check if there is a file missing in workspace/salesforce/com.
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]
Attached herewith the zip file for SalesForce-App-Project
[attachment=0:1fwpumq2]SalesForce-App-Project.rar[/attachment:1fwpumq2]
try with these lines
[quote:i8ohxjws] <testResources>
<testResource>
<directory>src/main/resources</directory>
<includes>
<include>log4j.properties</include>
</includes>
</testResource>
</testResources>[/quote:i8ohxjws]
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]
i check and this error come because of a bug in reflection API. try changing the version of cucumber.
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]
download the cucumber jars from here and try to run
qtpselenium.com/downloads/cucumber.rar