Add2Delete1.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 User Information page to display the Person form
Sleep(3565)
WebPage.FormData["fileName"] = "person"
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.FormData["fileName"] = "person"
WebPage.Get("http://<Your ServerName>/tat/en-us/logo.htm")
Sleep(40)
WebPage.FormData["fileName"] = "person"
WebPage.Get("http://<Your ServerName>/tat/en-us/person.htm")
Sleep(20)
WebPage.FormData["fileName"] = "person"
WebPage.Get("http://<Your ServerName>/tat/en-us/personList.htm")
//add a new person the the database
Sleep(44944)
WebPage.FormData["tableName"] = "person"
WebPage.FormData["procName"] = "lw_addPerson"
WebPage.FormData["actionBtn"] = "ADD"
WebPage.FormData["PersonId"] = ""
WebPage.FormData["ID"] = ""
WebPage.FormData["ReleaseInfo"] = "1101000000000"
WebPage.FormData["FirstName"] = "two"
WebPage.FormData["chkReleaseFirstName"] = "on"
WebPage.FormData["LastName"] = "student"
WebPage.FormData["chkReleaseLastName"] = "on"
WebPage.FormData["StudentId"] = ""
WebPage.FormData["Email"] = "twostudent@company.com"
WebPage.FormData["chkReleaseEmailName"] = "on"
WebPage.FormData["Phone"] = ""
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["Contact"] = ""
WebPage.FormData["ContactPhone"] = ""
WebPage.FormData["ContactRelationship"] = ""
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
//change that person's information
Sleep(33939)
WebPage.FormData["tableName"] = "person"
WebPage.FormData["procName"] = "lw_changePerson"
WebPage.FormData["actionBtn"] = "CHANGE"
WebPage.FormData["PersonId"] = "9518"
WebPage.FormData["ID"] = "9518"
WebPage.FormData["ReleaseInfo"] = "1101000000000"
WebPage.FormData["FirstName"] = "three"
WebPage.FormData["chkReleaseFirstName"] = "on"
WebPage.FormData["LastName"] = "student"
WebPage.FormData["chkReleaseLastName"] = "on"
WebPage.FormData["StudentId"] = ""
WebPage.FormData["Email"] = "threestudent@company.com"
WebPage.FormData["chkReleaseEmailName"] = "on"
WebPage.FormData["Phone"] = ""
WebPage.FormData["Street"] = ""
WebPage.FormData["City"] = ""
WebPage.FormData["Region"] = ""
WebPage.FormData["PostalCode"] = ""
WebPage.FormData["Country"] = ""
WebPage.FormData["Contact"] = ""
WebPage.FormData["ContactPhone"] = ""
WebPage.FormData["ContactRelationship"] = ""
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")
//delete that person
Sleep(4426)
WebPage.FormData["tableName"] = "person"
WebPage.FormData["procName"] = "lw_deletePerson"
WebPage.FormData["actionBtn"] = "DELETE"
WebPage.FormData["PersonId"] = "9517"
WebPage.FormData["ID"] = "9517"
WebPage.FormData["ReleaseInfo"] = "1101000000000"
WebPage.FormData["FirstName"] = "one"
WebPage.FormData["chkReleaseFirstName"] = "on"
WebPage.FormData["LastName"] = "student"
WebPage.FormData["chkReleaseLastName"] = "on"
WebPage.FormData["StudentId"] = ""
WebPage.FormData["Email"] = "1student@company.com"
WebPage.FormData["chkReleaseEmailName"] = "on"
WebPage.FormData["Phone"] = ""
WebPage.FormData["Street"] = "One Microsoft Way"
WebPage.FormData["City"] = "Redmond"
WebPage.FormData["Region"] = "WA"
WebPage.FormData["PostalCode"] = "98052"
WebPage.FormData["Country"] = "USA"
WebPage.FormData["Contact"] = "PJ"
WebPage.FormData["ContactPhone"] = "74357"
WebPage.FormData["ContactRelationship"] = "Daddy"
WebPage.Post("http://<Your ServerName>/tat/Scripts/postIt.asp")