Monday, July 19, 2010

Object Recognition in QTP

How QTP Learns Objects?First, it "looks" at the object being learned and stores it as a test object,
determining in which test object class it fits.QuickTest might classify the test object as a standard
Windows dialog box (Dialog), a Web button (WebButton), or a Visual Basic
scroll bar object (VbScrollBar), for example.
Then, QuickTest "considers" identification properties for the test object. For
each test object class, QuickTest has a list of mandatory properties that it
always learns;
When QuickTest learns an object, it always learns
these default property values, and then "looks" at the rest of the objects on the page, dialog box, or other parent object to check whether this
description is enough to uniquely identify the object. If it is not, QuickTest adds assistive properties, one by one, to the description, until it has
compiled a unique description;
If no assistive properties are available, or if those available are not sufficient to create a unique description, QuickTest
adds a special ordinal identifier, such as the object’s location on the page or
in the source code, to create a unique description
How QuickTest Identifies Objects During the Run Session ?QuickTest searches for a run-time object that exactly matches the description of the test object it learned previously. It expects to find a perfect match for both the mandatory and any assistive properties it used to create a unique description while learning the object. As long as the object in the application does not change significantly, the description learned is almost always sufficient for QuickTest to uniquely identify the object. This is true for most objects, but your application could include objects that are more difficult to identify during subsequent run sessions.
QuickTest uses process of elimination with its Smart Identification mechanism to identify an object, even when the learned description is no longer accurate. Even if the values of your identification
properties change, QuickTest maintains your test’s reusability by identifying the object using Smart Identification.

Source: QTP Manuals.

Software Testing Articles

Priority & Severity

Priority : How soon / when a defect should be fixed?
Severity : How bad, the defect has impact on the application?
Suppose u have the website “Google” and the home page is having two fields “Username” and “Password”.
Case 1: If the user try to login after entering the credentials and is not able to do so – High Priority High Severity.
Case 2: If the letter ‘o’ is missing from the website logo ‘Google’ hampering the organisation’s reputation but not affecting any of the functionality – High Priority Low Severity
Case 3: If the help option from the browser is displaying blank on clicking it – Low Priority High Severity (From functional point of view this error is sever but from a practical standpoint, not every one opening the browser will go for the help option)
Case 4: On logging into any website if the home page is not displaying a comma (‘,’) between two words which it should have displayed
(cosmetic issue) – Low Priority Low Severity.

Who decides Priority & Severity?That depends on the project; In general Severity is decided by the tester and the priority is decided by the Business ( Managers, some times includes the inputs from developers & Testers)

JOKES

Terrorist

Teacher: What do you mean by terrorist?Student: Terrorist is a tourist who comes from other country to celebrate Diwali in our country.

Women Shopping Offer:

Sign at a woman`s shoe shop.`Ten percent discount on shoes purchased within ten minutes.`

Lawyer and the Truth:

Judge: Do u have a lawyer?Prisoner: No.Judge: Don`t u need one?Prisoner: No, Sir. I don`t need one. I am going 2 tell d truth.

Luck:

Banta: I have no luck with woman.
Santa: Lucky fellow.

Human Nature about Error:

To err is human.But to blame it on the other guy is even more human.


Banta was d official driver of a minister.The minister: Banta let me drive d car 2day.Banta: Sir, it is a car & not d sarkar which anyone can drive.
Sign outside a meat shop.`Always pleased to meet you - always meat to please you.`
Wife: What is so interesting in me?Husband: I don`t know the meaning of interesting