Process fork failed -maven ant | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
30% Mid August Discount Avail now

Selenium Training Forum

Process fork failed -maven ant

M
Post on 16/09/2015

Hi Ashish,
I am getting process fork failed error while running the project withAnt.
Please let me know how to fix this error?

M
Reply on 17/09/2015

Please remove unnecessary jar files from Class path and try again.

M
Reply on 17/09/2015

How to find which jar files are not required?

I am just using the POM files shared during training and mapped the repository location in ANT.

M
Reply on 18/09/2015

are you using maven?
if yes then its .m2/repository

if no then where are your file located?

M
Reply on 18/09/2015

yes I am using maven and below is my Ant configuration, But My qns was how to decide and remove the unnecessary jar file among all those folder/files.


[u:kvn063h3]Build. xml- configuartion[/u:kvn063h3]
<property name="ws.home" value="${basedir}"/>
<property name="ws.jars" value="${user.home}/.m2/repository/"/>
<property name="test.dest" value="${ws.home}/build"/>
<property name="test.src" value="${ws.home}/src"/>
<property name="ng.result" value="test-output"/>

[u:kvn063h3]POM.XML file:-[/u:kvn063h3]
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.quiker</groupId>
<artifactId>quiker</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url>


<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
<!-- Selenium -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.45.0</version>
</dependency>
<!-- POI -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.1</version>
</dependency>

<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>2.3.0</version>
</dependency>
<!-- Log4J -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<!-- JavaMail -->
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
</dependency>
<!-- Extent Reports -->
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.04</version>
</dependency>
<dependency>
<groupId>net.sourceforge.saxon</groupId>
<artifactId>saxon</artifactId>
<version>9.1.0.8</version>
</dependency>
</dependencies>
<build>

<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>

</plugins>
</build>
<reporting>
<plugins>
<!-- TestNG-xslt related configuration. -->
<plugin>
<groupId>org.reportyng</groupId>
<artifactId>reporty-ng</artifactId>
<version>1.2</version>
<configuration>
<!-- Output directory for the testng xslt report -->
<outputdir>/target/testng-xslt-report</outputdir>
<sorttestcaselinks>true</sorttestcaselinks>
<testdetailsfilter>FAIL,SKIP,PASS,CONF,BY_CLASS</testdetailsfilter>
<showruntimetotals>true</showruntimetotals>
</configuration>
</plugin>
</plugins>
</reporting>

<pluginRepositories>
<pluginRepository>
<id>reporty-ng</id>
<url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url>
</pluginRepository>
</pluginRepositories>
</project>

M
Reply on 19/09/2015

[quote:2hipiftc]My qns was how to decide and remove the unnecessary jar file among all those folder/files. [/quote:2hipiftc]

delete this folder .m2/repository. and run the program through maven will download all the necessary jar files for you.

M
Reply on 19/09/2015

It fixed - Process for failed error.
But when I am running through ant(ant clean run), it's only opening Browsers but not running the other scripts.
Where as if I am running the same testng.xml separately or running through maven its working fine.

[u:3ma2fj9q]Below is my Build.xml file details:[/u:3ma2fj9q]

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE project [
]>

<project name="Rediff" default="usage" basedir=".">

<!-- ========== Initialize Properties =================================== -->
<property environment="env"/>

<property name="ws.home" value="${basedir}"/>
<property name="ws.jars" value="${user.home}/.m2/repository/"/>
<property name="test.dest" value="${ws.home}/build"/>
<property name="test.src" value="${ws.home}/src"/>
<property name="ng.result" value="test-output"/>

<!--target name="start-selenium-server">
<java jar="${ws.home}/lib/selenium-server.jar"/>
</target-->

<target name="setClassPath" unless="test.classpath">
<path id="classpath_jars">
<fileset dir="${ws.jars}" includes="**/*.jar"/>
</path>
<pathconvert pathsep=":"
property="test.classpath"
refid="classpath_jars"/>
</target>

