- QTP Tutorial
- QTP - Home
- QTP - Introduction
- QTP - Test Automation
- QTP - Environment Setup
- QTP - Record and Play Back
- QTP - Object Repository
- QTP - Actions
- QTP - DataTables
- QTP - Checkpoints
- QTP - Synchronization
- QTP - Smart Identification
- QTP - Debugging
- QTP - Error Handling
- QTP - Recovery Scenarios
- QTP - Environment Variables
- QTP - Library Files
- QTP - Test Results
- QTP - GUI Objects
- QTP - Virtual Objects
- QTP - Accessing Databases
- QTP - Working with XML
- QTP - Descriptive Programming
- QTP - Automation Object Model
- QTP - Frameworks
- QTP - Designing a Framework
- QTP Useful Resources
- QTP - Questions and Answers
- QTP - Quick Guide
- QTP - Useful Resources
- QTP - Discussion
QTP Mock Test
This section presents you various set of Mock Tests related to QTP Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
QTP Mock Test II
Q 1 - How can you add recordable or non-recordable operations to your test?
Use the Step Generator
Insert through Keyword View.
Drag objects from Available Keywords.
Drag objects from the Data Table.
Answer : C
Explanation
It can be added using step generator or through keyword view or it can be dragged objects from available keywords.
Q 2 - What is a UFT test comprised of?
B - calls to actions (reusable only)
Answer : A
Explanation
It comprises of calls to actions
Q 3 - Which names are used to identify the status of your application before and after your automated test executes?
initial condition
static state
end condition
done condition
Answer : C
Explanation
A point to note here is that when you are iterating over a specific business process the initial and end conditions should be same.
Q 4 - During the planning phase, you decide to create multiple actions that can be combined and reused to achieve testing goals. Which element is critical for identifying the actions to be recorded and how to combine them?
Answer : C
Explanation
Initial and end conditions is critical for identifying and combining them.
Q 5 - What are the default add-ins checked for installation in UFT
.NET
ActiveX
HTML
Web
Java
Visual Basic
Answer : B
Explanation
While installing UFT, the .NET, Wen and VB plugins are activated by default for installation
Q 6 - Which UFT View Option will show you the repositories associated with each action?
Resources
Information
Script Repository
Active Screen
Answer : B
Explanation
Resources pane shows the repositories associated with each action.
Q 7 - Where can you reset the add-in manager if it does not display when you launch UFT?
Answer : A
Explanation
It is available under Tools menu.
Q 8 - You set your Record and Run settings to 'Record and run test on any open browser'. Which applications will be recorded?
Firefox
Safari
Opera
Chrome
Internet Explorer
Answer : C
Explanation
Firefox and IE are used when we set Record and Run settings to 'Record and run test on any open browser'
Q 9 - Which directory is the default directory in the UFT file structure where the local Data Table is located ?
Answer : C
Explanation
The local as well as Global data table can be found in Default.xls file located in correposnding test folder.
Q 10 - Which UFT menu item should you use when emailing a UFT test to another tester?
Answer : D
Explanation
Export Test to ZIP File is used to email UFT test to another tester.
Q 11 - You have defined a global synchronization timeout of 30 seconds for your test. The synchronization point timeout for a button to become enabled is set to 10000. During playback of the script, what is the maximum amount of time UFT will wait for the button to become enabled?
Answer : C
Explanation
UFT waits up to the amount of time set for the object synchronization timeout option, plus the time set for the synchronization point timeout.
Q 12 - How does UFT identify each object you record ?
Answer : A
Explanation
Any object in UFT is identified with the help of its class and object’s properties.
Q 13 - Which UFT feature should you use to view methods and properties of objects in your application?
Answer : C
Explanation
Object Spy tool helps tester to view methods and properties of objects.
Q 14 - Which object repository type is created by default ?
shared
reusable
local
global
Answer : B
Explanation
Local object repository is created by default and carries the extension .bdb.
Q 15 - You need to change the properties of an object in your object repository. Which repository feature enables you to quickly access the specific item if your repository contains hundreds of objects?
Answer : D
Explanation
Locate in repository is used to quickly access the specific item if your repository contains hundreds of objects.
Q 16 - Which step categories can be added using the Step Generator Tool ?
run-time objects
default object types
test objects
utility objects
data objects
Functions
Answer : D
Explanation
Test object, utility objects and functions can be added using the step generator tool.
Q 17 - Which UFT feature confirms that the application is functioning correctly?
Answer : B
Explanation
Checkpoint confirms if the application is functioning correctly.
Q 18 - Which statement type can you use in your test to wait for a condition to be met and fail the test if it times out before meeting the condition?
Answer : C
Explanation
Standard Checkpoint helps testers to wait for a condition to be met and fail the test if it times out before meeting the condition
Answer : B
Explanation
Bitmap checkpoint helps us to validate the image color.
Q 20 - Which checkpoint type should you use to validate the enabled state of a button?
Answer : C
Explanation
Standard checkpoint helps us to validate the enabled state of a button.
Q 21 - Which term is used to define a string of special characters that define the condition of the search?
Answer : B
Explanation
regular expression is used to define a string of special characters that define the condition of the search.
Q 22 - Where is data for an input parameter stored?
Answer : B
Explanation
Design time data table is used to store data for input parameters.
Q 23 - User-defined environment variables can be imported from an external file. What is the valid file type that can be imported?
Answer : B
Explanation
XML files are imported into environmental variables option under Test Settings > Environment > User Defined dropdown option.
Q 24 - After playing back a test containing output values, where can the output values be viewed?
Answer : D
Explanation
Run time data table is available in the Results viewer where the output values can be viewed.
Q 25 - How can the Data Table be used in a custom checkpoint?
to store output values
to use formulas
to access global values
to compare columns
Answer : A
Explanation
Data Table can be used as a custom checkpoint to store output values and to access global values.
Q 26 - Which checkpoint type uses a query to validate expected value?
Answer : C
Explanation
Database checkpoint is used to query to validate expected value.
Q 27 - What is compared in a bitmap checkpoint?
bits
RGB
pixels
text
jpegs
Answer : B
Explanation
Bitmap checkpoint compares pixels only.
Q 28 - Which bitmap checkpoint feature allows the checkpoint to pass even if bitmaps are not identical?
Answer : B
Explanation
Bitmap checkpoint checks for RGB Tolerance even if bitmaps are not identical.
Q 29 - Which status is reported in the Test Results Summary if the test does not include checkpoints?
Answer : C
Explanation
Done is used in Reporter.Report event method to report in test result summary if it doesnot include checkpoints.
Q 30 - You ran a test scenario with 10 iterations. What does the Test Results Summary report if 8 iterations pass and 2 iterations fail?
A - The summary reports PASS because more iterations passed than failed
B - The summary reports the status for each iteration
D - The summary reports FAIL because all iterations did not pass
Answer : B
Explanation
The summary reports the status for each iteration in the test result summary page.
Q 31 - A tester uses UFT connected to Quality Center (ALM) and the tests are stored in ALM. At an upcoming conference, this tester wants to demonstrate a new UFT test. The test makes calls to reusable actions from other QuickTest Professional tests stored in Quality Center. What is the simplest way to make the test portable so it can run disconnected from Quality Center?
A - Use the QuickTest Professional Save test with resources feature.
Answer : A
Explanation
Tester should use the QuickTest Professional Save test with resources feature to demonstrate a new UFT test inorder to make the test portable so it can run disconnected from Quality Center.
Q 32 - What happens when a tester performs an Insert > Call to Copy of Action?
D - The Use data stored with the original action is disabled.
Answer : B
Explanation
When call to copy of an action is performed all the steps, checkpoints, parameterizations, action parameters, and object repository are all copied over.
Q 33 - Which feature displays all the test's actions ?
Answer : B
Explanation
Test Flow Panel displays all the tests actions.
Q 34 - Where are the local data sheet iterations specified ?
Answer : C
Explanation
local data sheet iterations are specified in Action call Properties.
Q 35 - When inserting a call to a reusable action, how are the data resources in that action handled?
B - A copy of the data is made (editable) and stored with the new action.
C - The tester must make a one-time selection to either copy the data or refer to the original data.
D - The tester always has the option to copy the data or refer to the original data.
Answer : D
Explanation
The tester always has the option to copy the data or refer to the original data.
Q 36 - Where do you go to modify a shared object repository?
A - Resources > Object Repository Manager
B - Resources > Object Repository
Answer : A
Explanation
You have to navigate to Resources > Object Repository Manager.
Q 37 - Which UFT tool uses the Object Repositories Merge Tool?
A - Map Repository Parameters Tool
B - Update from Local Repository Tool
Answer : B
Explanation
Update from Local Repository Tool is the option to be used for merging OR.
Q 38 - Which conflicts does the Objects Repositories Merge Tool detect? (Select three)
same object different parent
same name different description
same description different name
same name extra properties
similar description
Answer : D
Explanation
OR Merge tool looks for 3 conflicts - same name different description, same description different name and similar description.
Q 39 - Which steps are required to connect to ALM from UFT? (Select three.)
define a project
connect to the server
authenticate user
create a user
define a domain
select a project
Answer : C
Explanation
Steps includes connect to the server,authenticate user and selecting a project.
Q 40 - Which feature requires a connection to ALM?
Version Control
Jump to Step
System Monitor
Save Test with Resources
Answer : C
Explanation
User has to connect to ALM if Version Control is enabled for the project.
Q 41 - Identify UFT resources. (Select three.)
test versions
actions
checkpoints
function libraries
images
recovery scenarios
Answer : D
Explanation
UFT Resources in the above list are actions, checkpoints and recovery scenarios
Q 42 - Which menu option should you use to save your test to a version controlled ALM/QC project for the first time?
Answer : B
Explanation
Save As Option to be used inorder to save your test to a version controlled ALM/QC project for the first time.
Q 43 - Which Recording mode records mouse and keyboard operations.
Answer : A
Explanation
Analog Recording mode records mouse and Keyboard Operations.
Q 44 - Which feature can you use to teach UFT to recognize any area of your application
Answer : C
Explanation
Virtual Objects can teach UFT to recognize any area in your application.
Q 45 - You are creating a recovery scenario to handle a pop-up message box with OK Button. Which recovery option should you select?
Answer : A
Explanation
Keyboard or mouse operation is the appropriate recovery operation to be used.
Q 46 - How can you pause and interact with the playback of a test?
Answer : B
Explanation
Testers has to add a break point to debug or to pause and interact with the playback of a test.
Q 47 - Which tab in the Debug Viewer pane allows you to view or change variables or properties?
Answer : A
Explanation
Watch tab in the Debug Viewer pane allows you to view or change variables or properties.
Q 48 - Which Settings tab enables UFT to measure the resources being used by the application?
Answer : C
Explanation
Local System Monitor enables UFT to measure the resources being used by the application.
Q 49 - How can you use monitors to cause the test to fail?
Answer : D
Explanation
Define a monitor limit can be used to cause the test to fail?
Q 50 - What can you do using the To Do pane? (Select two.)
Assign tasks to others.
Mark a task as In progress.
View TODO comments existing in the current test recovery scenarios.
Export TODO comments to comma-separated values or XML format.
View TODO comments existing in the current test checkpoints.
Answer : D
Explanation
Once can do : Assign tasks to others, Export TODO comments to comma-separated values or XML format.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | C |
2 | A |
3 | C |
4 | C |
5 | B |
6 | B |
7 | A |
8 | C |
9 | C |
10 | D |
11 | C |
12 | A |
13 | C |
14 | B |
15 | D |
16 | D |
17 | B |
18 | C |
19 | B |
20 | C |
21 | B |
22 | B |
23 | B |
24 | D |
25 | A |
26 | C |
27 | B |
28 | B |
29 | C |
30 | B |
31 | A |
32 | B |
33 | B |
34 | C |
35 | D |
36 | A |
37 | B |
38 | D |
39 | C |
40 | C |
41 | D |
42 | B |
43 | A |
44 | C |
45 | A |
46 | B |
47 | A |
48 | C |
49 | D |
50 | D |
To Continue Learning Please Login
Login with Google