Krishna Logo
qa training in canada now
Divied
Call: Anusha @ 1 (877) 864-8462

 

Latest News
Home Navigation Divied
INTERVIEW Navigation Divied QTP INTERVIEW QUESITONS
Showing 281 - 290 of 469 Previous | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Next
QTP INTERVIEW QUESITONS
 
281 How Can We Increase The Readability Of Our QTP Tests Scripts?
Date Posted: 06/27/2012


Ans: To increase readability, use With Statement.
You can instruct QTP to automatically generate with statements for the steps you record. When you select this option, statements are displayed in their normal format while recording. When you stop recording, the statements in all actions recorded during the current recording session are automatically converted to the with format.
To generate With statements automatically when you record:

1. Choose Tools > Options or click the Options toolbar button. The Options dialog box opens.
2. In the General tab, select Automatically generate "With" statements after recording.
3. Enter the minimum number of consecutive, identical objects for which you want to apply the With statement in the Generate "With" statements for __ or more objects box.
The default is 2.

Note: This setting is used when you use the Apply "With" to Script option as well as for the Automatically generate "With" statements after recording option.

For example, if you only want to generate a With statement when you have three or more consecutive statements based on the same object, enter 3.
4. Begin recording your test. While recording, statements are recorded normally. When you stop recording, the statements in all actions recorded during the current recording session are automatically converted to the With format.
The With statement has the following syntax.
With object
.....statement
.....statement
.....statement
End With

For example, you could replace this script:
Window("Flight Reservation").WinComboBox("Fly From:").Select "London"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "19097 LON "
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
with the following:
With Window("Flight Reservation")
.WinComboBox("Fly From:").Select "London"
.WinComboBox("Fly To:").Select "Los Angeles"
.WinButton("FLIGHT").Click
With .Dialog("Flights Table")
.WinList("From").Select "19097 LON "
.WinButton("OK").Click
End With 'Dialog("Flights Table")
End With 'Window("Flight Reservation")

 
 
282How Can We Incorporate Decision-making Into The QTP Tests?
Date Posted: 06/27/2012

Ans: Using conditional statements, you can incorporate decision making into your tests. Using loop statements, you can run a group of steps repeatedly, either while or until a condition is true. You can also use loop statements to repeat a group of steps a specific number of times.

After you insert a conditional or loop statement in the Keyword View, you can insert or record steps after the statement to include them in the conditional or loop block.

 
 
283How Can We Disable Smart Identification During The Run Session In QTP?
Date Posted: 06/27/2012

Ans: Selecting the Enable Smart Identification check box for a particular test object class instructs QTP to learn the property values of all properties specified as the object's base and/or optional filter properties in the Smart Identification Properties dialog box.
By default, some test objects already have Smart Identification configurations and others do not. Those with default configurations also have the Enable Smart Identification check box selected by default.

 
 
284 If I Give Some Thousand Tests To Execute In 2 Days What Do U Do?
Date Posted: 06/27/2012

Ans: Adhoc testing is done. It covers the least basic functionalities to verify that the system is working fine.

 
 
285Explain In Brief About The QTP Automation Object Model?
Date Posted: 06/27/2012

Ans: Essentially all configuration and run functionality provided via the Quick Test interface is in some way represented in the Quick Test automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in Quick Test have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the Quick Test automation object model, along with standard programming elements such as loops and conditional statements to design your program.

 
 
286What Are The Properties You Would Use For Identifying A Browser & Page When Using Descriptive Programming?
Date Posted: 06/27/2012

Ans: Name would be another property apart from title that we can use.

 
 
287What Are The Features & Benefits Of Quick Test Pro?
Date Posted: 06/27/2012

Ans: Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation zero-configuration Keyword Driven testing technology in Quick Test Professional 8.0 allowing for fast test creation, easier maintenance, and more powerful data-driving capability. Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution. Collapses test documentation and test creation to a single step with Auto-documentation technology. Enables thorough validation of applications through a full complement of checkpoints.

 
 
288Inserting A Call To Action Is Not Importing All Columns In Data Table Of Global Sheet. Why?
Date Posted: 06/27/2012

Ans:  Inserting a call to action will only Import the columns of the Action called.

 
 
289How To Make Arguments Optional In A Function?
Date Posted: 06/27/2012

Ans: This is not possible as default VBS doesn't support this. Instead you can pass a blank scring and have a default value if arguments are not required.

 
 
290How To Verify The Cursor Focus Of A Certain Field?
Date Posted: 06/27/2012

Ans: Use "focus" property of "GetRoproperty" method".

 
Showing 281 - 290 of 469 Previous | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Next
Shadow Bottom
 
 
© 2005 -