<target name="init" depends="setClassPath">
<tstamp>
<format property="start.time" pattern="MM/dd/yyyy hh:mm aa" />
</tstamp>
<condition property="ANT"
value="${env.ANT_HOME}/bin/ant.bat"
else="${env.ANT_HOME}/bin/ant">
<os family="windows" />
</condition>
<!-- <taskdef name="testng" classpath="${test.classpath}"
classname="org.testng.TestNGAntTask" /> -->

</target>

<!-- all -->
<target name="all">
</target>

<!-- clean -->
<target name="clean">
<delete dir="${test.dest}"/>
</target>

<!-- compile -->
<target name="compile" depends="init, clean" >
<delete includeemptydirs="true" quiet="true">
<fileset dir="${test.dest}" includes="**/*"/>
</delete>
<echo message="making directory..."/>
<mkdir dir="${test.dest}"/>
<echo message="classpath------: ${test.classpath}"/>
<echo message="compiling..."/>
<javac
debug="true"
destdir="${test.dest}"
srcdir="${test.src}"
target="1.7"
classpath="${test.classpath}"
>
</javac>
</target>

<!-- build -->
<target name="build" depends="init">
</target>

<taskdef resource="testngtasks">
<classpath>
<pathelement path="${user.home}/.m2/repository/org/testng/testng/6.1.1/testng-6.1.1.jar"/>
</classpath>
</taskdef>

<!-- run -->
<target name="run" depends="compile">
<testng classpath="${test.classpath}:${test.dest}" suitename="suite1">
<xmlfileset dir="${ws.home}/src/test/resources" includes="testng.xml"/>
</testng>
<!--
<testng classpath="${test.classpath}:${test.dest}" groups="fast">
<classfileset dir="${test.dest}" includes="example1/*.class"/>
</testng>
-->
</target>

<target name="usage">
<echo>
ant run will execute the test
</echo>
</target>

<path id="test.c">
<fileset dir="${ws.jars}" includes="**/*.jar"/>
</path>

<target name="makexsltreports">
<mkdir dir="${ws.home}/XSLT_Reports/output"/>

<xslt in="${ng.result}/testng-results.xml" style="${ws.home}/src/xslt/testng-results.xsl"
out="${ws.home}/XSLT_Reports/output/index.html" classpathref="test.c" processor="SaxonLiaison">
<param name="testNgXslt.outputDir" expression="${ws.home}/XSLT_Reports/output/"/>
<param name="testNgXslt.showRuntimeTotals" expression="true"/>
</xslt>
</target>

<!-- ****************** targets not used ****************** -->

</project>

M
Reply on 21/09/2015

did you get any warnings or errors in command prompt.

M
Reply on 21/09/2015

I have only 2 test cases and after running its only opening browsers and in cmd showing total runs 2 ,failures 2.

M
Reply on 22/09/2015

After running through Ant , it just opens the FF browser but runs no other scripts and CMD shows build success, tests 2, failure 2.

But when I check the index.html under test-output it shows below error.


Test class: com.quiker.suiteA.Registration


java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.transformValues(Lcom/google/common/collect/ListMultimap;Lcom/google/common/base/Function;)Lcom/google/common/collect/ListMultimap;
at com.google.common.net.MediaType.toString(MediaType.java:708)
at org.openqa.selenium.remote.http.JsonHttpCommandCodec.encode(JsonHttpCommandCodec.java:197)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:130)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:165)
at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:362)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99)
at com.quiker.Util.Keywords.openBrowser(Keywords.java:126)
at com.quiker.Util.Keywords.executeKeywords(Keywords.java:70)
at com.quiker.suiteA.Registration.Register(Registration.java:25)

M
Reply on 23/09/2015

[quote:iqapsyh2]java.lang.NoSuchMethodError:[/quote:iqapsyh2]
Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

[quote:iqapsyh2]Keywords.java:126)\(Keywords.java:70)\(Registration.java:25)

<property name="ws.jars" value="${user.home}/.m2/repository/"/>
[/quote:iqapsyh2]
what is in file keyword.java at line 126?
there is no corresponding jar file for it in .m2/repository where your ws.jars is pointing.

