Forum Discussion
Do you get the suddenly random timeout with the code I provided?
Your code would have decreased the timeout for each object as it iterated the array so I could see that failing "seemingly at random".
If it still fails with my supplied code:
You can adjust the Method Invoke Timeout under your project settings > open applications to see if that helps.
It still fails with your code as well...
I tried changing the 'Method invoke timeout, ms:' from the default of 3000 up to 30000.
That was a good idea, I didnt know about that timeout setting, but unfortunately I has not corrected the issue..
I looked at the log for the steps this time rather than the report.
I noticed this:
"TestComplete (TestExecute) was stopped, because the specified timeout for the run elapsed. The following error occurred: The execution time specified in the command line has expired."
Is it possible that because I am using a trial license of TestExecute ( I am working on a proof of concept), that there is a timeout passed via the command line??
Or maybe it could be something that is getting passed from QAComplete... hmmm...
- Ryan_Moran11 years agoValued Contributor
Check to make sure you don't have a timeout specified under View>Organize Tests>[Timeout,min] column of your test item.
- jmcwhinney11 years agoContributor
jmcwhinney wrote:Is it possible that ................that there is a timeout passed via the command line??
Or maybe it could be something that is getting passed from QAComplete... hmmm...
That seems to have been the issue.... I had the default timeout of 30 set in QAcomplete where I was calling the test..
Cheers,
- James
- Ryan_Moran11 years agoValued Contributor
It's always the simplest of solutions that are the most difficult to find :manlol:.
Glad it's solved anyhow.