How to increase TestNG timeout limit

184 views
Skip to first unread message

Abstract

unread,
Apr 24, 2012, 6:09:56 PM4/24/12
to testng...@googlegroups.com

Hi all,

My TestNG tests timeout on Hudson after an hour (default testng timeout behavior?). Is there a way to increase this timeout limit?

I’ve done following in build.xml file but it didn’t change anything;

       <!-- maximum total time in milliseconds (3 hours) for all tests to run, over-writing default of 60 minutes  -->
       <property name="testng.timeOut" value="10800000"/>

     
       <target name="run-tests" depends="test-compile, testng.xml.fileset.check" unless="testng.xml.fileset.run">
               <testng suitename="abc"… timeOut="${testng.timeOut}" dumpCommand="true">                  
                 …               
               <echo message="From first run: unitTest.failure = ${unitTest.failure}" />
       </target>

Reply all
Reply to author
Forward
0 new messages