Monday, April 19, 2010

QTP Interview Questions and Answers - 6

21. What the differences are and best practical application of each.

Per Action Repository: For Each Action, one Object Repository is created.
Shared Repository: One Object Repository is used by entire application

22. Explain what the difference between Shared Repository and Per_Action Repository

Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner
Per Action Repository: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner

23. Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.

I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages.





24. What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them.

pbs :WR fails to identify the object in gui. If there is a non std window obk wr cannot recognize it ,we use GUI SPY for that to handle such situation.

25. Can you do more than just capture and playback?

I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
-It was done by the windows scripting using the DOM(Document Object Model) of the windows.

27. How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?

Yes, there's an in-built functionality called "Step Generator" in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps.

28. What is the difference between check point and output value in QTP.

It is as follows:-
An outPut value is a value captured during the test run and entered in the run-time but to a specified location.
EX:-Location in Data Table[Global sheet / local sheet]

29. IF we use batch testing in QTP, the result shown for last action only. In that how can i get result for every action.

u can click on the icon in the tree view to view the result of every action

30. How the exception handling can be done using QTP

It can be done Using the Recovery Scenario Manager which provides a wizard that gudies you through the process of defining a recovery scenario. FYI.. The wizard could be accesed in QTP> Tools-> Recovery Scenario Manager .......

31. How many types of Actions are there in QTP?

There are three kinds of actions:
non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once.
reusable action—an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
external action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

32. How do you data drive an external spreadsheet?

u can use the foll. statements in QTP:
DataTable.ImportSheet "..\..\TestData\Input.xls",1,dtGlobalSheet
DataTable.ExportSheet "..\..\Results\Output.xls","Global"

for importing a file:

DataTable.Import "filename.txt"

(you have to write the path name also for eg:
DataTable.Import "C:\Documents and
Settings\mercury\Desktop\fly.txt")

for Exporting a file:

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")

Set MyFile = fso.CreateTextFile("fileName.txt",True)

(Eg:Set MyFile = fso.CreateTextFile("C:\Documents and Settings\mercury\Desktop\flight.txt",True)

MyFile.WriteLine("Fly_From"&" "&"Fly_To"&" "&"Order_No"&" "&" Flight" )


C1=DataTable.Value(1,1)&" "
C2=DataTable.Value(2,1)&" "
C3=DataTable.Value(3,1)&" "
c4=DataTable.Value(4,1)
B=C1&C2&C3&c4
MyFile.WriteLine(B)

This is just an example
Note: To get the contents in diff column in Excel sheet give tab.

33. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?

U can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad "( i.e., where the notepad.exe is stored in the system) in the "Windows Applications Tab" of the "Record and Run Settings window. Try it out. All the Best.

By Jigar Gosai
Email: jigar.gosai@gmail.com


Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 2
QTP Interview Questions and Answers - 3
QTP Interview Questions and Answers - 4
QTP Interview Questions and
Answers - 5

QTP Interview Questions and Answers - 6

By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP Interview Questions and Answers - 5

By Jigar Gosai
Email: jigar.gosai@gmail.com


1. What are the Features & Benefits of Quick Test Pro(QTP)..?

1. Key word driven testing
2. Suitable for both client server and web based application
3. Vb script as the script language
4. Better error handling mechanism
5. Excellent data driven testing features

2. Where can I get Quck Test pro(QTP Pro) software.. This is Just for Information purpose Only.

Download QTP. Click Here

3. How to handle the exceptions using recovery secnario manager in Qtp?

You can instruct QTP to recover unexpected events or errors that occured in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps
1. Triggered Events
2. Recovery steps
3. Post Recovery Test-Run

4. what is the use of Text output value in Qtp?

Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.





5. How to use the Object spy?

There are two ways to Spy the objects in QTP
1) Thru file toolbar
---In the File ToolBar click on the last toolbar button (an icon showing a person with hat).
2) Tru Object repository Dialog
---In Objectrepository dialog click on the button"object spy..."
In the Object spy Dialog click on the button showing hand symbol.
the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object
if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button.

Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 2
QTP Interview Questions and Answers - 3
QTP Interview Questions and Answers - 4
QTP Interview Questions and Answers - 5

By Jigar Gosai
Email: jigar.gosai@gmail.com


6. What is the file extension of the code file & object repository file in QTP?

File extension of
-- Per test object rep :- filename.mtr
-- Shared Oject rep :- filename.tsr
Code file extension id script.mts

7. Explain the concept of object repository & how QTP recognises objects?

Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
we can view or modify the test object description of any test object in the repository or to add new objects to the repository.
Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.

8. What are the properties you would use for identifying a browser & page when using descriptive programming ?

"name" would be another property apart from "title" that we can use.
OR
We can also use the property "micClass".
ex: Browser("micClass:=browser").page("micClass:=page")....

9. What are the different scripting languages you could use when working with QTP ?

Visual Basic (VB),XML,JavaScript,Java,HTML

11. Few basic questions on commonly used Excel VBA functions in QTP.
common functions are:
Coloring the cell
Auto fit cell
setting navigation from link in one cell to other
saving

12. Explain the keyword createobject in QTP with an example.

Creates and returns a reference to an Automation object
syntax: CreateObject(servername.typename [, location])
Arguments
servername:Required. The name of the application providing the object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be created.

13. Explain in brief about the QTP Automation Object Model.

Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

14. How to handle dynamic objects in QTP?

QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognise the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time.

Check this out-
If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object.
While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails.

The Smart Identification mechanism uses two types of properties:
Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link's tag was changed from to any other value, you could no longer call it the same object.
Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.

Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 2
QTP Interview Questions and Answers - 3
QTP Interview Questions and Answers - 4
QTP Interview Questions and Answers - 5

By Jigar Gosai
Email: jigar.gosai@gmail.com


15. What is a Run-Time Data Table? Where can I find and view this table?

In QTP, there is data table used , which is used at runtime.
-In QTP, select the option View->Data tabke.
-This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

16. How does Parametrization and Data-Driving relate to each other in QTP?

To datadrive we have to parametrize.i.e. we have to make the constant value as parameter, so that in each iteration(cycle) it takes a value that is supplied in run-time datatable. Through parametrization only we can drive a transaction(action) with different sets of data. You know running the script with the same set of data several times is not suggestable, & it's also of no use.

