Saturday, January 5, 2008

QTP Questions - 11

1. Can we mask a Code In .vbs file so that it is not viewable to others?

1. VBS file is visible in notepad only not in QTP. we can add .vbs files in QTP, test menu->setting->Resource Tab.

You also try to open .vbs file in QTP if it's open then you only get your questions answar.

2. I have n iterations of test run in QTP. I want to see the results of not only the latest (‘n’th) iteration but also all the previous iterations (1to ‘[n-1]’th)

1. In test results window just open the test for which u have n iterations. there will be a combo that will show u the iterations. select the desired iteration and the result for that particular iteration is displayed in the test results summary window.

2. For this i am sending simple answer that is Click on the icon of tree view it shows all the results of all iterations

3. While Executing the QTP script, select "New Run Results folder" option from the Run dialog box and select the path to save the result file. So that, we can verify previous iterations results also.

4. The results are for all the runs are stored in different folders. You can access them individually. I am not sure, but there must be some way to manage the results of the test runs. It would be nice if someone can throw some light on that.

3. How to call from one action to another action in QTP?

1. The syntax for calling an Action in another Action is

Call RunAction("Action2", oneIteration)

2. We can call an action either by using "call to existing action" and "call to copy action" also, both are are available in the Insert menu.(Right click also will give the options)

The difference between call to existing action and call to copy action is that in case of call to existing action we can't make any modifications to the code and ObjectRep of the action that is called.In case of call to copy we can modify both the code and OR

3. There is one more option. You can right click on the perticular position, where you want to call the script, and then select Actions-->Insert Call to Existing.

4. Using "Call to Existing Action" we can call one action from another action.

Go to Insert ->select Call to Existing Action

Select which action wants to call.

4. How can we do block commenting in QTP?

1. Before you gave the answer try it if it was worked then only post the answer because somany guys follows this site

upto QTP8.2 Version ther is no option for block commenting in QTP

Don't think in other way

2. Selecting the block and press (ctrl + M)

5. What is the Difference Between Bit map Check point & Image Check point
Please explain in detail

Text & text area check point?

1. For Bit map Chkpoint we need not have any image, It goes by the screen area.

But for image chk point we need to have an image.

No comments: