Hi Sankalp,
Thanks for providing code. Using it, when I was running attached script in QTP and received error "The test run cannot continue due to a syntax error. Expected end of statement Line(1): "System Util.run DataTable("URL",dtGlobalSheet)". Can you please help me?
Script is ------
------------
Please review attached zip file for details
Thanks,
Mansi.
Hi,
Refer to the attachment
Regards,
Sankalp
[/quote]
Thanks for providing code. Using it, when I was running attached script in QTP and received error "The test run cannot continue due to a syntax error. Expected end of statement Line(1): "System Util.run DataTable("URL",dtGlobalSheet)". Can you please help me?
Script is ------
Code:
Datatable. Import"C:\Documents and Settings\mansi.shah\Desktop\book1.xlsx"
For i=1 to DataTable.RowCount
System Util.run DataTable(“URL”,dtGlobalSheet)
Browser().Page().Webedit().Set DataTable(“Username”,dtGlobalSheet)
Browser().Page().Webedit().Set DataTable(“Password”,dtGlobalSheet)
Browser("InSync :: Login").Page("InSync :: Login").WebButton("Login").Click
'Select facility'
Browser("InSync :: Login").Page("InSync :: Login_2").WebButton("Ok").Click
'Open Scheduler page'
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image2").Click
Wait (3)
'Access Patient Search page'
Browser("InSync :: Login").Page("InSync :: Dash Board_2").Image("ctl00$Header1$Image3").Click
Browser("InSync :: Login").Page("InSync :: Patient Search").Image("Edit Patient").Click
Wait (3)
''Access Facesheet'
Browser("InSync :: Login").Page("InSync :: Patient Search").Image("ctl00$Header1$Image4").Click
Wait (3)
'Access New charge page'
Browser("InSync :: Login").Page("InSync :: Dash Board_2").Image("ctl00$Header1$Image5").Click
'Access Document Manager'
Browser("InSync :: Login").Page("InSync :: Dash Board_2").Image("ctl00$Header1$ibtndocumnetmgr").Click
Wait (3)
Browser("InSync :: Login").Close
Next
Please review attached zip file for details
Thanks,
Mansi.
Hi,
Refer to the attachment
Regards,
Sankalp
[/quote]