17. What is the difference between Call to Action and Copy Action.?

Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

18. Discuss QTP Environment.

QuickTest Pro environment using the graphical interface and ActiveScreen technologies - A testing process for creating test scripts, relating manual test requirements to automated verification features - Data driving to use several sets of data using one test script.

19. Explain the concept of how QTP identifies object.

During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time obkects that matches with the test object it learned while recording.

20. Differentiate the two Object Repository Types of QTP.

Object repository is used to store all the objects in the application being tested.2 types of object repositoy per action and shared. In shared repository only one centralized repository for all the tests. where as in per action.for each test a separate per action repository is created.


Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 2
QTP Interview Questions and Answers - 3
QTP Interview Questions and Answers - 4
QTP Interview Questions and Answers - 5

By Jigar Gosai
Email: jigar.gosai@gmail.com

Wednesday, April 14, 2010

QTP Interview Questions and Answers - 2

QTP Interview Questions and Answers - 2

By Jigar Gosai
Email: jigar.gosai@gmail.com


1. What are the features and benefits of Quick Test Pro(QTP)?
1. Key word driven testing
2. Suitable for both client server and web based application
3. VB script as the script language
4. Better error handling mechanism
5. Excellent data driven testing features







2. How to handle the exceptions using recovery scenario manager in QTP?
You can instruct QTP to recover unexpected events or errors that occurred in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps
1. Triggered Events
2. Recovery steps
3. Post Recovery Test-Run

3. What is the use of Text output value in QTP?
Output values enable to view the values that the application talks during run time. When parameterized, the values change for each iteration. Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.

4. How to use the Object spy in QTP 8.0 version?
There are two ways to Spy the objects in QTP
1) Thru file toolbar: In the File ToolBar click on the last toolbar button (an icon showing a person with hat).
2) Thru Object repository Dialog: In Objectrepository dialog click on the button “object spy…” In the Object spy Dialog click on the button showing hand symbol. The pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object. If at all the object is not visible or window is minimized then hold the Ctrl button and activate the required window to and release the Ctrl button.

By Jigar Gosai
Email: jigar.gosai@gmail.com


5. What is the file extension of the code file and object repository file in QTP?
File extension of
Per test object rep: filename.mtr
Shared Object rep: filename.tsr
Code file extension id: script.mts

6. Explain the concept of object repository and how QTP recognizes objects?
Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
we can view or modify the test object description of any test object in the repository or to add new objects to the repository.
Quicktest learns the default property values and determines in which test object class it fits. If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description. If no assistive properties are available, then it adds a special Ordianl identifier such as objects location on the page or in the source code.

7. What are the properties you would use for identifying a browser and page when using descriptive programming?
“name” would be another property apart from “title” that we can use. OR
We can also use the property “micClass”.
ex: Browser(”micClass:=browser”).page(”micClass:=page”)

8. What are the different scripting languages you could use when working with QTP?
You can write scripts using following languages:
Visual Basic (VB), XML, JavaScript, Java, HTML

9. Tell some commonly used Excel VBA functions.
Common functions are:
Coloring the cell, Auto fit cell, setting navigation from link in one cell to other saving

10. Explain the keyword createobject with an example.
Creates and returns a reference to an Automation object
syntax: CreateObject(servername.typename [, location])
Arguments
servername:Required. The name of the application providing the object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be created.

By Jigar Gosai
Email: jigar.gosai@gmail.com


11. Explain in brief about the QTP Automation Object Model.
Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

12. How to handle dynamic objects in QTP?
QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognize the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time.
Check out this:
If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object.
While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails.
The Smart Identification mechanism uses two types of properties:
Base filter properties - The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link’s tag was changed from to any other value, you could no longer call it the same object. Optional filter properties - Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.

13. What is a Run-Time Data Table? Where can I find and view this table?
In QTP, there is data table used, which is used at runtime.
-In QTP, select the option View->Data table.
-This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

14. How does Parameterization and Data-Driving relate to each other in QTP?
To data driven we have to parameterize. i.e. we have to make the constant value as parameter, so that in each interaction(cycle) it takes a value that is supplied in run-time data table. Through parameterization only we can drive a transaction (action) with different sets of data. You know running the script with the same set of data several times is not suggested, and it’s also of no use.

15. What is the difference between Call to Action and Copy Action.?
Call to Action: The changes made in Call to Action, will be reflected in the original action (from where the script is called). But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

By Jigar Gosai
Email: jigar.gosai@gmail.com


16. Explain the concept of how QTP identifies object.
During recording qtp looks at the object and stores it as test object. For each test object QT learns a set of default properties called mandatory properties, and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run, QTP searches for the run time objects that matches with the test object it learned while recording.

17. Differentiate the two Object Repository Types of QTP.
Object repository is used to store all the objects in the application being tested.
Types of object repository: Per action and shared repository.
In shared repository only one centralized repository for all the tests. where as in per action for each test a separate per action repository is created.

18. What the differences are and best practical application of Object Repository?
Per Action: For Each Action, one Object Repository is created.
Shared: One Object Repository is used by entire application

19. Explain what the difference between Shared Repository and Per Action Repository?
Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner
Per Action: For each Action, one Object Repository is created, like GUI map file per test in WinRunner

20. Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.
Sample answer (You can tell about modules you worked on. If your answer is Yes then You should expect more questions and should be able to explain those modules in later questions): I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages.

By Jigar Gosai
Email: jigar.gosai@gmail.com


21. Can you do more than just capture and playback?
Sample answer (Say Yes only if you worked on): I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
-It was done by the windows scripting using the DOM(Document Object Model) of the windows.

22. How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?
Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as you enter the appropriate steps.

23. What is the difference between check point and output value?An output value is a value captured during the test run and entered in the run-time but to a specified location.
EX:-Location in Data Table[Global sheet / local sheet]

24. How many types of Actions are there in QTP? There are three kinds of actions:
Non-reusable action - An action that can be called only in the test with which it is stored, and can be called only once.
Reusable action - An action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
External action - A reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

25. I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
You can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e. where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window.


Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 2

By Jigar Gosai
Email: jigar.gosai@gmail.com

Tuesday, April 13, 2010

QTP interview questions and answers - 1

