Skip to main content
Solved

TestSDK timing out on a long operation (processing screen)


Joe Schmucker
Captain II
Forum|alt.badge.img+2

I’m creating testing in the TestSDK and one of my operations runs over 12 to 15 minutes.  I’m getting a timeout error:

WaitTimeoutException: Timed out waiting for the WaitForLongOperationToComplete condition within the specified timeout: 360000ms

If I only run the process for a few records, it works fine so it is not a problem with the actual code in my project.  

Is there any way I can change this timeout limit or is this a “selenium” limitation?

Best answer by AaronB

Hi Joe,

You can set a custom time like this, replacing “Screen.” with your associated screen

            Screen.Details.WaitAction = () => Wait.WaitForCallbackToComplete(Wait.LongTimeOut * 4);
 

View original
Did this topic help you find an answer to your question?

4 replies

AaronB
Varsity II
Forum|alt.badge.img+1
  • Varsity II
  • 30 replies
  • Answer
  • November 2, 2023

Hi Joe,

You can set a custom time like this, replacing “Screen.” with your associated screen

            Screen.Details.WaitAction = () => Wait.WaitForCallbackToComplete(Wait.LongTimeOut * 4);
 


Joe Schmucker
Captain II
Forum|alt.badge.img+2
  • Author
  • Captain II
  • 455 replies
  • November 2, 2023

Hi Aaron.  

I tried this code:

                        MergeVendorsProcess.VendorsToMerge_grid.WaitAction = () => Wait.WaitForCallbackToComplete(Wait.LongTimeOut * 4);
                        MergeVendorsProcess.ProcessAll();
 

I got the same error message.  I guess I can break the processing into smaller chunks, but that would make the validation of the processing a little dirtier.

If that is what I must do, so be it.  

Thanks for taking the time to give me assistance! 

 

edit:  I tried setting the timeout to every grid in the wrapper.  No luck.  


Joe Schmucker
Captain II
Forum|alt.badge.img+2
  • Author
  • Captain II
  • 455 replies
  • November 5, 2023

I ended up breaking my processing into chunks to prevent timeouts.

I’m sure that @AaronB has the correct answer, but I was not able to get it to work.  Probably because I was doing something wrong.


Joe Schmucker
Captain II
Forum|alt.badge.img+2
  • Author
  • Captain II
  • 455 replies
  • January 4, 2024

In case anyone gets to this thread in the future, this worked.   Wait.LongTimeOut = 650000;

None of these worked.

//MergeVendorsProcess.Processing.WaitAction = () => Wait.WaitForCallbackToComplete(Wait.LongTimeOut * 4);
//MergeVendorsProcess.Processing.WaitAction = () => Wait.WaitForLongOperationToComplete(Wait.LongTimeOut * 4);
//MergeVendorsProcess.Processing.WaitAction = () =>  Wait.LongTimeOut = 650000;
//MergeVendorsProcess.Processing.WaitAction = () => Wait.WaitForLongOperationToComplete(650000);
 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings