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.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Where do you mark an action as reusable?

  1. A. Action Settings
  2. B. Action Properties
  3. C. Action Run Settings
  4. D. Action Call Properties
Question 2 Multiple Choice (Single Answer)

which method for the DataTable utility object will allow you to retrieve information from the Data Table during a test run?

  1. A. Value
  2. B. Import
  3. C. GetCell
  4. D. GetValue
Question 3 Multiple Choice (Single Answer)

In Test Settings ->Run the Data Table iteration options are for which data sheet?

  1. A. Local
  2. B. Global
  3. C. Run-time Data Table
  4. D. Design-time Data Table
Question 4 Multiple Choice (Single Answer)

Where do you set the action iterations for a specified action?

  1. A. Action Settings
  2. B. Action Properties
  3. C. Action Run Settings
  4. D. Action Call Properties
Question 5 Multiple Choice (Single Answer)

What does the source property of a database checkpoint object represent?

  1. A. The SQL query
  2. B. The identification number of the database
  3. C. The number of rows returned from the query
  4. D. The connectionstring used to connect to the database
Question 6 Multiple Choice (Single Answer)

What are the available trigger event types?

  1. A. Pop-up window, object state, VBScript event
  2. B. Object State, VBScript event, Application crash
  3. C. Pop-up window, object state, test run error, QTP crash
  4. D. Pop-up win
Question 7 Multiple Choice (Single Answer)

what is the keyword used to define how the counter variable in a or lext loop increments?

  1. A. ++
  2. B. Next
  3. C. Skip
  4. D. Step
Question 8 Multiple Choice (Single Answer)

If you have a Virtual Object Collection stored on your machine, and you don't want to use it, what must you do?

  1. A. Disable Virtual Objects in Test Settings
  2. B. Remove the Collection from your machine
  3. C. Disable Virtual Objects in General Options
  4. D. Remove the Collections from the Resources list
Question 9 Multiple Choice (Single Answer)

What can you use to handle unpredictable testing exceptions?

  1. A. A Do Loop
  2. B. Recovery Scenario
  3. C. IFHEN statement
  4. D. Selectase statement
Question 10 Multiple Choice (Single Answer)

In which command can you associate a function library to a test?

  1. A. Run Options
  2. B. Test Settings
  3. C. View Options
  4. D. Function Definition Generator
Question 11 Multiple Choice (Single Answer)

What is created, by default, with each new action?

  1. A. Local Data Sheet, Global Data Sheet, Folder
  2. B. Local Object Repository, Local Data Sheet, Folder
  3. C. Global Data Sheet, Local Object Repository, Folder
  4. D. Local Data Sheet, Global Data Sheet, Local Object Repository
Question 12 Multiple Choice (Single Answer)

How do you close the database session after examining the results of an SQL query?

  1. A. Call the ADO.Close function
  2. B. Use the close method for the RecordSet object
  3. C. Set the RecordSet and Connection objects equal to Nothing
  4. D. Use the close method for the RecordSet and Connection objects
Question 13 Multiple Choice (Single Answer)

what are the two most commonly used ADO objects?

  1. A. Fields
  2. B. Execute
  3. C. Connection, RecordSet
  4. D. Open, ConnectionString
Question 14 Multiple Choice (Single Answer)

Choose the complete set of actions in QTP from the choices given below

  1. A. Existing action, new action, copy of an existing action, WinRunner action
  2. B. Existing action, new action, copy of action
  3. C. External action, Reusable action
  4. D. None
Question 15 Multiple Choice (Single Answer)

If you are typing in expert view and u type an object followed by dot, what does quick test display?

  1. a)Nothing
  2. b)The Orguments for that object
  3. c)the methods and properties for that object
  4. d)The child Objects and methods for that object
Question 16 Multiple Choice (Single Answer)

Browser navigation timeout is in which tab of test setting (File>settings) window

  1. a. Properties
  2. b. Resources
  3. c. Web
  4. d. Web settings
Question 17 Multiple Choice (Single Answer)

what will be the output of Dim MyDay MyDay = Day("October 19, 1962")?

  1. 1962
  2. 19
  3. october
  4. monday
Question 18 Multiple Choice (Single Answer)

What will be the output ? Dim MyDate MyDate = Date

  1. current date
  2. current system date
  3. future date
  4. previous date
Question 19 Multiple Choice (Single Answer)

What will be the output ? Dim MyVar MyVar = Now

  1. Current date and time
  2. current date
  3. current time
  4. current date and future date
Question 20 Multiple Choice (Single Answer)

What will be the output ? Dim MyVar MyVar = Month(Now)

  1. current date
  2. current time
  3. current year
  4. current month