|
221. How Can An External Action Be Called?
Date Posted: 06/27/2012
Ans: This can be achieved by copying the Action X to Action Y. IN QTP there is an menu option called insert-copy of action to help accomplish this.
|
|
|
222. If An Error Occurs While A QTP Script Is Running, How Can You Obtain The Name Of The Object That Caused The Error?
Date Posted: 06/27/2012
Ans: To find the name of the object that caused the error, use the command
Err. Description. For example: msgbox “Error;” &err. Description.
|
|
|
223. How Do You Use QTP To Fetch Test Data From A Database?
Date Posted: 06/27/2012
Ans: In order to fetch test data from a database, an adobdb connection object must be connected to the database. The syntax for this command is the following:
Create Object (“Adodb.connection”).
|
|
|
224. Why Divide A Test Into Three Action Calls?
Date Posted: 06/27/2012
Ans: When you create a new test, it contains a call to one action. By dividing your tests into calls to multiple actions, you can design more modular and efficient tests.
|
|
|
225. How To "Turn Off" QTP Results After Running A Script?
Date Posted: 06/27/2012
Ans: Go to "Tools > Options > Run Tab" and Deselect "View results when run session ends". But this suppresses only the result window, but will be created and can viewed manually which cannot be restricted from getting created.
|
|
|
226. IF We Use Batch Testing. The Result Shown For Last Action Only. In That How Can I Get Result For Every Action?
Date Posted: 06/27/2012
Ans: You can click on the icon in the tree view to view the result of every action.
|
|
|
227. What Are The Features & Benefits Of Quick Test Pro (QTP)..?
Date Posted: 06/27/2012
Ans:
1.Key word driven testing.
2.Suitable for both client server and web based application.
3.VB script as the script language.
4. Better error handling mechanism.
5.Excellent data driven testing features.
|
|
|
228. Have You Ever Written A Compiled Module? If Yes Tell Me About Some Of The Functions That You Wrote.
Date Posted: 06/27/2012
Ans: I used the functions for capturing the dynamic data during runtime. Function used for capturing desktop, browser and pages.
|
|
|
229. How To Get The No. Of Description Defined In A Collection?
Date Posted: 06/27/2012
Ans: obj_ChkDesc.count ‘will return 2 in our case.
|
|
|
230. How To Handle Run-time Errors?
Date Posted: 06/27/2012
Ans: On error resume next: causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure.
|
|