Types of Statements in QTP Test / Test Script


Types of Statements in QTP Test / Test Script


i) Declarations (Variables and constants)

Dim x, y, z
Const City, Price

Ex1: Dialog("Login").WinEdit("Agent Name:").Set "gcreddy"
Ex2: Browser("Google").Page("Google").Link("Gmail").Click

iii) Comments

iv) Flow Control Statements (Conditional & Loop)

Ex:)  If Total=Tickets*Price Then
    Msgbox "Test Passed"
Else
    Msgbox "Test Failed"
End If

v) Function / Action calls

Ex: Call Login("gcreddy","mercury")
vi) Utility Statements
Ex1: SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
**It launche the Application
Ex2:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","http://www.icicibank.com/"

vii) VB script other statements

Examples:
Option Explicit
Wait (14)

Types of Test Tool


-------------------------------------------

Types of Test tool:

-------------------

    Business:
-----------------
    a) Vendor tools
   
    Ex: HP- WinRunner, LoadRunner, QTP, QC
        IBM-Rational Robot, ,RFT, RPT, QA Director
        Borland-SilkTest, Silk Performer etc..
   
    b) Open Source Tools:
        Ex: Selenium, Jmeter, QAWebLoad,
Bugzilla etc...

    c) In-house tools:

    Technical:
-----------------
    a) Functional &
Regression Test Tools:
        Ex:WinRunner, QTP, Rational Robot, ,RFT, SilkTest,Selenium etc..
   
    b) Performence/load/stress
test tools

        Ex: LoadRunner, RPT, Silk Performer,Jmeter, QAWebLoad etc...
   
    c) Test Management Tools:
        Ex: QC, QA Director Etc...
   
    d) Defect Management tools

    e) Unit Test tools (Ex: JUnit)

QTP Test Process :



o Analyzing the AUT
o Automation Test Plan Generation
o Automation Framework Implementation
o Generating/Selecting Test cases for Automation
o Collecting Test Data
o QTP Tool Settings Configuration

2) Generating Tests

o Recording
o Keyword driven methodology
o Descriptive Programming


o Inserting Checkpoints
o Inserting Output values
o Adding Comments
o Synchronization
o Parameterization
o Inserting Flow Control Statements
o Calling User defined functions and/or Reusable Actions
o Generating Steps though Step Generator
o Inserting Transaction Points
o Regular Expressions


o Debug Commands & Break Points
o Step by step execution
o Watching Variables
o Changing values of variables


o Normal Execution
o Batch Execution
o Through AOM Scripting
o Tests Running through framework
o Scheduled Execution


o QTP Result window
o Defining our own Results
o Exporting Results
o Deleting Results


o Manual Defect Reporting
o Tool based Defect Reporting
o Working with Quality Center

Automation Testing Tools


Test Automation Testing Tools


Basically Software Testing is 2 types

1) Manual Testing
2) Test Automation

Manual Testing:
Testing software manually is called Manual Testing. we can test all accepts of software manually. 

Below Testing Types can be tested manually

Test Types:
a)
Functional Testing
b)
Regression Testing
c) GUI Testing
d)
Usability Testing
e)
Security Testing
f) Compatibility Testing
g) Recovery Testing
h) Reliability testing
Etc…
 

Drawbacks of Manual Testing

(i)Time consuming.
(ii) More resources required.
(iii)Human Errors
(iv)Repetition of the Task is not much
(v)Tiredness
(vi)Simultaneous auctions are not possible (Parallel) 


Test Automation:

Testing Software using any
Automation tools is called Test Automation

Advantages of Test Automation:

a) Fast: Tools are faster in execution than human users

b) Reliable: Tools are reliable in complex calculations and tasks

c) Reusable: we can reuse Automated Tests at any number of times

d) Repeatable: we can repeat same operations for required number of times

e) Programmable:we can use flow control statements for appalying logic

f) Comprehensive: we can execute test batches without human interaction also 

a)  Functional & Regression Testing

b) Load/Stress/Performance Testing

c) Security Testing

d) Unit Testing

Drawbacks of Automation Testing

1)It is expensive
2)We cannot automate all areas.
3)Lack of expertisation.
4)It has some limitations (It cannot test every thing) 


Which Software Testing should be automated?

Tests that need to be execute of every build of the application (Sanity Testing)
 

Tests that use multiple data values (Retesting / Data Drives Testing) 

Tests that required data from application intimates (G.U.I. Attributes) Load and Stress Testing

Which Software Testing should not be automated?

 

Usability Testing One time testing
 

Quick look Tests or A.S.A.P (As soon as possible) Testing Ad-hoc testing / Random Testing
 

Customers requirement are frequently changing.