BDG Scenario 3

AddLoc.script Script

//Open the browser to your PT applications webpage  
 
WebPage.Get("http://<Your ServerName>/tat/en-us/gate.asp")

 
WebPage.Get("http://<Your ServerName>/tat/menu/menu.asp")

 
WebPage.Get("http://<Your ServerName>/tat/en-us/border.htm")

 
Sleep(20)
WebPage.Get("http://<Your ServerName>/tat/en-us/Welcome.htm")
 


//Select the Location Information to display the Location form  
Sleep(10085)
WebPage.FormData["fileName"] = "location"
WebPage.Get("http://<Your ServerName>/tat/en-us/gate.asp")

 
WebPage.Get("http://<Your ServerName>/tat/menu/menu.asp")

 
WebPage.Get("http://<Your ServerName>/tat/en-us/border.htm")

 
 
Sleep(21)
WebPage.FormData["fileName"] = "location"
WebPage.Get("http://<Your ServerName>/tat/en-us/logo.htm")
 
 
WebPage.FormData["fileName"] = "location"
WebPage.Get("http://<Your ServerName>/tat/en-us/location.htm")
 
 
Sleep(10)
WebPage.FormData["fileName"] = "location"
WebPage.Get("http://<Your ServerName>/tat/en-us/locationList.htm")

 
//Add a new location 
Sleep(49901)
WebPage.FormData["tableName"] = "Location"
WebPage.FormData["procName"] = "lw_addLocation"
WebPage.FormData["actionBtn"] = "ADD"
WebPage.FormData["ID"] = ""
WebPage.FormData["LocationId"] = ""
WebPage.FormData["Name"] = "Room 101"
WebPage.FormData["Comment"] = "Lecture Hall"
WebPage.FormData["Email"] = "rm101@company.com"
WebPage.FormData["Phone"] = "555-1212"
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["MaxOccupancy"] = "250"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
 
//Change the location  
Sleep(23464)
WebPage.FormData["tableName"] = "Location"
WebPage.FormData["procName"] = "lw_changeLocation"
WebPage.FormData["actionBtn"] = "CHANGE"
WebPage.FormData["ID"] = "64"
WebPage.FormData["LocationId"] = "64"
WebPage.FormData["Name"] = "Room 102"
WebPage.FormData["Comment"] = "Lecture Hall"
WebPage.FormData["Email"] = "rm102@company.com"
WebPage.FormData["Phone"] = "555-1212"
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["MaxOccupancy"] = "250"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
 
//Change the location   
Sleep(16865)
WebPage.FormData["tableName"] = "Location"
WebPage.FormData["procName"] = "lw_changeLocation"
WebPage.FormData["actionBtn"] = "CHANGE"
WebPage.FormData["ID"] = "64"
WebPage.FormData["LocationId"] = "64"
WebPage.FormData["Name"] = "Room 103"
WebPage.FormData["Comment"] = "Lecture Hall"
WebPage.FormData["Email"] = "rm103@company.com"
WebPage.FormData["Phone"] = "555-1212"
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["MaxOccupancy"] = "250"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
 
//Change the location   
Sleep(9484)
WebPage.FormData["tableName"] = "Location"
WebPage.FormData["procName"] = "lw_changeLocation"
WebPage.FormData["actionBtn"] = "CHANGE"
WebPage.FormData["ID"] = "64"
WebPage.FormData["LocationId"] = "64"
WebPage.FormData["Name"] = "Room 104"
WebPage.FormData["Comment"] = "Lecture Hall"
WebPage.FormData["Email"] = "rm104@company.com"
WebPage.FormData["Phone"] = "555-1212"
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["MaxOccupancy"] = "250"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
 
//Change the location   
Sleep(26648)
WebPage.FormData["tableName"] = "Location"
WebPage.FormData["procName"] = "lw_changeLocation"
WebPage.FormData["actionBtn"] = "CHANGE"
WebPage.FormData["ID"] = "64"
WebPage.FormData["LocationId"] = "64"
WebPage.FormData["Name"] = "Room 105"
WebPage.FormData["Comment"] = "Lecture Hall"
WebPage.FormData["Email"] = "rm105@company.com"
WebPage.FormData["Phone"] = "555-1212"
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["MaxOccupancy"] = "250"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
 
//Change the location   
Sleep(18907)
WebPage.FormData["tableName"] = "Location"
WebPage.FormData["procName"] = "lw_deleteLocation"
WebPage.FormData["actionBtn"] = "DELETE"
WebPage.FormData["ID"] = "64"
WebPage.FormData["LocationId"] = "64"
WebPage.FormData["Name"] = "Room 105"
WebPage.FormData["Comment"] = "Lecture Hall"
WebPage.FormData["Email"] = "rm105@company.com"
WebPage.FormData["Phone"] = "555-1212"
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["MaxOccupancy"] = "250"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")