Exforsys
+ Reply to Thread
Results 1 to 4 of 4

Qtp

This is a discussion on Qtp within the Software Testing forums, part of the Testing category; I'm practicing QTP while installing the free trail version from Mercury site. My problem is: when i'm recording the sample ...

  1. #1
    devii is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    10

    Qtp

    I'm practicing QTP while installing the free trail version from Mercury site.

    My problem is: when i'm recording the sample flight application it is doing good(the application given with that site as an example)....but when i start recording some other site like just say..some yahoo.com, it was just recoding the:
    Login name.
    password fileds.
    sign in and sign out statements.

    it is not recording the check mails option or what ever the other operations we do in the Inbox.


    can any one tell me why is it so?


  2. #2
    pranjuls is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    11
    This happened beacuse recoding execute fastly. To avoid this use 'Delay' or 'Exist' property in all operations...


  3. #3
    devii is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    10
    can u give an example for using "delay" property plz..


  4. #4
    pranjuls is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    11
    You can use any of them:

    Procedure 1:
    SystemUtil.Run "notepad","","C:\Documents and Settings\pranjul",""
    Window("Notepad").WinEditor("Edit").Type "Using Wait Property"

    wait(3) '3 means system wait for 3 second and then debug next line

    Window("Notepad").Close
    Window("Notepad").Dialog("Notepad").WinButton("No").Click

    Procedure 2: using EXIST is more useful compare to WAIT as response time of server varies.

    SystemUtil.Run "notepad","","C:\Documents and Settings\pranjul",""
    Window("Notepad").WinEditor("Edit").Type "Using Wait Property"

    If Window("Notepad").Exist then
    msgbox "Notepad has been dispalyed, now executing next line...."
    Window("Notepad").Close
    Window("Notepad").Dialog("Notepad").WinButton("No").Click

    else
    msgbox "Notepad has not been dispalyed, so restart the process...."
    SystemUtil.Run "notepad","","C:\Documents and Settings\pranjul",""

    End if


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...