score:0
<!-- runs the file and generates reportng report for testng-->
<taskdef resource="testngtasks" classpath="${dependencies}/testng-6.9.9.jar" />
<target name="testng-execution" depends="jarextraction">
<testng testjar="${cashkarojar}" xmlpathinjar="local/${xmlfile}" classpathref="classpath" usedefaultlisteners="true">
<sysproperty key="env.url_key" value="ck_auto_dev"></sysproperty>
</testng>
</target>
score:1
i believe that the problem is due to the inclusion of <java jar="${jar.dir}/${ws.project.name}.jar" fork="true"/>
in your <target name="runs" depends="compile,jarcreation">
to fix this you need to remove the <java>
element from the <testng>
element and try again.
for more information on the available options, refer here
Source: stackoverflow.com
Related Query
- "testng doesn't support the nested "java" element."- while executing build.xml - JAR target
- Should I be editing Java files while only modifying the XML for Android?
- Running the suite from jenkins is throwing error of Element not found but same build passes smoothly when run as TestNG suite from Eclipse IDE
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Eclipse: The resource is not on the build path of a Java project
- Eclipse "this compilation unit is not on the build path of a java project"
- Moving the instruction pointer while debugging Java in Eclipse
- This compilation unit is not on the build path of a Java project
- What is the use of Order And Export tab in Java Build Path
- How to create a executable jar file for Testng and the runnnig point should be the Xml file
- How do I add a shortcut key to Eclipse 3.2 Java plug-in to build the current project?
- how to add an xml file to the java application's classpath in eclipse?
- What's the gradle equivalent of having another project in your Java build path in Eclipse?
- Eclipse IDE with Android - exceptions while opening XML files for the first time
- The resource is not on the build path of a java project?
- Eclipse - Disabling compiling of XML files while in Java perspective
- Can Android Studio Automatically Extract References From a Layout XML file into the Activity java file?
- Eclipse is executing the wrong Java file
- Compilation unit is not on the build path of a Java project
- What is the difference between setting the classpath and java build path in eclipse?
- I want to customize the build process while still using the Android Eclipse ADT plug-in
- Eclipse - Why the "Show Whitespace" toolbar item is grayed out in the XML editor but not in the Java one?
- Missing Project in the Java Build Path - Projects settings
- the superclass "javax.servlet.httpServlet" was not found on the Java Build Path
- Ant javac: package x does not exist, but i added the x.jar to the java build path libraries
- "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Deleting XML element in Java
- xml error due to servlet file Cannot find the declaration of element , Referenced file contains errors
- Shortcut key to switch between XML layout and the java class in eclipse (android )
- Which JRE version to use while making new Java Project in Eclipse and what are the drawbacks?
More Query from same tag
- Codeigniter not DLTK indexing in eclipse
- Eclipse and EGit
- Can't add mysql-connector-bin.jar to pom.xml
- HTTP Status 500 - Exception occuring at string to int conversion
- Trouble with delimiters in Eclipse 3.8.1
- including an exe file to jar
- I can't run JUnit in Eclipse for git project
- Java ambiguous type for method?
- why does this method take off the last letter in the string?
- Could not calculate build plan: Could not find artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
- Error in exporting JAR file in Eclipse coded in java
- Cannot install in Kepler due to org.junit4 dependency
- (pool-2-thread-5) Got error closing channel JBREM00206
- Eclipse Android Layout NullPointerException
- Eclipse 2022-03 RCP App can be debugged but the exported app fails to start
- How to redirect the console output into the GUI console view using eclipse plugin?
- Unauthorized Rovi TV Listings Service Soap 1.2
- Eclipse Galileo Repository Installation error
- How can I import a layout from another package in JavaFX?
- tomcat 8.0.36 server won't start
- Eclipse font/language error
- eclipse C++ code autocompletion (completion)
- Eclipse won't open the appearance preference
- Changes in code does not appear after making pull from git repository
- Need to override windows default file.separator without changing java code
- How to deploy Java/Spring application on my own system in Apache tomcat server.?
- Error while installing google plugin for Eclipse Mars.2
- Reading Properties file in Maven Java Project created by maven-archetype-quickstart
- When moving to Eclipse J2ee from regular, do I need to uninstall?
- What is the web xml plugin editor plugin in this example?