Anda di halaman 1dari 6

c  

  

There are 2 run modes in QTP


* Normal : It shows the execution of your QTP script step by step. This works good in case of
debugging your script.
* Fast Run : It will not show the execution line by line.

c   


    

Different Debugging modes used in QTP are


* Step Into : To run only the current line of the active test or component.
* Step Out : Runs to the end of the called action or user-defined function, then returns to the calling
action and pauses the run session.
* Step Over : to run only the current step in the active test or component. When the current step
calls another action or a user-defined function,the called action or function is executed entirety, but
the called action script is not displayed in the QuickTest window.

c    


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 
 


 

There are 2 types of automation


* Recording or generating the script and playing back using Repository
* Another one is Descriptive method.

&

 ' 

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  
 

( )

OR are of two types


* Per-action
* Shared


*





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.

c  + %,  %*






+ %

* 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.

c  + %,  %  






+ %

* 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.

-
 & 
   

They are 4 types of checkpoints

* GUI Check point


* Bitmap Checkpoint
* Database Checkpoint
* Test Checkpoint

c    
& 
 

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   
.


Step Generator is used to insert a statement(function ro method) of a particular object which is


available in the Object Repository

c  
&



The practice of tracking changes made to code is called Source Control.


Familiar Source control Tools are CVS, VSS, ClearCase etc

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  
   
      



Use Smart identifcation.



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  /%
 % 

Envoirement variable is variable which is global through the testing.

c   
/%
 % 

There are 3 types of environmental variables


* User-Defined Internal
* User-Defined External
* Built-In

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 +


There are 3 types of Actions available in QTP.


* Non-reusable
* Reusable
* External Actions

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  &
  
 

In qtp the compiled modules are called library files .



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
 

we can parameterize our tests in 4 ways.


* Test or component parameter
* Data Table parameter
* Environmental variable parameter
* Random number parameter

c  

Types of tables are
* run time data table
* design time data table

Anda mungkin juga menyukai