QTP QuickTest Professional
Test your knowledge of QTP QuickTest Professional software testing automation tool including methods, object repositories, actions, and scripting
Questions
Which file format is used by QTP to export and import object repositories.
- XML
- MTS
- TSR
- XLS
In general which object repository is easiest to use when we are creating simple record and run tests.
- Shared
- Local
- Both
- None of the above
How can you retrieve an object's properties?
- By recording
- Object Spy
- Net Spy
- Step Generator
SetTOProperty changes the property values used to identify an object during the test run. It also effects the values saved in Object Repository for the object.
- True
- False
After creating or editing an object repository XML file. Which Quick test functionality is recommended to use in order to verify, our file confirms to QTP object repository scheme.
- Scheme Verification
- XML Validation
- XML Verification
- Scheme Validation
What extensions are supported by QTP, if we want to add a resource for function library?
- QFL
- VBS
- No Extension
- BAT
What is the file extension of Shared object repository file in QTP?
- mtr
- mts
- qfl
- tsr
How to Import data from a .xls file to Data table during Runtime?
- Datatable.Import
- Excel.GetSheet
- DataTable.GetSheet
- DataTable.ImportSheet
Following are types of Actions available in QTP?
- Non-reusable
- End to End
- Reusable
- External
How to retrieve runtime property of an object?
- GetToProperty
- GetProperty
- GetRoProperty
- ObjectProperty
How you will comment a line in QTP?
- ' (Single Quote)
- /*
- //
- REM
Your application contains objects that behave like standard objects but are not recognized by QuickTest. How you will handle them?
- Use descriptive programming.
- Use QTP record option.
- Use virtual objects
- None of above
How do you convert the string to upper case?
- UpperCase
- UpCase
- UCase
- Upper
What statement will end execution of current action?
- Exit
- ExitAction
- Exit Action
- Exit Now
VBScript classes are supported by QTP?
- True
- False
Which of following statement is true while instantiating a VBScript class.
- CreatePage = New Pages
- New CreatePage = Pages()
- Set CreatePage = New Pages
- Dim CreatePage = New Pages
What is number of parameters required for using Reporter.ReportEvent statement.
- 2
- 3
- 4
- 0
What is method to count number of rows in a WebTable.
- Rows
- RowCount
- GetRows
- None of the above.
Following method exports a specified sheet of the run-time Data Table to the specified file.
- DataTable.ExportSheet
- DataTable.Exports
- DataTable.Export
- All of the above.
Which of the following is NOT a reasonable test objective
- to find faults in software
- to prove that software has no faults
- to give confidence in the software
- to find performance problems