By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP interview questions and answers - 1
1. What are the Features & Benefits of Quick Test Pro (QTP 8.0)? -
Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation zero-configuration Keyword Driven testing technology in Quick Test Professional 8.0 allowing for fast test creation, easier maintenance, and more powerful data-driving capability. Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution. Collapses test documentation and test creation to a single step with Auto-documentation technology. Enables thorough validation of applications through a full complement of checkpoints.





2. How to handle the exceptions using recovery scenario manager in QTP?
- There are 4 trigger events during which a recovery scenario should be activated. A pop up window appears in an opened application during the test run: A property of an object changes its state or value, A step in the test does not run successfully, An open application fails during the test run, These triggers are considered as exceptions.You can instruct QTP to recover unexpected events or errors that occurred in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps: 1. Triggered Events 2. Recovery steps 3. Post Recovery Test-Run
3. What is the use of Text output value in QTP?
- Output values enable to view the values that the application talks during run time. When parameterized, the values change for each iteration. Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.
4. How to use the Object spy in QTP 8.0 version?
- There are two ways to Spy the objects in QTP: 1) Thru file toolbar, In the File Toolbar click on the last toolbar button (an icon showing a person with hat). 2) True Object repository Dialog, In Object repository dialog click on the button object spy. In the Object spy Dialog click on the button showing hand symbol. The pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object if at all the object is not visible. or window is minimized then, hold the Ctrl button and activate the required window to and release the Ctrl button.
5. How Does Run time data (Parameterization) is handled in QTP?
- You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files.

By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP interview questions and answers - 1

6. What is keyword view and Expert view in QTP?
- Quick Test Professional Keyword Driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View. Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industry-standard VBScript that Quick Test Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View.
7. Explain about the Test Fusion Report of QTP?
- Once a tester has run a test, a Test Fusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining Test Fusion reports with Quick Test Professional, you can share reports across an entire QA and development team.
8. Which environments does QTP support?
- Quick Test Professional supports functional testing of all enterprise environments, including Windows, Web,..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services.
9. What is QTP?
- Quick Test is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, Quick Test Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and.NET framework applications
10. Explain QTP Testing process?
- Quick Test testing process consists of 6 main phases:
 Create your test plan - Prior to automating there should be a detailed description of the test including the exact steps to follow, data to be input, and all items to be verified by the test. The verification information should include both data validations and existence or state verifications of objects in the application.
 Recording a session on your application - As you navigate through your application, Quick Test graphically displays each step you perform in the form of a collapsible icon-based test tree. A step is any user action that causes or makes a change in your site, such as clicking a link or image, or entering data in a form.
 Enhancing your test - Inserting checkpoints into your test lets you search for a specific value of a page, object or text string, which helps you identify whether or not your application is functioning correctly. NOTE: Checkpoints can be added to a test as you record it or after the fact via the Active Screen. It is much easier and faster to add the checkpoints during the recording process. Broadening the scope of your test by replacing fixed values with parameters lets you check how your application performs the same operations with multiple sets of data. Adding logic and conditional statements to your test enables you to add sophisticated checks to your test.
 Debugging your test - If changes were made to the script, you need to debug it to check that it operates smoothly and without interruption.
 Running your test on a new version of your application - You run a test to check the behavior of your application. While running, Quick Test connects to your application and performs each step in your test.
 Analyzing the test results - You examine the test results to pinpoint defects in your application.
 Reporting defects - As you encounter failures in the application when analyzing test results, you will create defect reports in Defect Reporting Tool.

By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP interview questions and answers - 1

11. Explain the QTP Tool interface.
- It contains the following key elements: Title bar, displaying the name of the currently open test, Menu bar, displaying menus of Quick Test commands, File toolbar, containing buttons to assist you in managing tests, Test toolbar, containing buttons used while creating and maintaining tests, Debug toolbar, containing buttons used while debugging tests. Note: The Debug toolbar is not displayed when you open Quick Test for the first time. You can display the Debug toolbar by choosing View — Toolbars — Debug. Action toolbar, containing buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow. Note: The Action toolbar is not displayed when you open Quick Test for the first time. You can display the Action toolbar by choosing View — Toolbars — Action. If you insert a reusable or external action in a test, the Action toolbar is displayed automatically. Test pane, containing two tabs to view your test-the Tree View and the Expert View ,Test Details pane, containing the Active Screen. Data Table, containing two tabs, Global and Action, to assist you in parameterizing your test. Debug Viewer pane, containing three tabs to assist you in debugging your test-Watch Expressions, Variables, and Command. (The Debug Viewer pane can be opened only when a test run pauses at a breakpoint.) Status bar, displaying the status of the test
12. How does QTP recognize Objects in AUT?
- Quick Test stores the definitions for application objects in a file called the Object Repository. As you record your test, Quick Test will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by Quick Test), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the Quick Test script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.
13. What are the types of Object Repositories in QTP?
- Quick Test has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new tests, and you can change the default as necessary for each new test. The object repository per-action mode is the default setting. In this mode, Quick Test automatically creates an object repository file for each action in your test so that you can create and run tests without creating, choosing, or modifying object repository files. However, if you do modify values in an action object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an objectâۉ„¢s property values in one action, you may need to make the same change in every action (and any test) containing the object.
14. Explain the check points in QTP?
- A checkpoint verifies that expected information is displayed in an Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP. A page checkpoint checks the characteristics of an Application. A text checkpoint checks that a text string is displayed in the appropriate place on an Application. An object checkpoint (Standard) checks the values of an object on an Application. An image checkpoint checks the values of an image on an Application. A table checkpoint checks information within a table on a Application. An Accessibilityy checkpoint checks the web page for Section 508 compliance. An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application. A database checkpoint checks the contents of databases accessed by your web site
15. In how many ways we can add check points to an application using QTP?
- We can add checkpoints while recording the application or we can add after recording is completed using Active screen (Note : To perform the second one The Active screen must be enabled while recording).
By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP interview questions and answers - 1

