Dhanasekaran 2008-2009 Quick Test Pro Presentation
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Dhanasekaran 2008-2009 Quick Test Pro Presentation

  • 3,672 views
Uploaded on

Quick Test Profession Basic Slides

Quick Test Profession Basic Slides

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
3,672
On Slideshare
3,670
From Embeds
2
Number of Embeds
1

Actions

Shares
Downloads
152
Comments
0
Likes
0

Embeds 2

http://www.slideshare.net 2

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. QucikTest Professional 8.2 Tutorial
  • 2.
    • Automated Testing
    • QTP Introduction
    • Preparation
    • Record
    • Enhance
    • Run & Debug
    • Reference
    Outline
  • 3. Drawbacks of manual testing
    • Time-consuming and tedious
    • Impossible to test each feature thoroughly
  • 4. Benefits of AT
    • Fast ( 快速 )
    • Reliable ( 可靠 )
    • Repeatable ( 可重复 )
    • Programmable
    • Comprehensive ( 全面 )
    • Reusable( 可重用 )
  • 5. QTP Introduction
    • What is QTP?
    • Mercury QuickTest Professional is functional test and regression test automation solution that address every major software application and environment.
    • Basic purpose: to test standard web object,
    • ActiveX controls and Visual Basic controls
    • Structure: B/S and C/S
  • 6. Testing process
    • Preparation
    • Record
    • Enhance
    • Run & Debug
    • Analyze
  • 7. Preparation Testing Plan: What process and web? What’s the expected? When to begin and end? Computer: Close unneeded software (anti-virus, etc) Internet Explorer settings QTP: QTP 8.2 or newer Required add-in
  • 8. Record
    • QuickTest Window
    • Hop to record?
  • 9.  
  • 10. Enhance your test
    • Add comment
    • Creating checkpoints
    • Parameterizing Tests
    • Suggestions :
    • Playback of it first
  • 11. Add Comment
    • ‘ Browser("Browser").Page("Page_2").WebEdit("#hobby").Set "Reading novels"
    • Browser("Browser").Page("Page_2").WebButton("Submit").Click
    • Rem
    • Rem <<<<<<<<<<<<<check the output
    • Browser(&quot;Browser&quot;).Page(&quot;Page_3&quot;).WebElement(&quot;input_text_1&quot;).Check CheckPoint(&quot;input_text_1&quot;)
    • Browser(&quot;Browser&quot;).Page(&quot;Page_3&quot;).WebEdit(&quot;#hobby&quot;).Set &quot;Watching TV&quot;
    • Browser(&quot;Browser&quot;).Page(&quot;Page_3&quot;).WebButton(&quot;Submit&quot;).Click
  • 12. Creating checkpoints
    • A checkpoint is a verification point
    • that compares a current value for a specified property with the expected value for that property.
    • Effect: it enables you to identify whether your Web
    • site or application is functioning correctly.
    • Pre-defined checkpoint
    • User-defined checkpoint
  • 13.  
  • 14. User-defined checkpoint
    • Dim Style , index
    • Style = Browser(&quot;Browser&quot;).Page(&quot;Page_22&quot;).WebEdit(&quot;#Aim&quot;).GetROProperty(&quot;outerHTML&quot;)
    • index = InStr (Style, &quot;color=read&quot;)
    • If index <>0 Then Reporter.ReportEvent micPass, &quot;HTML compared&quot;, &quot;OK&quot; Else
    • Reporter.ReportEvent micFail, &quot;HTML compared&quot;, &quot;Trouble&quot; End If
  • 15. Parameterizing Tests
    • A parameter is a variable that is assigned a value from an external data source or generator.
    • It greatly increases the power and flexibility of your test or component.
  • 16. Parameters’ types
    • Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test.
    • Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply.
  • 17. Parameters’ types (Continued)
    • Environment variable parameters enable you to
    • use variable values from other sources during the run session.
    • Random number parameters enable you to
    • insert random numbers as values in your test
    • or component.
  • 18. Two types of Data sheets
    • Global Sheet
    • Usage: it will be available to all actions and control
    • the number of test iterations.
    • Local Sheet
    • Usage : it will be available in
    • that action only and control the
    • number of action iterations.
  • 19. Advanced configuration
    • Regular expression
    • Use Data Table formula
  • 20. Run & Debug
    • Wait() and sync
    • Msgbox()
    • Object Spy
    • Debug toolbar
  • 21. Analyze
    • Read test report
    • Why it fails if it exits
  • 22. Features of QTP
    • Active Screen
    • Keyword View & Expert View
    • Auto-Documentation
    • Generator : Step & Function
    • Check Point :Standard, Table, Text, etc..
    • DataTable: Global & Local
    • Parameterizing
    • Object Spy
    • Object Repository
  • 23. What’s not mentioned
    • Split Action
    • Insert Action
    • Find objects
    • VBScript
    • Descriptive Programming
    • ……
  • 24. Plus
    • Keyword driven Testing
    • It deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance.
    • When to use QTP?
    • When the system is relatively stable
    • Functional testing & Regression testing
    • How long and how frequent
  • 25. Qualification
    • Be familiar with the system
    • Have a better understanding of QTP
    • Others
  • 26. Resource
    • http://softwareqatestings.com/content/category/8/46/90/
  • 27. Any Questions?
  • 28. Summary
    • QTP is one Keyword-driven testing tool suitable for functional testing and regression testing.
    • Testing Process
    • Preparation
    • Record
    • Enhance
    • Run & Debug
    • Analyze