Проблема с отчетом TestNG Results

jenkins
testng
java
reporting
maven
Теги: #<Tag:0x00007fedbb7901e8> #<Tag:0x00007fedbb790080> #<Tag:0x00007fedbc68ff40> #<Tag:0x00007fedbc68fdd8> #<Tag:0x00007fedbc68fc48>

(Junior Tester) #1

Не могу настроить TestNG Results.
Путь к отчету указан верно /Users/Shared/jenkins/workspace/TestProject/QA.Automation/reports/testng-results.xml

TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: /Users/Shared/jenkins/workspace/TestProject/QA.Automation/reports/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.

(Sergey Korol) #2

С чего вы взяли, что верно? Используйте относительный путь, а не абсолютный. Лишите себя лишних проблем. А дефолтный вариант разве не работал?


(Junior Tester) #3

Не работал.

Looking for TestNG results report in workspace using pattern: **/reports/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.

(Максим Малунов) #4

Гм . А можно уточнить структуру проэкта . Я так понимаю не pom file .


(Junior Tester) #5

build.xml

<?xml version="1.0"?>
<project name = "TestProject" default="build" basedir=".">
	<property name = "lib" value = "${basedir}/lib"/>
	<property name = "bin" value = "${basedir}/bin"/>
	<property name = "src" value = "${basedir}/src"/>
	<property name = "reports" value = "${basedir}/reports"/>
	<property name = "message" value="is in progress..."/>	
	<taskdef resource="testngtasks" classpath="${lib}/testng-6.8.jar"/>
	 <path id="classpath">
	      <fileset dir="lib">
	        <include name="**/*.jar"/>
	      </fileset>
	 	<path path = "${bin}"/> 
	  </path>
    <target name="build" description="Run build target" depends="run_testcases">
    	<echo message="build ${message}"/>
    </target>	
	<target name="clean" description="Remove bin folder">
		<delete dir="${bin}"/>
		<delete dir="${reports}"/>
	</target>
	<target name="create_bin" description="Create bin folder" depends="clean">
		<mkdir dir="${bin}"/>
	</target>
	<target name="compile" description="Run compile target" depends="create_bin">
		<javac srcdir="${src}" destdir="${bin}" classpathref="classpath" includeantruntime="false">
		  <include name="**/*.java"/>
		</javac>
	</target>	
  	<target name="run_testcases" depends="compile">
		<testng outputdir="${reports}" classpathref="classpath"> 
      		<xmlfileset dir="${basedir}" includes="testng.xml"/> 
    	</testng>
   	</target>
</project>

(Stan) #6

А можно еще и код репорта? https://issues.jenkins-ci.org/browse/JENKINS-16110


(Junior Tester) #7

Проблема решилась когда я почистила git репозиторий) всем спасибо....