Forum Discussion

darshanyshah's avatar
darshanyshah
Occasional Contributor
11 years ago

Time Logging assistance

Hi,



I am new to test complete and wanted assistance for which i was unable to find a suitable answer.



I am using it for a desktop application. After the test is run and a detailed report is generated- I would like to have  detailed time report for time taken to execute each step.

Let's say for example: 

Launch application- 1.5seconds

Login - 1 second

Create Project- 2 seconds.



I understand that it does give a timestamp at each step when it started and when it ended but a way to generate something like the above example would be great. Because when i am delaing with 20 scripts with an average of 15steps each it is just a little annoying to look at start and end times to asceratin the exact time taken at each step.. Any assistance for the above mentioned report would really be appreciated.



Darshan Shah

5 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    support.smartbear.com/viewarticle/59313



    I used this article to build a clock that I can call.  I used it for pushing elapsed time to the indicator so I know how long my main test has been running, but you could easily rig up something to zero out and restart the time at the beginning of a test and then log it at the end.
  • darshanyshah's avatar
    darshanyshah
    Occasional Contributor
    Marsha



    Thanks for your reply. But i am looking for something that will give me processing time taken at each step as i mentioned in my original post.



    This time log can be printed in the final logs or wherever.

    Example" Simple desktop application



    Launch Application-1sec

    Log In- 2 seconds

    Create project- 2 seconds

    Sign out- 1 sec.



    I am looking for something like this. Let me know if this is possible. I appreciate your help.



    Darshan Shah
  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    Hi Darshan -

     


    Take the examples from either my link or Tanya's link to build a "mytimer" routine that tracks elapsed time.  In your case it would apply something like this:



    set mytimer = now

    launch application

    log "launch application time = "  mytimer

    set mytimer = now

    login

    log "login time = " mytimer

    set mytimer = now

    create project

    log "create project time = " mytimer

    set mytimer = now

    signout

    log "signout time = " mytimer

  • darshanyshah's avatar
    darshanyshah
    Occasional Contributor
    Hi marsha and tanya,



    I appreciate both your replies. Thanks for your help. I will try both and post my results for the same.



    Darshan