QTP Test Automation Fundamentals
Questions covering QTP/QuickTest Professional testing concepts including actions, test settings, data tables, object repositories, and VBScript programming for test automation.
Questions
Where do you mark an action as reusable?
- A. Action Settings
- B. Action Properties
- C. Action Run Settings
- D. Action Call Properties
which method for the DataTable utility object will allow you to retrieve information from the Data Table during a test run?
- A. Value
- B. Import
- C. GetCell
- D. GetValue
In Test Settings ->Run the Data Table iteration options are for which data sheet?
- A. Local
- B. Global
- C. Run-time Data Table
- D. Design-time Data Table
Where do you set the action iterations for a specified action?
- A. Action Settings
- B. Action Properties
- C. Action Run Settings
- D. Action Call Properties
What does the source property of a database checkpoint object represent?
- A. The SQL query
- B. The identification number of the database
- C. The number of rows returned from the query
- D. The connectionstring used to connect to the database
What are the available trigger event types?
- A. Pop-up window, object state, VBScript event
- B. Object State, VBScript event, Application crash
- C. Pop-up window, object state, test run error, QTP crash
- D. Pop-up win
what is the keyword used to define how the counter variable in a or lext loop increments?
- A. ++
- B. Next
- C. Skip
- D. Step
If you have a Virtual Object Collection stored on your machine, and you don't want to use it, what must you do?
- A. Disable Virtual Objects in Test Settings
- B. Remove the Collection from your machine
- C. Disable Virtual Objects in General Options
- D. Remove the Collections from the Resources list
What can you use to handle unpredictable testing exceptions?
- A. A Do Loop
- B. Recovery Scenario
- C. IFHEN statement
- D. Selectase statement
In which command can you associate a function library to a test?
- A. Run Options
- B. Test Settings
- C. View Options
- D. Function Definition Generator
What is created, by default, with each new action?
- A. Local Data Sheet, Global Data Sheet, Folder
- B. Local Object Repository, Local Data Sheet, Folder
- C. Global Data Sheet, Local Object Repository, Folder
- D. Local Data Sheet, Global Data Sheet, Local Object Repository
How do you close the database session after examining the results of an SQL query?
- A. Call the ADO.Close function
- B. Use the close method for the RecordSet object
- C. Set the RecordSet and Connection objects equal to Nothing
- D. Use the close method for the RecordSet and Connection objects
what are the two most commonly used ADO objects?
- A. Fields
- B. Execute
- C. Connection, RecordSet
- D. Open, ConnectionString
Choose the complete set of actions in QTP from the choices given below
- A. Existing action, new action, copy of an existing action, WinRunner action
- B. Existing action, new action, copy of action
- C. External action, Reusable action
- D. None
If you are typing in expert view and u type an object followed by dot, what does quick test display?
- a)Nothing
- b)The Orguments for that object
- c)the methods and properties for that object
- d)The child Objects and methods for that object
Browser navigation timeout is in which tab of test setting (File>settings) window
- a. Properties
- b. Resources
- c. Web
- d. Web settings
what will be the output of Dim MyDay MyDay = Day("October 19, 1962")?
- 1962
- 19
- october
- monday
What will be the output ? Dim MyDate MyDate = Date
- current date
- current system date
- future date
- previous date
What will be the output ? Dim MyVar MyVar = Now
- Current date and time
- current date
- current time
- current date and future date
What will be the output ? Dim MyVar MyVar = Month(Now)
- current date
- current time
- current year
- current month