Tuesday 22 October 2013

QTP Mehods



QTP Test Process

1) Planning

2) Generation Basic Tests
   
    a) Object Repository Based Design
        i) Recording
        ii) Keyword Driven Technology

    b) Descriptive Programmiing
        i) Static Programming
        ii) Dynamic Programming

    Hybrid Approach
        High level







QTP Methods


Method. Set

1) Enter the value to Edit box/Text box

Sy: object.set "value"

2) Check/uncheck the Checkbox

Sy: Object.set "ON/OFF"

3) Select Radio button From a Group

Sy : Object.Set


Examples :  

1) Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Arunrajvdm"
2) Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebCheckbox("Passwd").Set "ON"
3) Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebRadioButton("First").Set


Method - GetContent
-------------------
Return the content from Combo box or List box

Sy: Variable =object.GetContent

Example

Content = Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebComboBox("FlightFrom").GetContent
msgbox content


Method - CaptureMap
-------------------

Capture screen shot during execution and stores in specified location

Sy: object.CaptureMap "path to Store the file"


No comments:

Post a Comment