Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to record script in QTP?
#8
Not Solved
(09-01-2011, 03:11 PM)ashita Wrote: [quote='SQT' pid='17856' dateline='1314867201']
Change your script as below:

invokeapplication("C:\ProgramFiles(x86)\MercuryInteractive\QuickTestProfessional\bin\QTPro.exe")
dialog("Login").WinEdit("AgentName").Set DataTable("agentname",dtGlobalSheet)
dialog("Login").WinEdit("Password").Set DataTable("password",dtGlobalSheet)
dialog("Login").WinButton("OK").Click
Wait(1)

Check your column name carefully ,It should be "agentname" , "password" in global sheet.


Hi,

I tried above script which u post it..
Now I am getting run time error

The Operation cannot be performed..

Why is this So?

Can you please help me...

Thanks
Ashita

Hi Ashita and Hi Paul,

Try this below code: It will work 100%

Quote:Invokeapplication("C:\ProgramFiles(x86)\MercuryInteractive\QuickTestProfessional\bin\QTPro.exe")
Dialog("text:=Login").activate
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").set DataTable("agentname",dtGlobalSheet)
Dialog("text:=Login").WinEdit("attached text:=Password:").set DataTable("password",dtGlobalSheet)
Dialog("text:=Login").WinButton("text:=OK").Click
Window("text:=Flight Reservation").WinButton("object class:=Button").WaitProperty "enabled", 0, 500000
Window("text:=Flight Reservation").close

Please do reply guys.
Reply


Messages In This Thread
How to record script in QTP? - by ashita - 08-30-2011, 09:26 AM
RE: How to record script in QTP? - by ashita - 08-31-2011, 04:51 AM
How to do parameterization? - by ashita - 09-01-2011, 04:51 AM
RE: How to do parameterization? - by SQT - 09-01-2011, 02:23 PM
RE: How to do parameterization? - by ashita - 09-01-2011, 03:11 PM
RE: How to do parameterization? - by Forrest Gump - 09-05-2011, 01:52 AM
RE: How to record script in QTP? - by ashita - 09-02-2011, 12:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP 11.0 does not record web application shipu 6 7,337 08-03-2014, 01:47 AM
Last Post: riverdiego
  QTP does not record anything on a page developed using AJAX shayk1985 2 2,366 05-21-2014, 04:56 AM
Last Post: shayk1985
  Not able to record web application using qtp 10 in window 7 rashmi_prasad 5 11,411 04-24-2013, 11:23 PM
Last Post: CaptainM
  QTP doesn't record C# application rlin2012 1 3,162 09-11-2012, 12:54 AM
Last Post: freeboynil
  How to record .jnlp app in QTP Alias007 0 3,289 08-26-2012, 03:10 PM
Last Post: Alias007

Forum Jump:


Users browsing this thread: 4 Guest(s)