Disadvantages are
* QTP takes very long to open huge tests. Also CPU utilization becomes 100% in that case.
* QTP scripts are heavy as it stores all the html files (for active screen) as well.
* Block commenting is not provided till 8.2 version.
c
*
: filename.mtr (Mercury Test Repository)
*
: filename.tsr (Test Shared Repository)
* !
"
#
: filename .vbs
* $ #
: filename .mtb
*
%
#
: filename .qrs
c
Yes we can do. That is scripting we can write script which is more effective
c
%
With out mentioning the description in Object repository, we can directly mention the description in
Test script is known as descriptive programming
c
Object repository in qtp is like a storage place where it stores the properties of all the objects when
we reocrd the script and later when we execute the script QTP checks that the objects in the
application match the objects in the object repository and executes it, if both the objects matches
the test will pass, if it cannot identify the object or there is a mismatch the script will fail.
Object repository is same as GUI map in winrunner where we have to make the tool capture the
properties of object where as in QTP object repository automatically does that for us.
c
( )
*
In this, for each action a seperate object repository file is created. So object1 in Action1 is different
from the same object1 in Action2
This mode is most useful, when the object does not change frequently and a few actions are
associated with the test. If the object changes in the application, then we need to change each of the
object repositor.
In this, common object repository file can be used for muliple actions and multile tests. So Object1 is
action1 is same for Action2, because all the objects are saved at one place. Here if the object
changes, then we need to update a single object repository file.
+%
* As you record operations on objects in your application, QuickTest automatically stores the
information about those objects in the appropriate action object repository.
* When you save your test, all of the action object repositories are automatically saved with the test
as part of each action within the test. The action object repository is not accessible as a separate file
(as is the shared object repository).
%
* Modifying the test object properties, values, or names in one object repository does not affect the
information stored for the same test object in another object repository or in other tests - Time
Consuming
* If you add objects to one of the split actions, the new objects are added only to the corresponding
action object repository.
+%
* Only one instance of the object in the repository so reduce the repetitions
* one time change to the object properties would bring change in every script using the object
%
* Complexity increase as objects of all the action are in the same repository
c
&
A checkpoint verifies that expected information is displayed in an Application while the test is
running. Checkpoints are used to compare actual and expected results.
-
&
The Check points is useful to get the point in time from where to begin the recovery in case of
failure.
&
&
No, QTP is do not allow to change the name of Check point, because these class names are internally
built. But in version 9 (just released) it is possible to cahange not in previous versions
c
A Transaction is a logical unit of work that comprises one or more SQL statements executed by a
single user. or It is a group of statements between two commits
c
.
Group of tests executing sequentially one by one is called Batch Testing. Every test Batch consists of
mutiple dependent test cases. In those batches every end state is base state to next case. Test batch
is also known as Test suit or Test belt.
Generally Test engineers are executing test programs as a batches because "End state of one test is
base state to another test".
The result of one Script failure or pass , fails or passes the whole batch test.
c
Smart Identification is used by QTP, whenever it is unable to identify any object during run time.
While identifying an object, QTP tries to match the mandatory properties first, if it couldn't find the
object, then it adds assistive properties one by one to identify the object correctly. This operation is
done by smart identifier and it is displayed in the results section along with one warning message.
It's generally used to identify Web elements only.
c
/%
%
c
/%
%
c /
The four exceptions are
* Pop exception
* Object state
* Test run error
* Application crash
&c
Yes. We cant use Test Director 7.2 with QTP 8.2. Because QTP 8.2 supports QC (Quality Center)
We can use QTP 8.2 with Test director 8.0.
c +
A framework is nothing but a folder structure . It contains all the components that are using in
Automation Architecture. Here components means Object Repository, Library,Logs, Test Data,
Script, Result etc
c
&
Automation frame work is nothing but a set of rules defined for developping and organising the test
scripts or
It is a process to develop the automation scripts and reduce maintenance. This framework
completely depends on the application, types of testing and tools that you are using. Its hard to
provide generalised framework for all applications:
0
1