SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,730
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    is there a call trace in vuGen?

    My profile:
    http://www.sqaforums.com/showflat.ph...;Number=401269

    With enough printf messages, I can pretty well follow my call flow.
    <font class="small">Code:</font><hr /><pre>
    ...
    Ending action startup.
    Starting action Login.
    ...
    ... multiple calls in Login to encodeStringChar()
    ...
    pwdcrtl.c(181): Error: encodeStringChar() buffer overrun
    </pre><hr />

    But it would seem we don't want a ton of print messages, as that will slow things down.

    So, armed with an error entry in the Replay Log, such as the one above, can I ask vuGen for a call trace back to the start of the test run? (I am asking in the context of debugging new scripts and running with a single user).

    -Thanks, Terry Horwath

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    253
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    Never seen it, and I doubt it.

    I've gotten around it by setting debug statements and commenting them out when it's showtime.

    Alternatively, you can set a DEBUGON macro at the beginning of your script and perform something like:

    <font class="small">Code:</font><hr /><pre>
    if(DEBUGON)
    lr_output_message("whatever");

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Posts
    1,838
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    You can use the C interpreter trace option (in version 230 or higher) to
    debug your Vuser scripts. The ci_set_debug statement allows trace and
    debug to be turned on and off at specific points in the script.
    ci_set_debug(ci_this_context, int debug, int trace);
    For example, you could add the following statements to your script:
    ci_set_debug(ci_this_context, 1, 1) /* turn ON trace &amp; debug */
    ci_set_debug(ci_this_context, 0, 0) /* turn OFF trace &amp; debug */

    This is from Version 9.0LR vugen manuals and you need to check if this works with your versions.You can download it from support site.

  4. #4
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,730
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    Thanks everyone. I am already using Dan's technique. Will printf() never die?.

    -Terry

  5. #5
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    [ QUOTE ]
    ... Will printf() never die?.

    [/ QUOTE ]It will at about the same time as "Hello World!".

  6. #6
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    Or as "foo()"

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    253
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    [ QUOTE ]

    You can use the C interpreter trace option (in version 230 or higher) to
    debug your Vuser scripts. The ci_set_debug statement allows trace and
    debug to be turned on and off at specific points in the script.


    [/ QUOTE ]

    Wow. This is news to me. Have you found this useful kiran?

  8. #8
    Senior Member
    Join Date
    Dec 2006
    Posts
    1,838
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: is there a call trace in vuGen?

    Not yet tried as i feel this is applicable only in LR9.0,waiting for right script to give a try.

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.69%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:12 PM.

Copyright BetaSoft Inc.