so to add jar file in .m2/repository you have to add the dependency in pom.xml.

M
Reply on 24/09/2015

Could you please try creating a maven project , configure ant and run testng.xml through ant and see if its working.Send me the build.xml.
As my project is running through Maven but not through Ant.

M
Reply on 24/09/2015

[quote="Sadhana":3s0yn3f7]Could you please try creating a maven project , configure ant and run testng.xml through ant and see if its working.Send me the build.xml.
As my project is running through Maven but not through Ant.[/quote:3s0yn3f7]

there are many project available in your selenium_pack.rar use one from them.

M
Reply on 24/09/2015

I am not getting the solution, I think the problem is not with the project.
Its probably the configuration in build.xml or the combination of MAVEN-ANT as my project is running fine with maven.
I want use ANT just for XSLT reports and through ANT Its failing to run the scripts so no reports.

Please find my build.xml and POM.xml file, let me know if I can fix anything.

M
Reply on 25/09/2015

I'll try to run it with your project. I am working on fixing on the issue so you can upload your project.

M
Reply on 25/09/2015

try now. you should be able to upload file.

M
Reply on 25/09/2015

I have uploaded file , but you just have to add the saxonliaison jar file into repository folder manually to run for xslt reports.


I am not sure if some jar files are missing how its working though MAVEN.

M
Reply on 29/09/2015

Do you have any update on this?

M
Reply on 30/09/2015

my main system stopped working so I couldn't look at it in depth but .xlsx file is missing I cannot run tests without can you provide .xlsx file

M
Reply on 30/09/2015

Attached is the xlsx file. it should be there under resources folder.

M
Reply on 04/10/2015

Do you have any update on this?

M
Reply on 05/10/2015

yeah i was about to reply I cannot get your project to run. its giving me error.

can you alter your project to include xlsx file and chromedriver.exe inside of the project. and upload it again. thank you.

M
Reply on 05/10/2015

please find the project file attached.

- Have added the generic path for xlsx,
- Removed FF Profile from code so that it will work for you
- Added chromedriver.exe to the project.
- Have only one test case "Signin" in testng.xml and it is parametrized with both the browsers.

Note: its working through maven but through ANT(its just opening the browsers)

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Sadhana>cd C:\Users\Sadhana\Workspace\Quiker\quiker

C:\Users\Sadhana\Workspace\Quiker\quiker>ant run
Buildfile: C:\Users\Sadhana\Workspace\Quiker\quiker\build.xml

setClassPath:

init:

clean:
[delete] Deleting directory C:\Users\Sadhana\Workspace\Quiker\quiker\build