16. How does QTP identify objects in the application?
- QTP identifies the object in the application by Logical Name and Class.
17. What is Parameterizing Tests?
- When you test your application, you may want to check how it performs the same operations with multiple sets of data. For example, suppose you want to check how your application responds to ten separate sets of data. You could record ten separate tests, each with its own set of data. Alternatively, you can create a parameterized test that runs ten times: each time the test runs, it uses a different set of data.
18. What is test object model in QTP?
- The test object model is a large set of object types or classes that Quick Test uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that Quick Test can record for it. A test object is an object that Quick Test creates in the test or component to represent the actual object in your application. Quick Test stores information about the object that will help it identify and check the object during the run session.
19. What is Object Spy in QTP?
- Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected objectâۉ„¢s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
20. What is the Diff between Image check-point and Bit map Check point?
- Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. Quick Test captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order to save disk Space. For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly. You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded). Note: The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings.
By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP interview questions and answers - 1
21. How many ways we can parameterize data in QTP?
- There are four types of parameters: Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test. Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, Quick Test uses a different value from the Data Table. Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that Quick Test generates for you based on conditions and options you choose. Random number parameters enable you to insert random numbers as values in your test or component. For example, to check how your application handles small and large ticket orders, you can have Quick Test generate a random number and insert it in a number of tickets edit field.
22. How do u do batch testing in WR & is it possible to do in QTP, if so explain?
- Batch Testing in WR is nothing but running the whole test set by selecting Run Test set from the Execution Grid. The same is possible with QTP also. If our test cases are automated then by selecting Run Test set all the test scripts can be executed. In this process the Scripts get executed one by one by keeping all the remaining scripts in Waiting mode.
23. If I give some thousand tests to execute in 2 days what do u do?
- Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.
24. What does it mean when a check point is in red color? what do u do?
- A red color indicates failure. Here we analyze the cause for failure whether it is a Script Issue or Environment Issue or a Application issue.
25. What is Object Spy in QTP?
- Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected objectâۉ„¢s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
By Jigar Gosai
Email: jigar.gosai@gmail.com

QTP interview questions and answers - 1
26. What is the file extension of the code file & object repository file in QTP?
- Code file extension is.vbs and object repository is.tsr
27. Explain the concept of object repository & how QTP recognizes objects?
- Object Repository: displays a tree of all objects in the current component or in the current action or entire test (depending on the object repository mode you selected). We can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits. If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description. If no assistive properties are available, then it adds a special Ordinal identifier such as objects location on the page or in the source code.
28. What are the properties you would use for identifying a browser & page when using descriptive programming?
- Name would be another property apart from title that we can use.
29. Give me an example where you have used a COM interface in your QTP project?
- com interface appears in the scenario of front end and back end. for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface. of which COM will be one among those interfaces. Create object creates handle to the instance of the specified object so that we program can use the methods on the specified object. It is used for implementing Automation(as defined by Microsoft).
30. Explain in brief about the QTP Automation Object Model.
- Essentially all configuration and run functionality provided via the Quick Test interface is in some way represented in the Quick Test automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in Quick Test have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the Quick Test automation object model, along with standard programming elements such as loops and conditional statements to design your program.

Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

Wednesday, April 7, 2010

Performance Test Plan







What to include in a performance test plan?

Before performance testing can be performed effectively, a detailed plan should be formulated that specifies how performance testing will proceed from a business perspective and technical perspective. At a minimum, a performance testing plan needs to address the following:
• Overall approach
• Dependencies and baseline assumptions
• Pre-performance testing actions
• Performance testing approach
• Performance testing activities
• In-scope business processes
• Out-of-scope business processes
• Performance testing scenarios
• Performance test execution
• Performance test metrics
As in any testing plan, try to keep the amount of text to a minimum. Use tables and lists to articulate the information. This will reduce the incidents of miscommunication.

Overall approach:
This section of the performance plan lays out the overall approach for this performance testing engagement in non-technical terms. The target audience is the management and the business. Example:
"The performance testing approach will focus on the business processes supported by the new system implementation. Within the context of the performance testing engagement, we will:
• Focus on mitigating the performance risks for this new implementation.
• Make basic working assumptions on which parts of the implementation need to be performance-tested.
• Reach consensus on these working assumptions and determine the appropriate level of performance and stress testing that shall be completed within this compressed time schedule.


This is a living document, as more information is brought to light, and as we reach consensus on the appropriate performance testing approach, this document will be updated."

Dependencies and baseline assumptions:

This section of the performance test plan articulates the dependencies (tasks that must be completed) and baseline assumptions (conditions testing believes to be true) that must be met before effective performance testing can proceed. Example:
"To proceed with any performance testing engagement the following basic requirements should be met:
• Components to be performance tested shall be completely functional.
• Components to be performance tested shall be housed in hardware/firmware components that are representative or scaleable to the intended production systems.
• Data repositories shall be representative or scaleable to the intended production systems.
• Performance objectives shall be agreed upon, including working assumptions and testing scenarios.
• Performance testing tools and supporting technologies shall be installed and fully licensed."

Pre-performance testing actions:

This section of the performance test plan articulates pre-testing activities that could be performed before formal performance testing begins to ensure the system is ready. It's the equivalent to smoke testing in the functional testing space. Example:
"Several pre-performance testing actions could be taken to mitigate any risks during
performance testing:
• Create a "stubs" or "utilities" to push transactions through the QA environment -– using projected peak loads.
• Create a "stubs" or "utilities" to replace business-to-business transactions that are not going to be tested or will undergo limited performance. This would remove any dependencies on B2B transactions.
• Create a "stubs" or "utilities" to replace internal components that will not be available during performance testing. This would remove any dependencies on these components.
• Implement appropriate performance monitors on all high-volume servers."

Performance testing approach

This section of the performance plan expands on the overall approach, but this time the focus is on the both the business and technical approach. As an example:
"The performance testing approach will focus on a logical view of the new system implementation. Within the context of the performance testing engagement, we will:
• Focus on mitigating the performance risks for this new implementation.
• Make basic working assumptions on which parts of the implementation need to be performance-tested.
• Reach consensus on these working assumptions and determine the appropriate level of performance that shall be completed.
• Use a tier 1 performance testing tool that can replicate the expected production volumes.
• Use an environment that replicates the components (as they will exist in production) that will be performance-tested -– noting all exceptions.
• Use both production and non-production (testing) monitors to measure the performance of the system during performance testing."

Performance testing activities

