Tuesday, October 11, 2011

AUTOMATION TESTING

AUTOMATION TESTING

Making the Manual Testing process automatic is called Automation Testing
or
It is a process of identifying various features to be re-tested in the modified versions developing and executing the scripts to validate the same is called Automation Testing.

BENEFITS OF AUTOMATION TESTING
1. Faster
2. Accurate
3. Repetitive
4. Re-Usable
5.
the automation is additional support for testing activities not a replacement for manual testing.

DECIDING FACTORS FOR AUTOMATION TESTING
1. Program-ability
2. Frequency of testing
3. Cost

TOOL SELECTION CRITERIA
We consider the following parameters for choosing automation testing tool
1.Cost
2.Features offered by the tool
3.Performance
4.Technology supported by the tool
5.Environments
6.Portability
7.Maintainability
8.Vendor Support (HP)

INTRODUCTION TO QTP
QTP is a functional regression testing tool introduced by Astra Incorporation later by Mercury , now it is a product of HP.

ADD-IN
Add-in is a communication software that contains a set of pre-defined methods which enables QTP to automate various Operations on the objects present in your application.

Q.How QTP executes a test?
A.
When you run a test qtp execute the script step by step while executing a particular step qtp goes to depository correct the properties of the object then try to identify when the object is identified then qtp performs the specified actions if not qtp throws error "cannot identify the object".

NOTE: by default qtp wait for maximum of 20 seconds to identify the object

VB SCRIPT
VB script is the scripting language offered by Microsoft which is default with qtp tool

VARIABLE
A Variable is a memory address location that holds a value.There are two types of variables
             a. Scalar Variable
             b. Array Variable
Again both variables are of two types
a.Implicit
b.Explicit

VB supports both Implicit and Explicit variables

NOTE: you can declare variables using either Dim or Public or Private statements

OPTION  EXPLICIT
If Option Explicit is specified every variable must be declared before you use it.i.e, we can force VB script do not allow Implicit variables by specifying Option Explicit

DATATYPE IN VB SCRIPT
VB script is having only one data type called variant which allows any type of data we no need to specify data type while declaring a variable.

While----- End
while loop executes a set of statements for multiple iterations when the conditions written true if condition written false loop will exist

Do---- Loop
It is a flexible loop you can execute a set of statements for the true value written by the condition and also for the false written by the conditon

For loop
For loop is used to execute a set of statements for specific number of times

For Each
It is used to execute a block of statements for each item present in the array

Set Secure
It is used to supply encoded string such as password, cvv number etc in the specified text boxes.


No comments:

Post a Comment