Forum Discussion

stega's avatar
stega
Contributor
11 years ago

Test actions time

Hi All, I want to get the time of each actions i make in the automated test. For example when i click on a button, how much does it take to reload the page, or a pop-up window appears. Is there a f...
  • marin's avatar
    11 years ago
    Hello Gabor,



    you could use a loop with a delay to check certain attributes/values/state of an object.

    Sth. like this for existence of an object -> each loop is delaying the execution for 100 miliseconds, and the variable pageLoadingTime would give you the number of iterations before test object is recoginzed as existing:





    var pageLoadingTime = 0;

      do

      {

        aqUtils.Delay(100);

        pageLoadingTime += 1;

        obj = objBrowser.myPage;

      }

      while (!obj.Exists)





    Regards,



    Marin