This section of the performance test plan specifies the activities that will occur during performance testing. Example:
"During performance testing the following activities shall occur:
• Performance test shall create appropriate loads against the system following agreed-upon scenarios that include:
o User actions (workflow)
o Agreed-upon loads (transactions per minute)
o Agreed-upon metrics (response times)
• Manual testing and automated functional tests shall be conducted during performance testing to ensure that user activities are not impacted by the current load.
• System monitors shall be used to observe the performance of all servers involved in the test to ensure they meet predefined performance requirements.
• Post-implementation support teams shall be represented during performance testing to observe and support the performance testing efforts."

In-scope business processes
This section of the performance test plan speaks to which aspects of the system are deemed to be in-scope (measured). Example:
"The following business processes are considered in-scope for the purposes of performance testing:
• User registration
• Logon/access
• Users browsing content
• Article sales & fulfillment
• Billing
Business process list formed in consultation with: Business Analysts, Marketing Analyst, Infrastructure, and Business Owner."

Out-of-scope business processes

This section of the performance testing plan speaks to which aspects of the system are deemed to be out-of-scope (measured). Example:
"Business processes that are considered out-of-scope for the purposes of testing are as follows:
• Credit check
o Assumption: Credit check link shall be hosted by a third party -- therefore no significant performance impact.
• All other business functionality not previously listed as in-scope or out-of-scope
o Assumption: Any business activity not mentioned in the in-scope or out-of-scope sections of this document does not present a significant performance risk to the business."

Formulating performance testing scenarios:
The existence of this section within the body of the performance testing plan depends on the maturity of the organization within the performance testing space. If the organization has little or no experience in this space, then include this section within the plan otherwise include it as an appendix. Example:
"Formulation of performance testing scenarios requires significant inputs from IT and the business:
• Business scenario
o The business scenario starts as a simple textual description of the business workflow being performance-tested.
o The business scenario expands to a sequence of specific steps with well-defined data requirements.
o The business scenario is complete once IT determines what (if any) additional data requirements are required because of the behavior of the application/servers (i.e. caching).
• Expected throughput (peak)
o The expected throughput begins with the business stating how many users are expected to be performing this activity during peak and non-peak hours.
o The expected throughput expands to a sequence of distinguishable transactions that may (or may not) be discernable to the end user.
o The expected throughput is completed once IT determines what (if any) additional factors could impact the load (i.e. load-balancing)
• Acceptance performance criteria (acceptable response times under various loads)
o Acceptance performance criteria are stated by the business in terms of acceptable response times under light, normal and heavy system load. System load being day-in-the-life activity. These could be simulated by other performance scenarios.
o The performance testing team then restates the acceptance criteria in terms of measurable system events. These criteria are then presented to the business for acceptance.
o The acceptance criteria are completed once IT determines how to monitor system performance during the performance test. This will include metrics from the performance testing team.
• Data requirements (scenario and implementation specific)
o The business specifies the critical data elements that would influence the end-user experience.
o IT expands these data requirements to include factors that might not be visible to the end user, such as caching.
o The performance testing team working with IT and the business creates the necessary data stores to support performance testing."

Performance test execution

Once again the existence of this section of the performance test plan is dependent upon the maturity of the organization within the performance testing space. If the organization has significant performance testing experience, then this section can become a supporting appendix. Example:
"Performance testing usually follows a linear path of events:
• Define performance-testing scenarios.
• Define day-in-the-life loads based on the defined scenarios.
• Execute performance tests as standalone tests to detect issues within a particular business workflow.
• Execute performance scenarios as a "package" to simulate day-in-the-life activities that are measured against performance success criteria.
• Report performance testing results.
• Tune the system.
• Repeat testing as required."

Performance test metrics:
The performance test metrics need to track against acceptance performance criteria formulated as part of the performance testing scenarios. If the organization has the foresight to articulate these as performance requirements, then a performance requirements section should be published within the context of the performance test plan. The most basic performance test metrics consist of measuring response time and transaction failure rate against a given performance load -- as articulated in the performance test scenario. These metrics are then compared to the performance requirements to determine if the system is meeting the business need.

For other Articles refer below links:

Cloud Testing
Cloud Testing

ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1

QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps


QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps

By Jigar Gosai
Email: jigar.gosai@gmail.com



Tuesday, April 6, 2010

Cloud Testing (Approach to Cloud Testing)







By Jigar Gosai (jigar.gosai@gmail.com)

Cloud Testing

Cloud Testing offers a suite of services that allow developers, testers and website managers to automate and speed up the testing of their websites using real browsers from the cloud. Cloud Testing operate a SaaS (Software as a Service) model, so there is no need to invest in any hardware, software or consultancy; our services provide all you need, leaving you to you concentrate on what you do best - developing, testing and running websites.

More related to Cloud Testing

Cloud testing is a form of software testing in which Web applications that leverage Cloud computing environments (“cloud”) seek to simulate real-world user traffic as a means of load testing and stress testing web sites. The ability and cost to simulate Web traffic for software testing purposes has been an inhibitor to overall Web reliability. The low cost and accessibility of the Cloud’s extremely large computing resources provides the ability to replicate real world usage of these systems by geographically distributed users, executing wide varieties of user scenarios, at scales previously unattainable in traditional testing environments.

Companies simulate real world Web users by using Cloud Testing services (provided by Cloud Service vendors such as Cloud Testing, SOASTA, Keynote Systems and Cloud-Intelligence). Once user scenarios are developed and the test is designed, these service providers leverage Cloud servers (provided by Cloud Platform vendors such as Amazon.com, Google, Rackspace, etc.) to generate Web traffic that originates from around the world. Once the test is complete, the Cloud Service providers deliver results and analytics back to corporate IT professionals through real-time dashboards for a complete analysis of how their applications and networks will perform during peak volumes.

Cloud Testing Limited is a UK based company who provide Functional Website Testing from the cloud. Users can write their own scripts for running on the Cloud Testing servers using real browsers, and see the results of the tests, including browser screen captures, HTML source and detailed diagnostic information for all components (HTTP headers, timings etc.).

Approach to Cloud Testing

