When do we use breakpoints in qtp




















This is helpful for debugging issues that may be occurring deep in one of your function libraries. A call stack is a view of the nested sequence of functions that have led to a certain point in your test code. For example:.

This can be helpful if you're debugging and are paused inside a function and are not exactly sure how the path of execution got you to that point. It can help you get your bearings if you're debugging long, nested functions. Just remember that the stack reads from the bottom up. The console can be a pretty powerful debugging tool. While you are debugging and UFT is paused on a line of code, you can perform multiple activities, like:.

You can interact with the console by typing a line of code to be run in the context of your suspended run session. Let go back to our original code example:.

Basically, what you've done is modified the variables values at run-time. The y variable now contains a value of 2 and the z variable now contains a value of 2. How cool is that? The last GUI-based debugging option is the Watch pane. This allows you to set specific values to watch for selected variables and expressions in your test's suspended run session.

In a real world test script, you might have many variables but you may only be interested in 1 or 2 or them for your debugging purposes. This pane allows you to specify only the variables that you'd like to watch during the execution of your tests. For example, say we only want to watch the Y value in our test example:.

This is really useful, because if you're debugging code that has a lot of variables you can define just the few that you are interested while debugging. Debugging can be tough. Then, when you run your component or function library, QTP runs the step containing the breakpoint, instead of stopping at it. When you enable the breakpoint again, QTP pauses there during the next run. This is particularly useful if your component or function library contains many steps, and you want to debug a specific part of it.

You can enable or disable breakpoints individually or all at once. It is used to stop the execution temporarily As per my knowledge this is the correct answer anybody knows the correct answer please send to this id bhavanamlakshmareddy gmail. Post New Answer. Can someone tel additonal features which has been included under QTP 9. Working With The Variables Tab. Working With The Command Tab.

LoadRunner Tutorial. WinRunner Tutorial. LoadRunner Interview Questions. WinRunner Interview Questions. QTP Interview Questions. Automation Testing Interview Questions. Rational robot Interview Questions. LoadRunner Practice Tests. WinRunner Practice Tests.



0コメント

  • 1000 / 1000