In QTP what is the difference between Step-in, Step-out,
Step-over ?

Answers were Sorted based on User's Feedback



In QTP what is the difference between Step-in, Step-out, Step-over ? ..

Answer / ajreddy

DEBUGGING MODES

step in :
it can be used to execute the current line of the script. if
the current line is function or method than it call the
function or method but it vl not run.

step out:
it can be used to execute the function or method which is
called step into mode

step over:
it can be used to execute the current line of the script. if
the current line is function or method than it call the
function or method and execute that function

note: initially in design time step in only enable,
remaining 2 modes r disable. when ever vl select step in
mode than automatically remaining modes r enabled.

i think u cleared

AJreddy

Is This Answer Correct ?    9 Yes 2 No

In QTP what is the difference between Step-in, Step-out, Step-over ? ..

Answer / sumi

Step-in:Line by line execution

Step-over:which is used to speed up debugging..we can go
with step-over if we know perticular funtion is bug free
ex:
if script contains a loop means when we use step-over
option the loop wont be executed only the result of the
loop ill be displayed...

step-out:which is similar to step-in
ex:
if script contains a loop means when we use step-out option
the loop will be executed....

Is This Answer Correct ?    8 Yes 4 No

In QTP what is the difference between Step-in, Step-out, Step-over ? ..

Answer / kishore

DEBUGGING MODES

step in :
it can be used to execute the current line of the script. if
the current line is function or method than it call the
function or method but it vl not run the function.If we
want to run the function line by line we can use "step in"
(step out*) else if U want to run the complete function
once can use the "step over".

step out:
it can be used to execute the function or method which is
called step into mode.
note:If the control is at function or method call "step
out" complete function will rune at one .
If the the control is already in function or method "step
out" acts like "step in",that is execution will happen step
by step

step over:
it can be used to execute the current line of the script. if
the current line is function or method than it call the
function or method and execute that function

note: initially in design time step in only enable,
remaining 2 modes r disable. when ever vl select step in
mode than automatically remaining modes r enabled.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More QTP Interview Questions

Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com

0 Answers  


CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?

3 Answers   Polaris,


I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.

0 Answers  


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

0 Answers   Wipro,


What is the difference between qtp and selenium?

0 Answers  






How will you load few objects in Active Screen?

1 Answers  


where we save the scripts created in one project?

6 Answers   IBM,


When Object Repository is available what is the necessity of having Descriptive programming which needs more scripting efforts.

3 Answers  


Can a function return a dictionary object?

2 Answers   CG, Semantic Space,


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

0 Answers   Cap Gemini,


Is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?

1 Answers  


What is Associate Repository in QTP 9.2 ?

0 Answers  


Categories