Overview Small and medium-sized companies needed to have fast, secure and scalable IT infrastructure, in order to cope - up with business needs. But these companies lack the ability to have this setup in-premise. The reason could be the huge capital investment that goes into the growing needs of the IT infrastructure, staff and the expertise to administer. This becomes a burden and prevents them from focusing on their core business. But the solution has its own challenges in terms of security, reliability, and manageability, which organizations should focus on by rigorous testing. Third-party independent testing service providers with niche capabilities in the areas of performance testing, security testing, reliability testing, experience in virtualization technologies and investments in hardware infrastructure are better suited to do this work.

By Jigar Gosai (jigar.gosai@gmail.com)


ISTQB Sample Paper - 3





ISTQB Sample Paper - 3 (ISTQB Certification Dumps)

1. The _____ method is the classic approach to project management, especially to the management of large projects.
a. Agile
b. Waterfall
c. code and fix
d. iterative/evolutionary


b. waterfall
Testing Computer Software p.258 Syllabus Section 2.1.1
“The waterfall method is the classic approach to project management, especially to the management of large projects. ”

2. …life-cycle models can be considered evolutionary or incremental in the sense that a given release grows up around a core of features that are delivered, often on dynamic dates.
a. True
b. False


b. False
Managing the Testing Process p.417 Syllabus Section 2.1.2
“…life-cycle models can be considered evolutionary or incremental in the sense that a given release grows up around a core of features that are delivered, often on a predetermined date. ”

3. Testing throughout the project in a three-dimensional sense refers to the following dimensions:
a. Time, Resources, and Risk
b. Verification, Validation, and Defect Reporting
c. Time, Organizational, and Cultural
d. None of the above


c. Time, Organizational, and Cultural.
Managing the Testing Process p.428 Syllabus Section 2.1.3
Paragraph on Testing throughout the project. Testing throughout the project in a three-dimensional sense refers to the following dimensions: Time, Organizational, and Cultural.

4. What are appraisal costs?
a. All testing costs and the costs of everything else the company does to look for errors.
b. Everything the company spends to prevent software and documentation errors.
c. All costs of coping with errors discovered during development and testing.
d. All costs of coping with errors discovered, typically by your customers, after the product is released.


a. All testing costs and the costs of everything else the company does to look for errors.
Testing Computer Software p.265 Syllabus Section 2.1.3
“Appraisal Costs are: all testing costs and the costs of everything else the company does to look for errors.”

5. The _____ starts testing during the “Fragments Coded: first functionality” development stage?
a. programmer
b. end user
c. tester, programmer’s assistant, someone
d. A & C

d. A & C
Testing Computer Software p. 275 Syllabus Section 2.2
“Testing Activities After First Functionality: …The programmer does unit testing. Someone (programmer, tester, programmer’s assistant, someone) should start testing the program from the outside.”

6. During the component or subsystem testing, testers focus on bugs in constituent pieces of the system.
a. True
b. False


a. True
Managing the Testing Process p.6 Syllabus Section 2.2.1
“During the component or subsystem testing, testers focus on bugs in constituent pieces of the system.”

7. Select a reason that does not support the idea of incremental testing:
a. It is easier to pin down the cause of an error.
b. The programmer can see internal boundaries in the code that are completely invisible to the outside tester.
c. Testing of only one module, any errors are either in that module or in a simple program wrote to test it.
d. The programmer focuses on each module individually, which yields to better test coverage.

b. The programmer can see internal boundaries in the code that are completely invisible to the outside tester.
Testing Computer Software p.42 and 45 Syllabus Section 2.2.2
“Internal boundaries: The programmer can see internal boundaries in the code that are completely invisible to the outside tester.” p. 42
Valid reasons to support incremental testing can be found on p. 45 in the second paragraph.


8. Integration testing:
a. involves testers look for various types of bugs in the entire system, fully integrated.
b. involves testers looking for bugs in the relationships and interfaces between pairs and components of groups of components in the system under test.
c. occurs often in a staged fashion.
d. B & C
e. A & B

d. B & C
Managing the Testing Process p.6 Syllabus Section 2.2.2
“Integration or product testing involves testers looking for bugs in the relationships and interfaces between pairs and components of groups of components in the system under test, often in a staged fashion.”

9. System testing tends toward the _____ area of the testing spectrum.
a. behavioral
b. functional
c. performance
d. reliable


a. behavioral
Managing the Testing Process p.7 Syllabus Section 2.2.3
“System testing tends toward the behavioral area of the testing spectrum.”

10. A test run during System Testing is:
a. Error recovery.
b. Terminal handling.
c. Installation.
d. Keyboard handling.


a. Error recovery
Testing Computer Software p.54-57 Syllabus Section 2.2.3
“SOME TESTS RUN DURING FUNCTION AND SYSTEM TESTING“

11. Acceptance testing is:
a. validating end-to-end functionality based upon requirements.
b. checking whether the software is stable enough to be tested.
c. testing usability of the systems interfaces.
d. None of the above.


b. checking whether the software is stable enough to be tested.
Testing Computer Software p.51 Syllabus Section 2.2.4
“Acceptance testing
Each time you receive a new version of the program, check whether it’s stable enough to be tested.”

12. Acceptance testing is the demonstration that a system meets requirements.
a. True
b. False


a. True
Managing the Testing Process p.7 Syllabus Section 2.2.4
“Acceptance testing, in contrast, often tries to demonstrate that a system meets requirements.”

Anyone concerned about the contradiction between this answer and the one provided in question #11? The books have distinctly different interpretations of the term Acceptance Test.

13. Which is not indicative of Black Box testing?
a. Performed by the testing group
b. Identifies how previous fixes have caused side effects.
c. Identifies how previous fixes failed.
d. Fails to identify masked bugs because it skips regression testing.

d. Fails to identify masked bugs because it skips regression testing.
Testing Computer Software p.50 Syllabus Section 2.3, 2.3.1
“BLACK BOX TESTING ”

14. Functional tests are:
a. sometimes has the same meaning as behavioral tests.
b. simultaneously designing, developing, and executing tests.
c. must be augmented with other test approaches to deal with potentially important quality risks such as performance, load, capacity, and volume.
d. A & C.

d. A & C.
Managing the Testing Process p.473 Syllabus Section 2.3.1
“Functional tests: Sometimes this phrase has the same meaning as behavioral tests… must be augmented with other test approaches to deal with potentially important quality risks such as performance, load, capacity, and volume…”

