TestComplete not waiting for page loads when api call done with different variables
Changes to a textbox on the page we are testing results in 2-4 api calls to the same url but with different variables
/configure/ConfigureServlet?action=getFlatOptionStore¤tOrder=-140¤tItem=1.00
/configure/ConfigureServlet?action=updateSingleSegment&option=UOM
/configure/ConfigureServlet?action=validateCfg¤tOrder=-140
/configure/ConfigureServlet?action=updateSingleSegment&option=WIDTH.OPT
Listed above are only the beginning of the url's and not all of them.
We enter text into the 1st textbox, tab to the next textbox and the api calls are made, when we get to the 3rd textbox the api calls from the 1st return and delete what we have in the 2nd textbox and our tests are unable to complete. We have been adding delays to our keyword tests but this has been hit/miss because some of our wait times for the api calls to finish can be 10 seconds. Thanks
I take it these are AJAX type calls triggered within the page logic somewhere? So it's not a full page reload so you can't check the page readystate?
Are there any on-screen cues or indicators you can use? How does the user know these calls are complete? You mention about a textbox being cleared, is that as a result of the calls?
Failing that, do any properties on the page, or the objects on it change, when the calls are made/complete?
In short, you need to find something you can see/lookup/inspect that keeps you in line with these calls ....