Sie sind auf Seite 1von 2

1. What is the significance of regular expression in QTP?

ANS: Regular expression is always used to make our search globalize.


To execute the test in QTP every object is searched in the object repository (OR). In
real time applications some object's properties always keep changing so at the
time of execution script fails. To overcome it we use "regular expression" for
that particular object's property. For example:
1) Record a test where you are inserting one order and than faxing the same order.
2) The order number that is generated during recording may 21 and Fax Order window title is
generated and saved into OR as Fax Order No. 21
3) Now execute the same test the script will fail because this time order no is modified as 22 and
accordingly Fax Order window title is modified as Fax Order No. 22 .
4) This time the object Fax Order No. 22 is not identified or you can understand object is not
matched (find) into OR.
5) To make this search better we modify the text property of object into OR as Fax Order No.*
this will search all the
occurrences of window that has text as Fax Order No
6) We can also write it as Fax Order No. [0-9] because fax order no is a numerical value and
this will search only numbers after Fax Order No.
So this is the purpose of regular expression in QTP.

2. What are the limitations of QTP encountered while Automating Share Point application?
ANS: So far the limitation that I have identified during Share point application
testing through QTP is that in share point application many actions are based
on "mouse over".
At the time of recording following statement is recorded –
Browser("Home -").Page("CTDProfiles").Image("Edit").FireEvent "onmouseover"
but during playback script fails.
As well as some functions are based on "right click" event like view or update
or delete record again QTP record it as "image click" and the statement recorded
as follows-
Browser("Home -").Page("CTDProfiles").Image("Edit").Click
Again the script will fail because QTP do not perform right click operation.
So these are the limitation I have encountered during my testing.

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


ANS: QTP Operates stand-alone, or integrated into Mercury Business Process Testing and
Mercury Quality Center.
Introduces next-generation “zero-configuration” Keyword Driven testing technology in QuickTest
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

4. What is the difference between check point and output value?


check point means inserting code to verify something existing in the application or not.

output value means getting some information from the application and plasing in the output
datatable(internal excel sheet).
you can see the output data by opening the results file after the script execution.
example:
suppose if u want to check some text QTP existing in your application or not use checkpoint.
suppose if you want get some text QTP from your application and to place that in some file use output
values
5. What is the limitation to XML Checkpoints?

--Mercury has determined that 1.4 MB is the maximum size of a XML file that QTP 6.5 can handle.
--It is basically a document in which a limited data can be stored in a generic format.

6. Difference Between text and Text area checkpoints in QTP

Text Check Point only validates the values of specified object.


Text area searches the entire length of the selected area and validates the screen value. It's a good
practice the use Text area check point than the text checkpoint.
Example: when you validate Seenu using a Text checkpoint It passes. The next time in the next
iteration when it comes across CHIRANJEEVI and Trisha Romance Scene ............it fails.

7. How do we decide as to which recording mode from Context Recording (Normal), Analog Recording or
Low Level Recording do we select for an application? What is uniqueness in each recording mode?
ANS: QTP support three Recording modes.
Normal Recording:
1) Default Mode of Recording
2) Shortcut Key F3
3) Record all object if their Add Ins is installed

Analog Recording:
1) Enables you to record exact keyboard and mouse movements in relation to
either the application window or Screen. Useful for such operations that can
not be recorded at the level of objects like Signature Drawing Images.
2) Record the exact coordinates and save in a track file. That file can not be
editable and can not be seen in expert View. This file is associated with
Actions
3) Analog Recording is of two type
a) Relative to screen
b) Relative to Application Window

Low Level Recording:

Enable to record the Object either QTP is unable to recognize the Object or
Specific operation.This can be recorded at the level of Objects.

Das könnte Ihnen auch gefallen