Forum Discussion

zineo's avatar
zineo
Occasional Contributor
14 years ago

1000000ms was the maximum for Auto-wait Timeout ?

Is it 1000000ms was the maximum for Auto-wait Timeout ?



Because I have a case that while the web application creating billing, it might take 5 to 60 minutes to complete.

But i found out that the Auto-wait Timeout have the limitation of 1000000ms.

Is it have any other solution for this kind of case?
  • Hi Zineo,



    There are several ways to wait until your application is in a specific state. For example, you can use the aqUtils.Delay method to stop the test execution for a definite number of milliseconds. Another way is to wait for a specific object's property which is supposed to change when your application is in the ready state. I recommend that you refer to the Waiting for Object State Changes help topic for details about possible approaches.
  • zineo's avatar
    zineo
    Occasional Contributor
    As your suggestion, I have add on a coding on my KeywordTest. But there is a problem I facing that when it will get the results that "The object was not exist." when start running this function. Not even until Delay or LogMessage but just stop before it that seems like can't found the object to run this scripts. But if this will happen, is it means that this function is can't working for track the Object?





    Scripts:

    -------------



    function Waiting_Convert()

    {

      btn = Sys.Process("iexplore", 2).Page("http://192.168.93.124:8082/subPartnerInvoiceConversion.do?does=convert*").Form("subPartnerInvoiceConversionForm").Table(0).Cell(0, 0).Table(0).Cell(0, 0).TextNode(0);

      while(! btn.Enabled)

        aqUtils.Delay(1000); // 1 sec delay

        Log.Message("Delay 1 Round!")

    }







    I had attached with the error results print screen.
  • Hi Zineo,



    If you get an "Unable to find the object" error, the link to the corresponding help topic should be posted to the Additional Information panel of the test log. Have you tried following the suggestions provided in the help topic, the link to which has been posted to your test log? What were the results? If the help topic was not enough for you to find the cause of the problem, please let us know what problems you faced when diagnosing the problem so that we could improve our documentation.



    BTW, the list of the corresponding help topics (depending on specific error messages) can be found in the Handling the 'Object Not Found' Errors help topic. Suggestions provided in the Handling the 'Object Does Not Exist' Error topic are usually enough to diagnose such problems.