SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Guest

    Debug through testplan

    Hi,
    I have a testplan file through which I am passing some values to my testcases. I want to debug my testcases, but I can't do it through the testplan file. When I put a break point in my testcase file and try to run it, it says, script does not contain a main function. What can I do so that I can debug my testcase file?

    Thank you for your response
    KK

    ------------------

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Debug through testplan

    1. Put a main() function in your .T file.

    2. Call your testcase from it passing standard non-plan variables.

    3. Run debug from the .T file setting a break point on the testcase.

    4. When the test works to your satisfaction, run it from the plan.


    John



    ------------------

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Location
    Manchester, NH
    Posts
    121
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Debug through testplan

    You can also put your cursor on the testcase line in the testplan and choose the "Run or debug a single testcase" toolbar icon (or choose Run\Testcase). You'll get a dialog where you can choose debug. That works for me in 6.0.

    ------------------
    Adam Kuczkowski
    akuczkowski@frametech.com

  4. #4
    Junior Member
    Join Date
    Dec 2001
    Location
    Seminole, FL
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Debug through testplan

    You can go to the testcase and choose run testcase as was mentioned above when the dialog comes up, you will have a field to enter your arguments to the testcase. Enter the values then as was mentioned press the debug button. Works in 5.x Silk versions as well.

    Jay

    ------------------

  5. #5
    Guest

    Re: Debug through testplan

    Thank you for your responses. I got it working.



    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 12:32 PM.

Copyright BetaSoft Inc.