compile:
[echo] making directory...
[mkdir] Created dir: C:\Users\Sadhana\Workspace\Quiker\quiker\build
[echo] classpath------: C:\Users\Sadhana\.m2\repository\SaxonLiaison.jar:C:
\Users\Sadhana\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-fra
mework-4.1.3.jar:C:\Users\Sadhana\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-n
odep-2.1_3.jar:C:\Users\Sadhana\.m2\repository\classworlds\classworlds\1.1\class
worlds-1.1.jar:C:\Users\Sadhana\.m2\repository\com\beust\jcommander\1.12\jcomman
der-1.12.jar:C:\Users\Sadhana\.m2\repository\com\google\code\findbugs\jsr305\2.0
.1\jsr305-2.0.1.jar:C:\Users\Sadhana\.m2\repository\com\google\code\gson\gson\2.
3.1\gson-2.3.1.jar:C:\Users\Sadhana\.m2\repository\com\google\collections\google
-collections\1.0\google-collections-1.0.jar:C:\Users\Sadhana\.m2\repository\com\
google\guava\guava\18.0\guava-18.0.jar:C:\Users\Sadhana\.m2\repository\com\relev
antcodes\extentreports\2.04\extentreports-2.04.jar:C:\Users\Sadhana\.m2\reposito
ry\commons-cli\commons-cli\1.0\commons-cli-1.0.jar:C:\Users\Sadhana\.m2\reposito
ry\commons-codec\commons-codec\1.9\commons-codec-1.9.jar:C:\Users\Sadhana\.m2\re
pository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1
.jar:C:\Users\Sadhana\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.ja
r:C:\Users\Sadhana\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1
.jar:C:\Users\Sadhana\.m2\repository\commons-logging\commons-logging-api\1.1\com
mons-logging-api-1.1.jar:C:\Users\Sadhana\.m2\repository\commons-logging\commons
-logging\1.1\commons-logging-1.1.jar:C:\Users\Sadhana\.m2\repository\dom4j\dom4j
\1.1\dom4j-1.1.jar:C:\Users\Sadhana\.m2\repository\io\netty\netty\3.5.2.Final\ne
tty-3.5.2.Final.jar:C:\Users\Sadhana\.m2\repository\javax\activation\activation\
1.1\activation-1.1.jar:C:\Users\Sadhana\.m2\repository\javax\mail\mail\1.4\mail-
1.4.jar:C:\Users\Sadhana\.m2\repository\javax\servlet\servlet-api\2.3\servlet-ap
i-2.3.jar:C:\Users\Sadhana\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar:C:\U
sers\Sadhana\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar:C:\Users\Sadhana\.
m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar:C:\Users\Sadhana\.m2\repositor
y\log4j\log4j\1.2.14\log4j-1.2.14.jar:C:\Users\Sadhana\.m2\repository\logkit\log
kit\1.0.1\logkit-1.0.1.jar:C:\Users\Sadhana\.m2\repository\net\java\dev\jna\jna\
3.4.0\jna-3.4.0.jar:C:\Users\Sadhana\.m2\repository\net\java\dev\jna\platform\3.
4.0\platform-3.4.0.jar:C:\Users\Sadhana\.m2\repository\net\sf\saxon\Saxon-HE\9.5
.0.1\Saxon-HE-9.5.0.1.jar:C:\Users\Sadhana\.m2\repository\net\sourceforge\csspar
ser\cssparser\0.9.14\cssparser-0.9.14.jar:C:\Users\Sadhana\.m2\repository\net\so
urceforge\htmlunit\htmlunit-core-js\2.15\htmlunit-core-js-2.15.jar:C:\Users\Sadh
ana\.m2\repository\net\sourceforge\htmlunit\htmlunit\2.15\htmlunit-2.15.jar:C:\U
sers\Sadhana\.m2\repository\net\sourceforge\nekohtml\nekohtml\1.9.21\nekohtml-1.
9.21.jar:C:\Users\Sadhana\.m2\repository\net\sourceforge\saxon\saxon\9.1.0.8\sax
on-9.1.0.8.jar:C:\Users\Sadhana\.m2\repository\org\apache\commons\commons-exec\1
.1\commons-exec-1.1.jar:C:\Users\Sadhana\.m2\repository\org\apache\commons\commo
ns-lang3\3.3.2\commons-lang3-3.3.2.jar:C:\Users\Sadhana\.m2\repository\org\apach
e\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.j
ar:C:\Users\Sadhana\.m2\repository\org\apache\httpcomponents\httpclient\4.3.6\ht
tpclient-4.3.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\httpcomponents\htt
pcore\4.3.3\httpcore-4.3.3.jar:C:\Users\Sadhana\.m2\repository\org\apache\httpco
mponents\httpmime\4.3.3\httpmime-4.3.3.jar:C:\Users\Sadhana\.m2\repository\org\a
pache\maven\doxia\doxia-sink-api\1.0-alpha-7\doxia-sink-api-1.0-alpha-7.jar:C:\U
sers\Sadhana\.m2\repository\org\apache\maven\maven-archiver\2.4.2\maven-archiver
-2.4.2.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-artifact-manag
er\2.0.6\maven-artifact-manager-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\ap
ache\maven\maven-artifact-manager\2.0.9\maven-artifact-manager-2.0.9.jar:C:\User
s\Sadhana\.m2\repository\org\apache\maven\maven-artifact\2.0.6\maven-artifact-2.
0.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-artifact\2.0.9\ma
ven-artifact-2.0.9.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-ar
tifact\2.0\maven-artifact-2.0.jar:C:\Users\Sadhana\.m2\repository\org\apache\mav
en\maven-core\2.0.6\maven-core-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\apa
che\maven\maven-core\2.0.9\maven-core-2.0.9.jar:C:\Users\Sadhana\.m2\repository\
org\apache\maven\maven-error-diagnostics\2.0.6\maven-error-diagnostics-2.0.6.jar
:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-error-diagnostics\2.0.9\
maven-error-diagnostics-2.0.9.jar:C:\Users\Sadhana\.m2\repository\org\apache\mav
en\maven-model\2.0.6\maven-model-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\a
pache\maven\maven-model\2.0.9\maven-model-2.0.9.jar:C:\Users\Sadhana\.m2\reposit
ory\org\apache\maven\maven-monitor\2.0.6\maven-monitor-2.0.6.jar:C:\Users\Sadhan
a\.m2\repository\org\apache\maven\maven-monitor\2.0.9\maven-monitor-2.0.9.jar:C:
\Users\Sadhana\.m2\repository\org\apache\maven\maven-plugin-api\2.0.6\maven-plug
in-api-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-plugin-a
pi\2.0.9\maven-plugin-api-2.0.9.jar:C:\Users\Sadhana\.m2\repository\org\apache\m
aven\maven-plugin-descriptor\2.0.6\maven-plugin-descriptor-2.0.6.jar:C:\Users\Sa
dhana\.m2\repository\org\apache\maven\maven-plugin-descriptor\2.0.9\maven-plugin
-descriptor-2.0.9.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-plu
gin-parameter-documenter\2.0.6\maven-plugin-parameter-documenter-2.0.6.jar:C:\Us
ers\Sadhana\.m2\repository\org\apache\maven\maven-plugin-parameter-documenter\2.
0.9\maven-plugin-parameter-documenter-2.0.9.jar:C:\Users\Sadhana\.m2\repository\
org\apache\maven\maven-plugin-registry\2.0.6\maven-plugin-registry-2.0.6.jar:C:\
Users\Sadhana\.m2\repository\org\apache\maven\maven-plugin-registry\2.0.9\maven-
plugin-registry-2.0.9.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven
-profile\2.0.6\maven-profile-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\apach
e\maven\maven-profile\2.0.9\maven-profile-2.0.9.jar:C:\Users\Sadhana\.m2\reposit
ory\org\apache\maven\maven-project\2.0.6\maven-project-2.0.6.jar:C:\Users\Sadhan
a\.m2\repository\org\apache\maven\maven-project\2.0.9\maven-project-2.0.9.jar:C:
\Users\Sadhana\.m2\repository\org\apache\maven\maven-repository-metadata\2.0.6\m
aven-repository-metadata-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\ma
ven\maven-repository-metadata\2.0.9\maven-repository-metadata-2.0.9.jar:C:\Users
\Sadhana\.m2\repository\org\apache\maven\maven-settings\2.0.6\maven-settings-2.0
.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-settings\2.0.9\mav
en-settings-2.0.9.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\maven-too
lchain\1.0\maven-toolchain-1.0.jar:C:\Users\Sadhana\.m2\repository\org\apache\ma
ven\maven-toolchain\2.0.9\maven-toolchain-2.0.9.jar:C:\Users\Sadhana\.m2\reposit
ory\org\apache\maven\plugins\maven-clean-plugin\2.4.1\maven-clean-plugin-2.4.1.j
ar:C:\Users\Sadhana\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2
.5\maven-clean-plugin-2.5.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\p
lugins\maven-compiler-plugin\2.3.2\maven-compiler-plugin-2.3.2.jar:C:\Users\Sadh
ana\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\3.1\maven-comp
iler-plugin-3.1.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\plugins\mav
en-deploy-plugin\2.7\maven-deploy-plugin-2.7.jar:C:\Users\Sadhana\.m2\repository
\org\apache\maven\plugins\maven-install-plugin\2.3.1\maven-install-plugin-2.3.1.
jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.
3.2\maven-jar-plugin-2.3.2.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\
plugins\maven-resources-plugin\2.5\maven-resources-plugin-2.5.jar:C:\Users\Sadha
na\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.6\maven-reso
urces-plugin-2.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\plugins\ma
ven-site-plugin\3.0\maven-site-plugin-3.0.jar:C:\Users\Sadhana\.m2\repository\or
g\apache\maven\plugins\maven-surefire-plugin\2.10\maven-surefire-plugin-2.10.jar
:C:\Users\Sadhana\.m2\repository\org\apache\maven\reporting\maven-reporting-api\
2.0.6\maven-reporting-api-2.0.6.jar:C:\Users\Sadhana\.m2\repository\org\apache\m
aven\reporting\maven-reporting-api\2.0.9\maven-reporting-api-2.0.9.jar:C:\Users\
Sadhana\.m2\repository\org\apache\maven\shared\maven-common-artifact-filters\1.3
\maven-common-artifact-filters-1.3.jar:C:\Users\Sadhana\.m2\repository\org\apach
e\maven\shared\maven-filtering\1.0\maven-filtering-1.0.jar:C:\Users\Sadhana\.m2\
repository\org\apache\maven\shared\maven-filtering\1.1\maven-filtering-1.1.jar:C
:\Users\Sadhana\.m2\repository\org\apache\maven\shared\maven-shared-incremental\
1.1\maven-shared-incremental-1.1.jar:C:\Users\Sadhana\.m2\repository\org\apache\
maven\shared\maven-shared-utils\0.1\maven-shared-utils-0.1.jar:C:\Users\Sadhana\
.m2\repository\org\apache\maven\surefire\maven-surefire-common\2.10\maven-surefi
re-common-2.10.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\surefire\sur
efire-api\2.10\surefire-api-2.10.jar:C:\Users\Sadhana\.m2\repository\org\apache\
maven\surefire\surefire-booter\2.10\surefire-booter-2.10.jar:C:\Users\Sadhana\.m
2\repository\org\apache\maven\surefire\surefire-testng-utils\2.10\surefire-testn
g-utils-2.10.jar:C:\Users\Sadhana\.m2\repository\org\apache\maven\surefire\suref
ire-testng\2.10\surefire-testng-2.10.jar:C:\Users\Sadhana\.m2\repository\org\apa
che\poi\poi-ooxml-schemas\3.6\poi-ooxml-schemas-3.6.jar:C:\Users\Sadhana\.m2\rep
ository\org\apache\poi\poi-ooxml\3.6\poi-ooxml-3.6.jar:C:\Users\Sadhana\.m2\repo
sitory\org\apache\poi\poi\3.6\poi-3.6.jar:C:\Users\Sadhana\.m2\repository\org\ap
ache\xbean\xbean-reflect\3.4\xbean-reflect-3.4.jar:C:\Users\Sadhana\.m2\reposito
ry\org\apache\xmlbeans\xmlbeans\2.3.0\xmlbeans-2.3.0.jar:C:\Users\Sadhana\.m2\re
pository\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar:C:\Users\Sadhana\.m2\repository\o
rg\codehaus\plexus\plexus-archiver\2.0.1\plexus-archiver-2.0.1.jar:C:\Users\Sadh
ana\.m2\repository\org\codehaus\plexus\plexus-classworlds\2.2.2\plexus-classworl
ds-2.2.2.jar:C:\Users\Sadhana\.m2\repository\org\codehaus\plexus\plexus-compiler
-api\1.8.1\plexus-compiler-api-1.8.1.jar:C:\Users\Sadhana\.m2\repository\org\cod
ehaus\plexus\plexus-compiler-api\2.2\plexus-compiler-api-2.2.jar:C:\Users\Sadhan
a\.m2\repository\org\codehaus\plexus\plexus-compiler-javac\1.8.1\plexus-compiler
-javac-1.8.1.jar:C:\Users\Sadhana\.m2\repository\org\codehaus\plexus\plexus-comp
iler-javac\2.2\plexus-compiler-javac-2.2.jar:C:\Users\Sadhana\.m2\repository\org
\codehaus\plexus\plexus-compiler-manager\1.8.1\plexus-compiler-manager-1.8.1.jar
:C:\Users\Sadhana\.m2\repository\org\codehaus\plexus\plexus-compiler-manager\2.2
\plexus-compiler-manager-2.2.jar:C:\Users\Sadhana\.m2\repository\org\codehaus\pl
exus\plexus-component-annotations\1.5.5\plexus-component-annotations-1.5.5.jar:C
:\Users\Sadhana\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-
alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar:C:\Users\Sadh
ana\.m2\repository\org\codehaus\plexus\plexus-container-default\1.5.5\plexus-con
tainer-default-1.5.5.jar:C:\Users\Sadhana\.m2\repository\org\codehaus\plexus\ple
xus-interactivity-api\1.0-alpha-4\plexus-interactivity-api-1.0-alpha-4.jar:C:\Us
ers\Sadhana\.m2\repository\org\codehaus\plexus\plexus-interpolation\1.13\plexus-
interpolation-1.13.jar:C:\Users\Sadhana\.m2\repository\org\codehaus\plexus\plexu
s-io\2.0.1\plexus-io-2.0.1.jar:C:\Users\Sadhana\.m2\repository\org\codehaus\plex
us\plexus-utils\1.0.4\plexus-utils-1.0.4.jar:C:\Users\Sadhana\.m2\repository\org
\codehaus\plexus\plexus-utils\1.5.1\plexus-utils-1.5.1.jar:C:\Users\Sadhana\.m2\
repository\org\codehaus\plexus\plexus-utils\2.0.5\plexus-utils-2.0.5.jar:C:\User
s\Sadhana\.m2\repository\org\codehaus\plexus\plexus-utils\2.1\plexus-utils-2.1.j
ar:C:\Users\Sadhana\.m2\repository\org\codehaus\plexus\plexus-utils\3.0\plexus-u
tils-3.0.jar:C:\Users\Sadhana\.m2\repository\org\eclipse\jetty\jetty-http\8.1.15
.v20140411\jetty-http-8.1.15.v20140411.jar:C:\Users\Sadhana\.m2\repository\org\e
clipse\jetty\jetty-io\8.1.15.v20140411\jetty-io-8.1.15.v20140411.jar:C:\Users\Sa
dhana\.m2\repository\org\eclipse\jetty\jetty-util\8.1.15.v20140411\jetty-util-8.
1.15.v20140411.jar:C:\Users\Sadhana\.m2\repository\org\eclipse\jetty\jetty-webso
cket\8.1.15.v20140411\jetty-websocket-8.1.15.v20140411.jar:C:\Users\Sadhana\.m2\
repository\org\seleniumhq\selenium\selenium-api\2.45.0\selenium-api-2.45.0.jar:C
:\Users\Sadhana\.m2\repository\org\seleniumhq\selenium\selenium-chrome-driver\2.
45.0\selenium-chrome-driver-2.45.0.jar:C:\Users\Sadhana\.m2\repository\org\selen
iumhq\selenium\selenium-firefox-driver\2.45.0\selenium-firefox-driver-2.45.0.jar
:C:\Users\Sadhana\.m2\repository\org\seleniumhq\selenium\selenium-htmlunit-drive
r\2.45.0\selenium-htmlunit-driver-2.45.0.jar:C:\Users\Sadhana\.m2\repository\org
\seleniumhq\selenium\selenium-ie-driver\2.45.0\selenium-ie-driver-2.45.0.jar:C:\
Users\Sadhana\.m2\repository\org\seleniumhq\selenium\selenium-java\2.45.0\seleni
um-java-2.45.0.jar:C:\Users\Sadhana\.m2\repository\org\seleniumhq\selenium\selen
ium-leg-rc\2.45.0\selenium-leg-rc-2.45.0.jar:C:\Users\Sadhana\.m2\repository\org
\seleniumhq\selenium\selenium-remote-driver\2.45.0\selenium-remote-driver-2.45.0
.jar:C:\Users\Sadhana\.m2\repository\org\seleniumhq\selenium\selenium-safari-dri
ver\2.45.0\selenium-safari-driver-2.45.0.jar:C:\Users\Sadhana\.m2\repository\org
\seleniumhq\selenium\selenium-support\2.45.0\selenium-support-2.45.0.jar:C:\User
s\Sadhana\.m2\repository\org\sonatype\plexus\plexus-build-api\0.0.4\plexus-build
-api-0.0.4.jar:C:\Users\Sadhana\.m2\repository\org\testng\testng\6.1.1\testng-6.
1.1.jar:C:\Users\Sadhana\.m2\repository\org\w3c\css\sac\1.3\sac-1.3.jar:C:\Users
\Sadhana\.m2\repository\org\webbitserver\webbit\0.4.14\webbit-0.4.14.jar:C:\User
s\Sadhana\.m2\repository\org\yaml\snakeyaml\1.6\snakeyaml-1.6.jar:C:\Users\Sadha
na\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar:C:\Users\Sadhana\.m2\re
pository\xalan\serializer\2.7.1\serializer-2.7.1.jar:C:\Users\Sadhana\.m2\reposi
tory\xalan\xalan\2.7.1\xalan-2.7.1.jar:C:\Users\Sadhana\.m2\repository\xerces\xe
rcesImpl\2.11.0\xercesImpl-2.11.0.jar:C:\Users\Sadhana\.m2\repository\xml-apis\x
ml-apis\1.4.01\xml-apis-1.4.01.jar
[echo] compiling...
[javac] C:\Users\Sadhana\Workspace\Quiker\quiker\build.xml:67: warning: 'inc
ludeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
for repeatable builds
[javac] Compiling 14 source files to C:\Users\Sadhana\Workspace\Quiker\quike
r\build

