|
351. What Properties Can Be Used For Identification Of Page And Browser When Using Descriptive Programming?
Date Posted: 06/27/2012
Ans: Here are a few examples to identify a page or browser.
-
Logical name of browser
-
Logical name of page
-
Browser (“my browser”)
-
Page (“my page”)
|
|
|
352. What Exceptions Can Be Handled Using The QTP Recovery Scenario Manager?
Date Posted: 06/27/2012
Ans: Recovery scenario manager can be used with 4types of trigger events. They include the following.
-
When an open application fails
-
When a property of objects changes states or values
-
The application of pop-up window in an open application during test execution
-
When a test step is unsuccessful
|
|
|
353. If The Error Occurs When QTP Script Is Running, How Can You Obtain 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, we can use command
Err. Description. For example: msgbox “Error”: &err. Description
|
|
|
354. How Can Parameters Be Added To A Data Sheet?
Date Posted: 06/27/2012
Ans: To add a run time parameters to a data sheet use the following command:
Data Table (“Column name”, dtGlobalsheet/local sheet) = “column value”
However, you will be able to see the parameter when the script is running and will not be available in the data table when script is stopped.
|
|
|
355. How Can You Open A Window In Notepad Without Recording A Test Without Using The SystemUtil.Run Command?
Date Posted: 06/27/2012
Ans: Another option that can be used to open the notebook is Shell Object command. For example
Set b= Wscript. Create object (“Wscript.shell”) b.run “notepad.exe”
|
|
|
356. Provide An Example Using Create Object?
Date Posted: 06/27/2012
Ans: Create object is a command that creates and returns an automation object reference. An example of it is
Dim Excel sheet Set Excel sheet= Create object (“Excel. Sheet”)
|
|
|
357. What Is An Output Value?
Date Posted: 06/27/2012
Ans: The output value is the value that obtained during the testing session. It is added to the run time table and can be used as an input value in another part of testing.
|
|
|
358. How Is Exception Handling Done In QTP?
Date Posted: 06/27/2012
Ans: Recovery scenario manager is used for exception handling and it provides a wizard that guides the tester through recovery scenario. It has following sections
-
Triggered events
-
Recovery steps
-
Post recovery turn on
|
|
|
359. Provide Some Features And Benefits Of QTP?
Date Posted: 06/27/2012
Ans: Some of the features and benefits of QTP are
-
It can operate as a standalone tool
-
It can be integrated in to Quality centre
-
It can be integrated in mercury business processing
-
It has a keyword driven testing technology, which allows quicker test creation, greater data driven capability and easier maintenance.
|
|
|
360. What Can Be Done If Shared Object Repository Storage Limit Is Exceeded?
Date Posted: 06/27/2012
Ans: If the 2MB limit of shared object repository is exceeded, the advanced object repository can be used.
|
|