Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script gives syntax error in Flight reservation Application
#7
Solved: 11 Years, 4 Months ago
Hi ,

As Tarik Suggested, you have missed .[dot]
ans also make sure that no blankspace given in word "Datatable"(ex: Data table is not allowed)

Try as given below.
Code:
Dialog("Login").WinEdit("Agent Name:").Set Datatable.Value("username",dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set Datatable.Value("password"dtGlobalSheet)

You can also use the below way too.

Code:
Dialog("Login").WinEdit("Agent Name:").Set Datatable.Value("username")
Dialog("Login").WinEdit("Password:").Set Datatable.Value("password")

Note: If we wont give 'sheetname' parameter then bydefault, QTP takes sheet as Globalsheet
Reply


Messages In This Thread
RE: Script gives syntax error in Flight reservation Application - by sreekanth chilam - 11-18-2009, 01:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 583 11-05-2023, 03:55 PM
Last Post: lravi4u
  error when executing an UFT automation script alexalloza 0 1,537 10-30-2018, 06:17 PM
Last Post: alexalloza
  UFT 12.53 trial version not recognizing its sample flight application login/password NehaRB 2 3,907 10-07-2016, 06:49 PM
Last Post: pradeep537
  Script is not generated for windows application in UFT sreelatha 1 2,369 04-04-2016, 10:51 AM
Last Post: vinod123
  Path of Flight reservation Window is not recorded in HP UFT 12.52 version mailtokopalverma@gmail.com 1 2,697 04-01-2016, 05:34 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)