Exforsys

Online Training

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 ...


Go Back   Exforsys > Testing > Software Testing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-24-2007, 08:40 AM
Junior Member
 
Join Date: Jun 2007
Posts: 10
devii is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-25-2007, 06:12 AM
Junior Member
 
Join Date: Jun 2007
Posts: 12
pranjuls is on a distinguished road
This happened beacuse recoding execute fastly. To avoid this use 'Delay' or 'Exist' property in all operations...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-25-2007, 10:39 AM
Junior Member
 
Join Date: Jun 2007
Posts: 10
devii is on a distinguished road
can u give an example for using "delay" property plz..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-26-2007, 03:14 AM
Junior Member
 
Join Date: Jun 2007
Posts: 12
pranjuls is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.