run:
[testng] [TestNG] Running:
[testng] C:\Users\Sadhana\Workspace\Quiker\quiker\src\test\resources\testng
.xml
[testng]
[testng] Executing - Signin
[testng] Executing OpenBrowser
[testng] Quiting driver instance
[testng] Executing - Signin
[testng] Executing OpenBrowser
[testng] Starting ChromeDriver (v2.9.248315) on port 12313
[testng] Quiting driver instance
[testng]
[testng] ===============================================
[testng] suiteA
[testng] Total tests run: 2, Failures: 2, Skips: 0
[testng] ===============================================
[testng]
[testng] The tests failed.

BUILD SUCCESSFUL
Total time: 14 seconds

C:\Users\Sadhana\Workspace\Quiker\quiker>

M
Reply on 06/10/2015

I'm running your project, but I can't find anything wrong. I don't know why it is not running.

M
Reply on 06/10/2015

got your problem.

replace this.
<property name="ws.jars" value="${user.home}/.m2/repository/"/>

with this.
<property name="ws.jars" value="D:\libs"/>

I made a folder libs with all the jars(testng, selenium etc.) inside of it.

M
Reply on 06/10/2015

But I am using maven and ant together.
When I use direct path it works for ant , what is the problem with maven repository as a reference folder?

Also I want to use ant for xslt reports purpose.

M
Reply on 07/10/2015

Did you get any solution to this?

M
Reply on 11/10/2015

sorry for the delay.

you have to use maven ant task http://maven.apache.org/ant-tasks/examples/install-deploy.html
to read the jar files in ant.

M
Reply on 12/10/2015

Thanks for the solution , but I could no get the exact steps to implement this.

M
Reply on 12/10/2015

I'm working on exact steps but it will take me little a time I am actually swamped.

M
Reply on 30/10/2015

Did you get the exact steps by any chance?

M
Reply on 17/11/2015

I'm sorry I didn't get the chance.

did you use maven ant task by yourself?