• Thread Rating
    Rate this Thread
    Double click on boxes to rate this thread
  • Quick Test Pro Interview Question
  • About Debugging Tests and Function Libraries
    After you create a test or function library (including registered user functions), you should check that they run smoothly, without errors in syntax or logic. To debug a function library, you must first associate it with a test and then debug it from that test.
    To detect and isolate defects in a test or function library, you can control the run session using the Pause command as well as various step commands that enable you to step into, over, and out of a specific step.
    You can use the Start from Step command to begin your debug session at a specific point in your test. You can also use the Run to Step command to pause the run at a specific point in your test. You can set breakpoints, and then enable and disable them as you debug different parts of your test or function library.
    When the test or function library run stops at a breakpoint, you can use the Debug Viewer to check and modify the values of VBScript objects and variables. Also, if QuickTest displays a run error message during a run session, you can click the Debug button on the error message to suspend the run and debug the test or function library.
    You can also use the Run from Step command to run your test or function library from a selected step to the end. This enables you to check a specific section of your application or to confirm that a certain part of your test or function library runs smoothly. For more information, see Running Part of Your Test.
    While the test and function libraries are running in debug mode, they are read-only. You can modify the content after you stop the debug session (not when you pause it). If needed, you can enable the function library for editing (File > Enable Editing) after you stop the session. For more information, see Editing a Read-Only Function Library. After you implement your changes, you can continue debugging your test and function libraries.
    By Mukund - Sep 04 2009 Reply » Save » Print »

Login to post your reply