| || |
Problem in setting Agent timeout
i m working on silktest to test MFC win32 bit application developed on VC++, Application under test is an image processing application. Here time taken by each testcase cannot be predicted in advance since it depends on the inputs given. Now when after giving input values in the input dialog box it starts processing (running progress bar in display) but silktest agent waits only till the timeout (say 5 sec default) is specified in Agent option(and not till the process is completed). So I am not able to complete the process successfully since the silktest agent timesout giving error. I want to set the Agent time out delay dynamically or is there any other option? I have increased the agent time out to 1 min. it works for the testcase whose process time is less than 1 min, but not with the other whose procesing time is more than 1 min.
However wht i noted is above specified problem occurs in modeless dialog box. whereas with modal dialog box it is working correctly.. It is indeed so?
thanx in advance...
Re: Problem in setting Agent timeout
Use: Agent.SetOption(OPT_WINDOW_TIMEOUT, nTimeout)
You can insert before a call to a control that takes a long time nTimeout = 75 (75 seconds) and then reset to a reasonable nTimeout = 8 after that call.
You can also use a while statment:
-----//wait for as long as it takes...
//once window disappears, next statement will execute