Computer Knowledge
Software Testing and Quality Control
2,598 Questions
Software testing and quality control questions cover testing methodologies, unit testing, and defect management. These concepts are crucial for the computer knowledge sections of competitive exams. Practice these questions to understand verification and validation processes thoroughly.
Quality control typesUnit testing purposeSoftware vulnerability testingTest planning tasksLoop testing criteriaTest harness functions
Software Testing and Quality Control Questions
-
Browser("Ultimatix GetConnected").Page("Ultimatix GetConnected").WebEdit("employeeNumber").Set "000000"
-
Browser("title:=Ultimatix - Get Connected !").Page("title:=Ultimatix - Get Connected !").WebEdit("name:=employeeNumber").Set "000000"
-
Browser("title:=Ultimatix - Get Connected !"). Page("title:=Ultimatix - Get Connected !"). WebEdit("employeeNumber").Set "000000"
-
Browser("Ultimatix GetConnected").Page("Ultimatix GetConnected"). WebEdit("name:=employeeNumber").Set "000000"
C
Correct answer
Explanation
This statement uses descriptive programming for the Browser and Page objects using regular expressions (title:=...), and standard repository identification for the child WebEdit object, which is syntactically valid in QTP.
-
(.TSR and .QRS)
-
(.QRS and .MTR)
-
(.TSR and .MTR)
-
(.MTR and .QFL)
C
Correct answer
Explanation
In HP QuickTest Professional (QTP) / Unified Functional Testing (UFT), Shared Object Repositories are saved with the .tsr extension, while Local Object Repositories are saved with the .mtr extension.
-
OSS_cfg
-
Inter_TestCase_DataTransition
-
OSS_TestExecution Sheet
-
None of the above
C
Correct answer
Explanation
The OSS_TestExecution Sheet is the central spreadsheet where all components for a specific proposition are listed. This sheet contains an Execute flag (Yes/No) for each component, which determines which component scripts should be executed during the test run. OSS_cfg contains configuration settings, and Inter_TestCase_DataTransition handles data passing between test cases.
-
Inter_TestCase_DataTransition
-
Detailed HTML Report
-
Summary HTML Report
-
Log files under the “logs” Folder
D
Correct answer
Explanation
Log files in the logs folder contain detailed initialization information including whether required files like OSS_TestExecution Sheet and OSS_cfg were loaded successfully. The logs capture any loading errors, file path issues, or initialization failures that might occur when the framework starts up. HTML reports show test results, not initialization status.
-
Scripts
-
Data
-
Reports
-
None of the Above
A,B
Correct answer
Explanation
Both the Scripts and Data folders contain Applications and Common sub-folders. The Scripts folder organizes test scripts into Applications (app-specific tests) and Common (shared/reusable scripts). Similarly, the Data folder organizes test data files into Applications and Common sub-folders for corresponding scripts. Reports has a different structure without these sub-folders.
-
OSS_Main
-
OSS_API
-
OSS_DriverScript
-
Every component “.vbs” file will have the function defined
B
Correct answer
Explanation
The OSS_API.vbs file contains the function for loading the Object Repository. This centralizes repository loading logic at the API level rather than duplicating it across each component's .vbs file or placing it in OSS_Main or OSS_DriverScript. The API file provides common functions that components can call as needed.
-
Allow QC to run tests remotely
-
Enable QC Integration
-
Allow other Products to control QTP
-
Allow other Products to run tests remotely
A
Correct answer
Explanation
To enable Quality Center to execute QTP tests remotely, you must configure QTP to allow remote test execution by setting the 'Allow QC to run tests remotely' option. This permission must be enabled in QTP before Quality Center can control test execution.
-
Regular Expressions
-
Parameterization
-
Descriptive Programming
-
All the Above
C
Correct answer
Explanation
Descriptive Programming allows you to define objects dynamically in your code using property-value pairs, making it ideal for objects whose properties change at runtime. Regular Expressions have limited flexibility, while Parameterization is for test data, not object identification.
-
Local Object Repositories
-
All Repository Types
-
Shared Object Repositories
-
All the Above
A,C
Correct answer
Explanation
The Object Repository Manager handles both Local Object Repositories (test-specific .tsr files) and Shared Object Repositories (reusable .tsr files across multiple tests). This dual capability supports different test object management strategies.
-
Low Level
-
Active Screen
-
JPEG Sample
-
Standard
D
Correct answer
Explanation
Standard checkpoints in QTP verify object property values during test execution by comparing actual runtime values against expected values. This is the primary checkpoint type for property validation.
-
Checkpoints
-
Test Objects in the Repository
-
Database Checkpoints
-
All of the Above
D
Correct answer
Explanation
QTP supports parameterization across checkpoints (data-driven validation), test objects (dynamic property values), and database checkpoints (parameterized queries and expected results). This comprehensive parameterization enables flexible, data-driven testing.
-
A Collection of Objects
-
A count of the number of Objects on the page
-
All the Web pages displayed in the browser
-
None of the above
A
Correct answer
Explanation
The ChildObjects method returns a collection of all child objects that match the specified description properties from a parent object. This enables programmatic retrieval and manipulation of multiple similar objects.
-
Object Spy
-
Object Repository Manager
-
Object Identification
-
All the above
C
Correct answer
Explanation
In UFT (Unified Functional Testing), Object Identification is the feature where you define and configure the mandatory and assistive properties that the tool uses to identify and recognize test objects during runtime. The Object Spy is used to view the properties and methods of an object at runtime, while Object Repository Manager is used to manage shared object repositories. Only Object Identification lets you configure how the tool identifies objects.
-
30000 ms
-
60000 ms
-
90000 ms
-
40000 ms
C
Correct answer
Explanation
The default browser navigation timeout in QTP is 90000 ms (90 seconds). This setting controls how long QTP waits for page navigation to complete before timing out. Options A (30s), B (60s), and D (40s) are incorrect defaults for this setting.
-
Dictionary Object
-
Dialog Object
-
Child Object
-
Desktop Object
A
Correct answer
Explanation
A Dictionary object stores data as key-value pairs, where each unique key maps to a corresponding item or value. This is the fundamental data structure for associative arrays and maps across programming languages.