Quick Test Professional and VBScript Fundamentals
Test your knowledge of Quick Test Professional (QTP) automated testing tool and VBScript programming, including object repositories, checkpoints, debugging, loops, arrays, and test automation concepts.
Questions
Where can we make an action reusable?
- Action Properties
- Call Properties
- Properties
- None
What is the default browser navigation time out?
- 10 seconds
- 60 seconds
- 20 seconds
- 30 seconds
Which statement below is true about Wait method?
- Wait – makes a wait for the specified seconds with optional milliseconds
- Wait – makes a wait for the specified seconds only
- Wait – makes a wait for the specified seconds with mandatory milliseconds
- None of the statements are true
How many checkpoint types & Output value types are supported by Quick Test?
- 6 & 6
- 8 & 6
- 9 & 9
- 8 & 9
What is the statement that can be used to make VB Script, mandate variable declaration?
- Option Declare
- Option Explicit
- Option Mandate
- None
In VB Script, variables cannot be declared to a specific data type. State true or false
- True
- False
What is the method that can be used to retrive a run time value of any object, say a user input value?
- GetTOProperty
- SetTOProperty
- GetROProperty
- None
Output values cannot be used to perform validation checks. State true or false
- True
- False
When we create a 2 dimention array, an element in the created array can be referenced by how many indices?
- 2
- 1
- 3
- No index is required for referencing an element in a 2D array. Index is applicable only for 1D arrays.
Regular expressions can be applied to object repositories. State true or false
- True
- False
Which is the deprecated version of loop?
- While … Wend
- Do While … Loop
- Do Until … Loop
- VB Script doesn't have any deprecated loops at all.
Subroutines do return values, whereas Functions do not. State true or false
- True
- False
Local repositories cannot be associated to a test, using Resources menu. State true or false
- True
- False
Predict the output
Set objEdit = Description.Create
objEdit(“micclass”).Value = “Link”
objEdit(“name”).Value = “username” Browser(“...”).Page(“...”).WebEdit(objEdit).Set “test_user_name”
- The code is perfectly valid. It sets the specified value in the web
- name property is incorrectly defined for the link object
- Syntax of Description object is incorrect.
- Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid
Breakpoints can be set in the script, to make Quick Test pause script execution, at desirable statements in the script. State true or false
- True
- False
Watch tab of debug viewer
- can be used to watch only simple variables
- can be used to watch all simple variables and most of the object properties
- displays all the variables encountered during the script execution runtime
- cannot be used to watch simple variable values
Recovery scenario takes us thru the following wizard steps in the following sequence
- define a trigger, define the recovery operations, define the post recovery operations
- define the recovery operations, define a trigger, define the post recovery operations
- can be created in any order
- no such wizard is available in Quick Test
The word 'bug' is synonymous with which of the following words?
- Incident
- Defect
- Mistake
- Error
Which of the following is most important to promote and maintain good relationships between testers and developers??
- Understanding what managers value about testing
- Identifying potential customer work-arounds for bug
- Explaining test results in a neutral fashion
- All the above
Which of the following is a test type??
- Component Testing
- Functional Testing
- Non-functional Testing
- Acceptance Testing
- Both 2 & 3
- Both 1 & 3