11-17-2009, 08:31 AM
Please see below script that i run in QTP 9.2 version. I want to parameterize and pass the value for "username" and password through my driver script.
while executing it gives me below error.
Error :
The test run cannot continue due to a syntax error.
Expected end of statement
Please help me out for this.
Thanks,
pnp
Code:
SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\HP\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set Datatable Value("username")
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure Datatable Value("password")
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Activate
while executing it gives me below error.
Error :
The test run cannot continue due to a syntax error.
Expected end of statement
Code:
Line (1): "Dialog("Login").WinEdit("Agent Name:").Set Data table Value ("username")".
[/b]
Please help me out for this.
Thanks,
pnp