Tests are terminated after 24h

Ask general questions here.
mazak
Posts: 1
Joined: Mon Sep 26, 2022 12:24 pm

Tests are terminated after 24h

Post by mazak » Mon Apr 24, 2023 10:50 am

Hello everyone,
my collection of automated tests is very large. The execution time exceeds 24 hours. And here is the problem, because after 24 hours the tests are interrupted. The test report is not generated, the following message appears in the RanorexAgentExecutor.log file:

Code: Select all

|DEBUG|Ranorex.AgentExecutor.Program|Watchdog did not find process 6124 and cancels main task.
|DEBUG|Ranorex.AgentExecutor.Program|Canceled by user.
|DEBUG|Ranorex.AgentExecutor.Program|Watchdog done.
|DEBUG|Ranorex.AgentExecutor.Program|Job 1061 canceled.
|DEBUG|Ranorex.AgentExecutor.Program|ExitCode: -5
The following entry appears in the console:

Code: Select all

[Error  ][User]: Unexpected exception occurred: System.TimeoutException: Process did not finish within the specified timeout of '1.00:00:00'.
   w Ranorex.Common.Process.ProcessRunner.RunShortProcess(Boolean showWindow, TimeSpan timeout, IList`1 appendToPath, String workingDir)
   w Ranorex.Core.Testing.AgentTestSuiteRunner.Run()
   w Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs, String testSuiteXml)
   w Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs)
 
Does Ranorex not allow to run a TestRun longer than 24 hours? If so, can it be set somewhere? Does anyone know how to do this?

Is it possible to add an entry like this in the rxsetting file:

Code: Select all

<testsuite.defaulttimeout>
        172800000ms
</testsuite.defaulttimeout>
is it a good track?

Sorry for my English :)