Saturday, December 11, 2010
When can we stop testing?
This depends on number of factors:
1)In case all the planned test cases have been executed
2)In case deadlines are over
3)Defect density(Number of Bugs/Lines of code) reduces
4)No more bugs are found with execution of test cases
5)Alpha and Beta Testing are over
Test Strategy
Test strategy is a high level static document which is not subjected to changes or modifications again and again.This document is created to cater Business requirements and needs.Test plan takes it contents from Test Strategy only.
In some cases test plan includes test strategy but that happens in case of small projects for bigger projects Test strategy is the main document that contains:
1)Scope
2)Risks and mitigation plan
3)Test metrics
4)Test deliverable
5)Industry standards to follow
6)Business requirements to cater
Wednesday, November 3, 2010
Hybrid Framework in QTP
Monday, November 1, 2010
QTP Queries
Some questions Related to QTP:
Q. In how many ways data can be provided to the script?
-Data can be provided to the script in below mentioned ways:
a) Data table
b) Environmental Variable
c) Random numbers
Q. How many types of data table are there and what is the difference between them?
-There are two types of Data Tables:
a) Local-Local data table is one which is associated with individual action and data from which can only be called by that action
b) Global-Global data table is one which is associated with all the actions and data from Global data table can be called from any action.
Q. Can data be copied from Global to Local Datasheet?
-Yes, Using export and import functionality this can be done.
Q. What is Ordinal Identifier in context with object properties?
-In case QTP has to identify object properties of two similar objects then it uses Ordinal Identifier to identify different properties of two objects based on:
Index
Location
Time
Q. What are different Ordinal Identifiers for Window and Web based applications?
-Default ordinal identifier for windows application is Location whereas for web applications it is creation time.
Q. What is the Folder structure that needs to be created while working on Hybrid framework?
-The folder structure would be:
a) Function Library
b) Object Repository
c) Recovery Scenario
d) Scripts
e) Test Data
f) Test Results
Q. What is the difference between Synchronization Point and Wait in QTP?
- Synchronization Point: Synchronization Point makes available specified amount of time for an object to process before moving on to next time. In case a specific web page loads QTP moves ahead in case of Synchronization E.g. Loading of a web page
Synchronization is enabled only during recording.
-Wait: Wait is like forcing QTP to wait for specified period of time. If the wait time is 10 sec and page loads in 3 sec, still the QTP waits for 7 more seconds
Q. What is Object Repository?
-Object repository stores the object properties.
Q. What is Shared and Local Object Repository?
-Shared OR (.tsr)-This is one object repository that could be shared across all the Actions and any changes made to this are available for all actions.
-Local OR (.mtr)-This is one object repository that is associated to individual Actions and cannot be shared across other actions.
Q. What is recovery Scenario in QTP?
-Recovery scenario helps QTP to recover any unexpected error that might occur during run time.
QTP can handle 4 types of exceptions:
1. Pop up
2. QTP Run error
3. Application Crash
4. Object State error
Recovery scenario will wait till the Global Synchronization time i.e. 20 sec
It has 3 main parts:
We would take an example of a pop up that appears once we try to login which asks user to whether he wants the password to be remembered or not.
A) Trigger Even-In this part we would define occurrence of this Pop up
B) Recovery Scenario –In this part we would let QTP know what it has to do when pop up appears i.e. whether to click Yes or No on that Pop up
C) Post Recover Scenario-Here we would let QTP know what has to be done once it has recovered from this scenario i.e. to repeat the current step or move to next.
Q. What are steps before actually running the scripts?
-Create the required framework
-Record the scripts
-Create the required Object Repository (OR)
-Associate you OR to Your actions
-In case any recovery scenarios are there then those have to be defined
-Insert the required checkpoints and do any customizations that are required in the recorded script
-Run the script
Q. How to create a function and call it from Script?
-Creating a function is a simple step wherein required function is created on notepad and save them as .vbs under folder Function Library
-Now on QTP File-->Settings-->Resources-->Add the file saved in function library
-Associate your function Library to your Action
-Call the Function from the Action
Q. What are different checkpoints in QTP?
-Image Checkpoint: Covered under standard Checkpoint image checkpoint checks the exact content of the image
-Bitmap Checkpoint: Compares area of the two images pixel by pixel, so there may be a case where it pass the test where there are two different images but of same size or pixel
-Table Checkpoint: Checks the content of a table, it is a part of Standard Checkpoint
-Text Checkpoint: Text checkpoints checks the exact content of the Text under consideration
-Text Area Checkpoint: Checks the exact Area of the text irrespective of the content
-Database Checkpoint: It checks whether the content entered on UI is actually inserted into database
-XML Checkpoint: Used to check contents of XML, basically used for testing web services
-Page Checkpoint: It checks properties of a web page which includes checking broken links and images; it is a part of Standard Checkpoint
-Accessibility Checkpoint: Usually done for people who are visually impared. There are some standards which needs to be included in the code which would initiate some tags so website would speak when a blind person use that mouse on website e.g. Tooltip
Q. What is the difference between Public and Private Variable?
-Public variables are those which can be used in all the Actions
-Private variables are those which can only be used in those actions
Q. What is the file extension of Function library?
-The file extension for Function library is .qfl
Q. What is the role of Object Spy?
-Object spy is used to get properties of any object
Q. What is output value in QTP and how it has been used?
-Whenever system generates some values and we have to pick that value we use Output Value.
Q. How to import data from DB into Data table?
-Flow for importing is:
Import-->Database-->Specify SQL Statement-->Create Connector-->Machine DSN-->Select -->OK-->Write Query
Tuesday, October 5, 2010
ISTQB Foundation Level exam-A Go Through
International Software Testing Qualification Board
Who can appear for the exam?
There is no prior work experience required before a person appears for this exam but personally I think it’s better to go for this Certification with at least an year of experience working in the software testing field.
Advantages:
1) It’s easy to understand the concepts and relate them to the work done.
2) In case a person is from some different stream(in my case I did my Engineering from Electrical Branch) he/she might not be aware of some basic terms used in IT, which I think is very important to know and understand to increase your chances to crack the exam.
Exam Pattern:
1) Total number of Questions 40
2) All questions are multiple choice questions with only one option as correct option
3) Pass percentage is 65% i.e. in order to clear the exam one has to crack more then 26 questions
4) Also I think the exam is going online from somewhere September 2010
5) There is no negative marking in the exam
6) All the questions are same but the order is different, so most probably you would not have anybody in your close proximity with same order as yours.
7) The questions are mainly 1 mark, 2 marks and 3 marks.
Study material:
If I tell you with my experience two main ingredients for clearing ISTQB Foundation exam:
-Book titled as Foundations of Software Testing by Dorothy Graham, Erik Van Veenendaal, Isabel Evans and Rex Black. This is the best book for Foundation level exam.
-The glossary that can be downloaded from official site of Indian Testing Board.
-Also while preparing for the exams keep watch on K1, K2 and K3 levels because each one of these has corresponding importance.
-For sample question papers search on Internet you would find numerous of them, when I appeared for the exam I had hard copies of most of them but no soft copies.
Time required for preparation of the exam: This is something that depends on an individual, someone who is good at connecting different scenarios with real time situations might take less time but to grasp all the glossary terms you definitely need time. So I would say dedicated 2 weeks time is sufficient to clear this certification.
-Do we require any prior knowledge of any Automation tool before appearing for ISTQB Foundation Level Exam?
The answer is no. You don’t need to have knowledge of any particular automation tool but yes there is one chapter Test Tools & Automation which gives an outlook of why and how the automation is required in Testing life cycle, going through this chapter would be enough to handle questions based on this part.
What you gain by clearing ISTQB Foundation Level Certification?
-You will be able to clear most of you Manual Testing concepts.
-It would help you to understand Process oriented Testing.
-Would make you eligible for appearing for ISTQB advance level Exams
-Would definitely add a value to your CV :)
The blog is open for any comments or queries that you have, feel free to post any questions related to ISTQB Foundation Level exam
Friday, September 24, 2010
Bug Life Cycle-Definitions and different Severities and Priorities
New-Whenever a bug or defect is produced by the concerned stakeholder, a new bug is opened.
Assigned-The respected bug is assigned to the concerned developer
Fixed-Once the developer fixes the bug he marks it as fixed
Verified-Once the bug is fixed by the developer, the concerned Tester would verify whether the bug has been fixed or not.
Re-opened-In case the bug has not been fixed the bug would be marked as Reopened so that it would be assigned again to a developer and cycle would be repeated.
Closed-Once the Tester confirms that the bug has been fixed he would mark it as Closed.
Definition of Different Priorities:
-Priorities
P1-Cannot ship the product/project without this
P2-It is highly desirable and planned for this release but it would not stop the shipping of the build
P3-It is of interest but not planned for this release.
-Severity
Blocker- Prevents function from being used, no work-around, blocking progress on multiple fronts
Critical- Prevents function from being used, no work-around
Major- Prevents function from being used, but a work-around is possible
Normal- A problem making a function difficult to use but no special work-around is required
Minor- A problem not affecting the actual function, but the behavior is not natural
Trivial- A problem not affecting the actual function, a typo would be an example
Enhancement-Something that can be good to have but not necessary to be included in the current release
-Low Severity and High Priority:
UI issue on website, spelling mistake it is of low severity but of high priority as it affects the business
-High Severity and Low Priority:
If there is an application if that application crashes after multiple use of any functionality (E.g. :- save Button use 200 times then that application will crash)
Means High Severity because application crashed but Low Priority because no need to debug right now you can debug it after some days.