SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Member
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    257
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Script execution timer?

    Is there a sophisticated way to record the time it takes for my script to run? Currently I just put this at the beginning of the script

    cStartTime = Time
    Call MyReporterFunction(micDone,"Script Start Time","The script started at " & cStartTime,".","")

    and then I put this at the end of the script

    Dim cEndTime
    cEndTime = Time ' Return current system time.
    Call MyReporterFunction(micDone,"Script End Time","The script ended at " & cEndTime,".","")

    I just look at when it started and then when it ended. Is there a way to code this so that it will just say
    "Script took X minutes and Y seconds to complete"?

  2. #2
    Member
    Join Date
    Nov 2007
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    The result of QTP would usually list the 'Start' and 'End time' of the script run.

    In addition you can also insert transaction timer to your script.

  3. #3
    Member
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    257
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    [ QUOTE ]

    In addition you can also insert transaction timer to your script.

    [/ QUOTE ]

    Really? Can you tell me more about this? I've been looking for a way to record page/tansaction load times without having to buy LoadRunner. LoadRunner is overkill for a company like us.

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    On the QTP Insert drop-down menu you should see the Start Transaction & End Transaction Icons.

    Mark Smith.

  5. #5
    Member
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    257
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    [ QUOTE ]
    On the QTP Insert drop-down menu you should see the Start Transaction & End Transaction Icons.

    Mark Smith.

    [/ QUOTE ]

    Thanks! So what does the 'Wasted Time' refer to in the Results screen? Does that refer to the Wait statements that are in your transaction?

  6. #6
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    Whatever is relative to performance measurements -
    is not absolute time of Page loading or Transaction performed or any...
    Timers of any kind [or Start\End Transaction] can be useful only informatively and will give some information after multiple running of the same scripts on the same Environment to compare them roughly.
    There is lot of processes involved not to measured by Timers,
    Because Timer doesn’t separate certain thread from them to measure it explicitly.


    Janna

  7. #7
    Member
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    257
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    [ QUOTE ]
    Whatever is relative to performance measurements -
    is not absolute time of Page loading or Transaction performed or any...
    Timers of any kind [or Start\End Transaction] can be useful only informatively and will give some information after multiple running of the same scripts on the same Environment to compare them roughly.
    There is lot of processes involved not to measured by Timers,
    Because Timer doesn’t separate certain thread from them to measure it explicitly.


    Janna

    [/ QUOTE ]

    Does this mean that we shouldn't even bother using this as a form of performance testing? I know for a fact that our company won't pay for LoadRunner so I am looking for a poor man's version.

  8. #8
    Member
    Join Date
    Nov 2007
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    If you are using the "Transaction Timer" of QTP to do Performance testing, then you are headed in the wrong direction. As far as I know, these "transaction timers" will measure the script run time and not the performance of application.

    If you are looking for freeware version of performance tools, try JMETER.
    http://jakarta.apache.org/jmeter/

  9. #9
    Member
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    257
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    [ QUOTE ]
    If you are using the "Transaction Timer" of QTP to do Performance testing, then you are headed in the wrong direction. As far as I know, these "transaction timers" will measure the script run time and not the performance of application.

    If you are looking for freeware version of performance tools, try JMETER.
    http://jakarta.apache.org/jmeter/

    [/ QUOTE ]

    Thanks! I'll take a look at that.

  10. #10
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script execution timer?

    >Does this mean that we shouldn't even bother using this as a form of performance testing?<

    NO, No, NO...
    Not at all !
    I did not say that we should not use Timers totally.
    As opposite: we SHOULD. And we use them.
    I myself use different Timers for rough routines measurement.

    What I'm trying to say is:
    we have to understand nature of those Timers. That's it.
    We can not name it: Performance testing of Page Loading and
    give those Result numbers to the client or to Management as final performance statement to make some kind of resolution.
    But, using Timers build by build, run by run - you'll gather enough information to compare and can say for sure,
    for example:
    "this build is slower then previous, but faster then 3-4 builds ago"...
    OR
    "With this DataBase - page loading much faster, then with other"...
    OR
    On "WinXPsp2 it works slower then on Vista"...
    Something like that.

    And it will be absolutely correct statements, based on your every run measurements.
    In this case: it doesn't matter how many processes or threads, or additional components were involved.
    Matter is:
    EVERY TIME estimation was done IDENTICALLY by your script, you have the numbers to show and compare and you and anybody can analyze your numbers.
    Any judgment, based on such an understanding - will be absolutely correct and useful.

    Janna

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:58 PM.

Copyright BetaSoft Inc.