15. The difference between volume tests and stress tests is:
a. Testing the audio components of an application vs. testing the breaking point of the system under load.
b. The study of the program’s ability to deal with the largest task vs. the study of the program’s response to peak bursts of activity.
c. The ability of a system to sustain load vs. the ability of a system to handle imported fields a large size.
d. None of the Above

b. The study of the program’s ability to deal with the largest task vs. the study of the program’s response to peak bursts of activity.
Testing Computer Software p.55 Syllabus Section 2.3.2
“Volume tests study the largest task a program can deal with.”
“Stress tests study the program’s response to peak bursts of activity.”

16. Structural testing is not:
a. glass box testing.
b. proper selection of program or subprogram paths.
c. feeding the component input and examining the output.
d. exercised during the battery of tests.


c. feeding the component input and examining the output.
Testing Computer Software p.42 Syllabus Section 2.3.3
“Structural testing is glass box testing. The main concern is proper selection of program or subprogram paths to exercise during the battery of tests.”

ISTQB Sample Paper - 3 (ISTQB Certification Dumps)

17. As a result of a change in the system under test, a new revision of the system, Sn+1, contains a defect not present in revision Sn, the quality of the system is has progressed:
a. True
b. False


d. False
Managing the Testing Process p.102 Syllabus Section 2.3.4
“As a result of a change in the system under test, a new revision of the system, Sn+1, contains a defect not present in revision Sn, the quality of the system is has regressed.”

18. In order to reduce the time needed for regression testing you can apply the following method(s):
a. Automate if you can.
b. Combine test cases.
c. Designate some tests for periodic testing.
d. Narrow focus of your testing scope.

a. Automate if you can.
b. Combine test cases.
c. Designate some tests for periodic testing.
Testing Computer Software p.140-141 Syllabus Section 2.3.4
“REGRESSION TESTING: THE STANDARD BATTERY OF TESTS”

19. Maintenance testing of the retirement of a system may include:
a. Operations tests of the changed software.
b. The testing of data migration.
c. Archiving if long data-retention periods are required.
d. B or C.

d. B or C.
CTFL Syllabus p.26 Syllabus Section 2.4
“Maintenance testing for the retirement of a system may include the testing of data migration or archiving if long data-retention periods are required.”


20. Acceptance testing may occur at more than just a single test level. With the exception of:
a. A COTS software product may be acceptance tested when it is installed or integrated.
b. Acceptance testing of the usability of a component may be done during component testing.
c. Acceptance testing after a change has been released to the user community.
d. Acceptance testing of a new functional enhancement may come before system testing.

c. Acceptance testing after a change has been released to the user community.
CTFL Syllabus p.22 Syllabus Section 2.2.4
“Acceptance testing may occur as more than just a single test level, for example:
– A COTS software product may be acceptance tested when it is installed or integrated.
– Acceptance testing of the usability of a component may be done during component testing.
– Acceptance testing of a new functional enhancement may come before system testing.”

ISTQB Sample Paper - 3 (ISTQB Certification Dumps)
Jigar Gosai
Email: jigar.gosai@gmail.com


Monday, April 5, 2010

ISTQB Sample Paper - 2

1. Test granularity refers to:
a. Any way of determining the expected result for a test case.
b. A quality improvement idea common in software development.
c. The fineness or coarseness of a test’s focus.
d. The impact of a bug on the system under test.
c. The fineness or coarseness of a test’s focus.
Managing the Testing Process p.2 Syllabus Section 1.2
“Test granularity refers to the fineness or coarseness of a test’s focus”

2. The prime benefit of testing is that it results in improved defects
a. True
b. False
b. False
Testing Computer Software p.26 Syllabus Section 1.2
“The prime benefit of testing is that it results in improved quality”

3. A bug report is a:
a. A collection of independent, reusable test cases.
b. A technical document that describes the various symptoms or failure modes associated with a single bug.
c. A deliverable that details the strategic approach to a testing effort
d. A & B
b. A technical document that describes the various symptoms or failure modes associated with a single bug.
Managing the Testing Process p.122 Syllabus Section 1.1.2
“A bug report is a technical document that describes the various symptoms or failure modes associated with a single bug.”

4. A software error can be described as:
a. A description of the relationship between two or more variables or set members in which the value of one does not influence the values of others.
b. Any ill-advised, substandard, or temporary fix applied to an urgent problem in the (often misguided) belief that doing so will keep a project moving forward.
c. The process in which developers determine the root cause of a bug and identify possible fixes.
d. A mismatch between the program and its specification.

d. A mismatch between the program and its specification.
Testing Computer Software p.60 Syllabus Section 1.1.2
“One common definition of a software error is a mismatch between the program and its specification.”

5. Select a reason that does not agree with the fact that complete testing is impossible:
a. The domain of possible inputs is too large to test .
b. Limited financial resources .
c. There are too many possible paths through the program to test .
d. The user interface issues (and thus the design issues) are too complex to completely test.

b. Limited financial resources
Testing Computer Software p.18 Syllabus Section 1.1.3
“Here are three reasons that complete testing is impossible:
• The domain of possible inputs is too large.
• There are too many possible paths through the program to test.
• The user interface issues (and thus the design issues) are too complex to completely test. “

6. Testing looks for situations in which a product fails to meet the developer’s expectations in specific areas.
a. True
b. False

b. False
Managing the Testing Process p.11 Syllabus Section 1.1.3
“Testing looks for situations in which a product fails to meet customers’ or users reasonable expectations in specific areas.”

7. Select a reason that does not support the idea of using separate test plans for test subprojects that are distinct in one or more ways:
a. Different time periods
b. Different resources
c. Different methodologies
d. Different objectives
e. Different audiences

a. Different resources
Managing the Testing Process p.46 Syllabus Section 1.4.1
“ How Many Test Plans?
• Different time periods
• Different methodologies
• Different objectives
• Different audiences“
8. The testing effort begins with
a. Test planning
b. Test case design
c. Test execution
d. B & C
e. A & B

e. A & B
Testing Computer Software p.51 Syllabus Section 1.4.1
“ The testing effort starts when you begin test planning and test case design.“

