Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use same script for multiple URLs
#27
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Can anyone please help me urgently....

When I run below script, it performs goes into infinite loop.. Consider that in datasheet I have 5 rows in my data sheet, it executing scripting multiple times, though all 5 URL are once opened and described operations are mentioned. It should open each 5 URL one time instead of multiple time.. Please let me know where I am wrong in below script?

---------------

Code:
DataTable.Import("D:\Book1.xls")

For i=1 to Datatable.GetRowCount
DataTable.SetCurrentRow i
SystemUtil.Run DataTable("URL",dtGlobalSheet)
Browser("InSync :: Login").Page("InSync :: Login").WebEdit("txtUsername").Set DataTable("Username",dtGlobalSheet)
Browser("InSync :: Login").Page("InSync :: Login").WebEdit("txtPassword").Set DataTable("Password",dtGlobalSheet)
Browser("InSync :: Login").Page("InSync :: Login").WebButton("Login").Click
Browser("InSync :: Login").Page("InSync :: Login_2").WebList("ddlUsers").Select DataTable("User",dtGlobalSheet)

'Select facility'
Browser("InSync :: Login").Page("InSync :: Login_2").WebButton("Ok").Click
Wait (1)

'Access Scheduler
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image2").Click
Wait (1)

'Access Patient Search
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image3").Click
Browser("InSync :: Login").Page("InSync :: Patient Search").Image("Edit Patient").Click
Wait (1)

'Access Facesheet
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image4").Click
Wait (1)

'Access New Charge
'Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$Image5").Click
'Wait (1)

'Access Document Manager
Browser("InSync :: Login").Page("InSync :: Dash Board").Image("ctl00$Header1$ibtndocumnetmgr").Click
Wait (1)

Browser("InSync :: Login").Close
Next

-----------

Thanks,
Mansi.
Reply


Messages In This Thread
RE: How to use same script for multiple URLs - by mansis - 08-31-2012, 05:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run same script for different URLs when loading time is different mansis 5 4,966 09-21-2012, 12:42 PM
Last Post: mansis
  Multiple users executing QTP script using Excel Input vinodindia 0 3,207 07-05-2012, 11:41 PM
Last Post: vinodindia
  Switching between URLs sqadri 1 2,729 02-01-2012, 07:36 AM
Last Post: rajpes
  Multiple input values from a reusable action call from main script knightofdawn 0 3,335 08-30-2010, 01:23 PM
Last Post: knightofdawn
Exclamation How to access multiple SAP sessions by script? Osprey 1 7,896 06-24-2010, 04:11 PM
Last Post: Osprey

Forum Jump:


Users browsing this thread: 3 Guest(s)