9. Testing during the design stage involves:
a. Examining the design documents
b. Reading drafts of the planning documents
c. Acceptance or qualification testing
d. None of the above


a. Examining the design documents
Testing Computer Software p.39 Syllabus Section 1.4.2
“TESTING DURING THE DESIGN STAGE“


10. A well-designed test system promotes:
a. Principles
b. Actions
c. Resources
d. Accountability


d. Accountability
Managing the Testing Process p.39 Syllabus Section 1.4.2
“A well-designed test system promotes accountability“
11. When testing operating systems or applications, the first step of testing a new build should consist of :
a. Notifying test lead
b. Updating requirements
c. Testing the upgrade/installation procedures
d. A & B


c. Testing the upgrade/installation procedures
Managing the Testing Process p.216 Syllabus Section 1.4.3
“When testing operating systems or applications, for example, the first step of testing a new build should consist is to test the installation or upgrade procedures, which should result in a configured test environment.”

12. The general rule of test execution is that you must always create a test procedure that will force the program to use the data you’ve entered and to prove that it is using your data correctly.
a. True
b. False


a. True
Testing Computer Software p.141 Syllabus Section 1.4.3
“The general rule of test execution is that you must always create a test procedure that will force the program to use the data you’ve entered and to prove that it is using your data correctly.”

13. Which is not a goal of writing effective Problem/Bug reports?

a. Illustrate how to fix the problem
b. Explain how to reproduce the problem
c. Analyze the error so you can describe it in a minimum number of steps
d. Write a report that is complete, easy to understand, and non-antagonistic

a. Illustrate how to fix the problem
Testing Computer Software p.65-66 Syllabus Section 1.4.4
“To write a fully effective report you must:
a. Explain how to reproduce the problem
b. Analyze the error so you can describe it in a minimum number of steps
c. Write a report that is complete, easy to understand, and non-antagonistic ”

14. Which of the following displays an exit criterion for the test team?
a. All software released to the test team is accompanied by release notes
b. The test team has executed the entire planned tests against the application under test.
c. Twice-weekly bug review meetings (under the Change Control Board) occur until System Test Phase Exit to manage the open bug backlog and bug closure times.
d. The Development teams have unit-tested all features and bug fixes scheduled for release.

b. The test team has executed the entire planned tests against the application under test.
Managing the Testing Process p.55-56 Syllabus Section 1.4.4
“System Test will end when:
4. The test team has executed the entire planned tests against the GA-candidate software.”

13. Which is not a goal of writing effective Problem/Bug reports?
a. Illustrate how to fix the problem
b. Explain how to reproduce the problem
c. Analyze the error so you can describe it in a minimum number of steps
d. Write a report that is complete, easy to understand, and non-antagonistic

a. Illustrate how to fix the problem
Testing Computer Software p.65-66 Syllabus Section 1.4.4
“To write a fully effective report you must:
a. Explain how to reproduce the problem
b. Analyze the error so you can describe it in a minimum number of steps
c. Write a report that is complete, easy to understand, and non-antagonistic ”

14. Which of the following displays an exit criterion for the test team?
a. All software released to the test team is accompanied by release notes
b. The test team has executed the entire planned tests against the application under test.
c. Twice-weekly bug review meetings (under the Change Control Board) occur until System Test Phase Exit to manage the open bug backlog and bug closure times.
d. The Development teams have unit-tested all features and bug fixes scheduled for release.

b. The test team has executed the entire planned tests against the application under test.
Managing the Testing Process p.55-56 Syllabus Section 1.4.4
“System Test will end when:
4. The test team has executed the entire planned tests against the GA-candidate software.”

15. The daily closure period refers to:
a. The average for all closed bugs, including the current day and all previous days
b. The amount of bugs opened over a 24 hour period
c. The average number of days between the opening of a bug and its resolution for all bugs closed on the same day.
d. None of the Above

c. The average number of days between the opening of a bug and its resolution for all bugs closed on the same day.
Managing the Testing Process p.157,161 Syllabus Section 1.4.5
“Daily closure period refers to the average number of days between the opening of a bug and its resolution for all bugs closed on the same day.”

16. Integrity testing involves:
a. The testing of pseudo code
b. Performance testing
c. Alpha testing
d. The final phase of testing prior to deployment


d. The final phase of testing prior to deployment .
Testing Computer Software p.300 Syllabus Section 1.4.5
“Other companies do one last wave of tests before mastering disks. This is often called integrity testing.”

17. Testing literature reflects and promotes a strongly held belief that product reliability will not be better if testing is done by a fully independent test agency.
a. True
b. False


d. False
Testing Computer Software p.350 Syllabus Section 1.5
“Testing literature reflects and promotes a strongly held belief that product reliability will be better if testing is done by a fully independent test agency.”

18. Select the item(s) that are general testing principles:
a. Testing shows a presence of defects
b. Exhaustive testing is impossible
c. Automation tools can be a great strategy
d. Absence-of-errors fallacy

a. Testing shows a presence of defects
b. Exhaustive testing is impossible
d. Absence-of-errors fallacy
CTFL Syllabus p.13 Syllabus Section 1.3
“Principle 1 - Testing shows a presence of defects
Principle 2 - Exhaustive testing is impossible
Principle 7 – Absence-0f-erros fallacy”

19. Which is not a major task of test implementation and execution:
a. Develop and prioritizing test cases, creating test data, writing test procedures and optionally, preparing test harness and writing automated test scripts.
b. Logging the outcome of test execution and recording the identities and versions of the software under test, test tools and testware.
c. Checking test logs against the exit criteria specified in test planning.
d. Verifying that the test environment has been set up correctly.

c. Checking test logs against the exit criteria specified in test planning.
CTFL Syllabus p.15 Syllabus Section 1.4.3
“Test implementation and execution has the following major tasks:”

20. Select the item(s) that compose test objectives:
a. Finding defects
b. Gaining confidence about the level of quality and providing information
c. Preventing defects
d. Utilization of testware

a. Finding defects
b. Gaining confidence about the level of quality and providing information
c. Preventing defects
CTFL Syllabus p.12 Syllabus Section 1.2
“There can be different test objectives
• finding defects;
• gaining confidence about the level of quality and providing information;
• preventing defects”


Jigar Gosai | jigar.gosai@gmail.com