[-] type INSTALLINFO is record
	[ ] STRING sMapdrive        // data variable to be set at testplan
	[ ] STRING sInstalldir      // data variable to be set at testplan
	[ ] STRING sInstallkey      // data variable to be set at testplan 
	[ ] STRING sUsername        // data variable to be set at testplan
	[ ] STRING sPassword        // data variable to be set at testplan
	[ ] STRING sLDAPServer      // data variable to be set at testplan
	[ ] STRING sLDAPPassword    // data variable to be set at testplan
	[ ] STRING sLDAPSuffix      // data variable to be set at testplan
	[ ] STRING sLDAPPort        // data variable to be set at testplan
	[ ] STRING sHostname        // data variable to be set at testplan
	[ ] STRING sSilkPath        // data variable to be set at testplan
[-] testcase Open_Command_Window_to_Install_WPO (INSTALLINFO Data) appstate none
	[ ] // // // // // // // // // // // // // // // // // // // // // // //
	[ ] // "To attempt the impossible is the only way to make progress"
	[ ] // This testcase will open the command window and map a drive
	[ ] // to our install machine and start the installer.
	[ ] // // // // // // // // // // // // // // // // // // // // // // //
	[ ] Taskbar.SetActive ()
	[ ] DesktopWin().TypeKeys ("<Ctrl-Esc>")
	[ ] Taskbar.Start.Click ()
	[ ] // select the Start button on the Windows box
	[ ] DialogBox().TypeKeys ("r")
	[ ] // select the Run option
	[ ] DialogBox().ComboBox().SetText ("cmd.exe")
	[ ] // launch the command window
	[ ] DialogBox().PushButton("OK").Click ()
	[ ] // select OK
	[ ] Sleep (2)
	[ ] DialogBox("*cmd*[1]").SetActive ()
	[ ] DialogBox("*cmd*[1]").TypeKeys ("cd\")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // set state to root level
	[ ] DialogBox("*cmd*[1]").TypeKeys (Data.sMapdrive)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // mapping a drive on the DOS window to the build machine
	[ ] DialogBox("*cmd*[1]").TypeKeys ("y:")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // changing to newly mapped directory
	[ ] DialogBox("*cmd*[1]").TypeKeys ("cd ")
	[ ] DialogBox("*cmd*[1]").TypeKeys (Data.sInstalldir)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // going to the sInstalldir path
	[ ] DialogBox("*cmd*[1]").TypeKeys ("cd cd1")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("install y:\")
	[ ] DialogBox("*cmd*[1]").TypeKeys (Data.sInstalldir)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("\cd1")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // Launching the WPO installer
[+] testcase Enter_Install_Information (INSTALLINFO Data) appstate none
	[ ] // **** starting the WPO installer ****
	[ ] STRING sDatabaseUser = "db2admin"  //we can change this to a data driven var if needed
	[ ] INTEGER i 
	[+] for (i=0; i<200; ++i)  // Waits up to six minutes for the install screen to appear
		[-] if (! JavaMainWin().Exists ())
			[ ] Sleep (2)
		[-] else
			[ ] Sleep (1)
			[ ] i = 200
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin().SetActive ()
	[ ] // Setting focus to Java install window
	[ ] JavaMainWin().Maximize ()
	[ ] // maximise the install window 
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys ("<Space>")
	[ ] // selecting 'Accept' for license agreement
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys (Data.sInstallkey)
	[ ] // entering the install key
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] //JavaMainWin().CustomWin().JavaJFCTreeView().Select ("*WPS*[1]")
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Down>")
	[ ] JavaMainWin().TypeKeys ("<Down>")
	[ ] JavaMainWin().TypeKeys ("<Space>")
	[ ] // selecting WebSphere Portal from the install products list
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[-] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys (Data.sUsername)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] // entering User name and password for HTTP Server 
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[+] if (JavaMainWin().JavaDialogBox("Warning").JavaJFCPushButton("OK|$javax.swing.JButton").Exists ())
		[ ] JavaMainWin().JavaDialogBox("Warning").JavaJFCPushButton("OK|$javax.swing.JButton").Click ()
	[ ] else
	[ ] // selecting OK to overwrite password if popup appears
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] // entering password for WebSphere install
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next after entering WebSphere install info
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // accepting the default install for AppServer
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // remote database 'No'
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting to have DB2 as the database
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] // entering password for DB2
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next after entering DB2 info
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[+] if (JavaMainWin().JavaDialogBox("Warning").JavaJFCPushButton("OK|$javax.swing.JButton").Exists ())
		[ ] JavaMainWin().JavaDialogBox("Warning").JavaJFCPushButton("OK|$javax.swing.JButton").Click ()
	[ ] else
	[ ] // selecting OK to overwrite password
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // accepting the default database names
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // DB2 take no action
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // Should be at application server name but popup might appear
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (1)
	[+] if (JavaMainWin().JavaDialogBox("Missing Input Error").JavaJFCPushButton("OK|$javax.swing.JButton").Exists ())
		[ ] JavaMainWin().JavaDialogBox("Missing Input Error").JavaJFCPushButton("OK|$javax.swing.JButton").Click ()
		[ ] Cursor.Wait("POINTER", 10)
		[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] else
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // going with typical install
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // going with Database and LDAP directory mode
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // config security now
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] // entering LTPA password
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, for LTPA password screen
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, taking default server config
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Shift-End>")
	[ ] JavaMainWin().TypeKeys ("<Backspace 25>")
	[ ] Sleep (1)
	[ ] JavaMainWin().TypeKeys (Data.sLDAPServer)
	[ ] // entering SecureWay LDAP server hostname
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sLDAPPassword)
	[ ] // entering SecureWay LDAP password
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sLDAPPassword)
	[ ] // confim SecureWay LDAP password
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sLDAPSuffix)
	[ ] // enter SecureWay LDAP suffix
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys ("<Shift-End>")
	[ ] JavaMainWin().TypeKeys ("<Backspace 5>")
	[ ] Sleep (1)
	[ ] JavaMainWin().TypeKeys (Data.sLDAPPort)
	[ ] // enter SecureWay LDAP port
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, done entering LDAP info
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, taking default for LDAP group stuff
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, taking default for Database sharing
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 10)
	[ ] Sleep (3)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (sDatabaseUser)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] JavaMainWin().TypeKeys ("<Tab>")
	[ ] JavaMainWin().TypeKeys (Data.sPassword)
	[ ] // additional database config window
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 20)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, after entering db2admin database name
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 20)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, initialize existing database
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 20)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, accepting LUM
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 20)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // selecting Next, accepting default for LDAP directory client
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin().IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] Cursor.Wait("POINTER", 20)
	[ ] JavaMainWin().Exists (1)
	[ ] JavaMainWin().JavaJFCPushButton("Next").Click ()
	[ ] // Disk Check/Summary
	[ ] // Done with the Install Steps
[+] testcase Complete_the_Steps (INSTALLINFO Data) appstate none
	[ ] // Wait for the dreaded 13 Steps 
	[ ] STRING sHTTPStop = "NET STOP IBMHTTPServer"
	[ ] STRING sHTTPStart = "NET START IBMHTTPServer"
	[ ] STRING sAppinstalldrive = "c:"
	[ ] STRING sAppServerDir = "cd WebSphere\AppServer\bin"
	[ ] STRING sWebAppStop = 'NET STOP "IBM WS AdminServer 4.0"'
	[ ] STRING sWebAppStart = 'NET START "IBM WS AdminServer 4.0"'
	[ ] STRING sPortalStart1 = '"/Node:'
	[ ] STRING sPortalStart2 = '/ApplicationServer:WebSphere Portal/"'
	[ ] STRING sWebSpherePath = "c:\WebSphere\AppServer\java\jre\lib\ext"
	[ ] STRING sSilkJava = '\JavaEx\SilkTest_Java2.jar"'
	[ ] SEMAPHORE sSemAlpha = 1
	[ ] INTEGER i = 50
	[ ] INTEGER n = 50
	[ ] INTEGER x = 25
	[+] while (i > 0)  // Waits up to 2 hours for the install to arrive at the 13 steps
		[-] if (! JavaMainWin().JavaDialogBox("Configuring for Admin Role").Exists ())
			[ ] Sleep (150)
			[ ] i = i - 1
			[-] if (JavaMainWin().JavaDialogBox("Login at the Target Server").Exists ())
				[ ] JavaMainWin().JavaDialogBox("Login at the Target Server").SetActive ()
				[ ] JavaMainWin().JavaDialogBox("Login at the Target Server").TypeKeys ("wpsbind<Tab>wpsbind")
				[ ] JavaMainWin().JavaDialogBox("Login at the Target Server").TypeKeys ("<Tab>")
				[ ] JavaMainWin().JavaDialogBox("Login at the Target Server").TypeKeys ("<Enter>")
			[ ] else
		[-] else
			[ ] Sleep (1)
			[ ] i = 0
	[ ] Taskbar.SetActive ()
	[ ] DesktopWin().TypeKeys ("<Ctrl-Esc>")
	[ ] Taskbar.Start.Click ()
	[ ] // select the Start button on the Windows box
	[ ] DialogBox().TypeKeys ("r")
	[ ] // select the Run option
	[ ] DialogBox().ComboBox().SetText ("cmd.exe")
	[ ] // launch the command window
	[ ] DialogBox().PushButton("OK").Click ()
	[ ] // select OK
	[ ] Sleep (2)
	[ ] DialogBox("*cmd*[1]").SetActive ()
	[ ] DesktopWin().TypeKeys ("cd\")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // set state to root level
	[ ] DialogBox("*cmd*[1]").TypeKeys ("copy ")
	[ ] DialogBox("*cmd*[1]").TypeKeys (Data.sSilkPath)
	[ ] DialogBox("*cmd*[1]").TypeKeys (sSilkJava)
	[ ] DialogBox("*cmd*[1]").TypeKeys (" ")
	[ ] DialogBox("*cmd*[1]").TypeKeys (sWebSpherePath)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] DesktopWin().TypeKeys ("cd\")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // set state to root level again
	[ ] DialogBox("*cmd*[1]").TypeKeys (sHTTPStop)
	[ ] Acquire (sSemAlpha)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // stopping the IBM HTTP Server service
	[ ] Release (sSemAlpha)
	[ ] Acquire (sSemAlpha)
	[ ] DialogBox("*cmd*[1]").TypeKeys (sHTTPStart)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // starting the IBM HTTP Server service
	[ ] Release (sSemAlpha)
	[ ] Sleep (30)
	[ ] ////////////////////////////////////////////////////////////////
	[ ] ////////////// Open WebSphere Admin Console ////////////////////
	[ ] ////////////////////////////////////////////////////////////////
	[ ] DesktopWin().TypeKeys ("cd\")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // set state to root level
	[ ] DialogBox("*cmd*[1]").TypeKeys (sAppinstalldrive)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] DialogBox("*cmd*[1]").TypeKeys (sAppServerDir)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("adminclient.bat")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // launching the WebSphere Admin Console
	[+] for (i=0; i<50; ++i)  // Waits up to 100 seconds for the admin screen to appear
		[-] if (! JavaMainWin("WebSphere Advanced*").Exists ())
			[ ] Sleep (2)
		[-] else
			[ ] Sleep (1)
			[ ] i = 50
	[ ] JavaMainWin("WebSphere Advanced*").SetActive ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("WebSphere Advanced*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("WebSphere Advanced*").Maximize ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("WebSphere Advanced*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("WebSphere Advanced*").JavaJFCMenu("Console").JavaJFCMenuItem("Security Center[1]").Pick ()
	[ ] // opening the security center
	[ ] JavaMainWin("Security Center").SetActive ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaJFCPageList("#1|$javax.swing.JTabbedPane").Select ("Administrative Role")
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaJFCPageList("#1|$javax.swing.JTabbedPane").JavaJFCTable("#1|$javax.swing.JTable").ClickCell ({1, 1})
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaJFCPageList("#1|$javax.swing.JTabbedPane").JavaJFCPushButton("Select").Click ()
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").SetActive ()
	[ ] // we are now in the admin role window to select users, first we set the window active
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").SetActive ()
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCCheckBox("Select users?groups|$javax.swing.JCheckBox[3]").Check ()
	[ ] // checking the box
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCTextField("Search:|$javax.swing.JTextField").SetPosition (1, 1)
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCTextField("Search:|$javax.swing.JTextField").SetText ("*")
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCPushButton("Search[1]").Click ()
	[ ] // entering the * to search for users and groups and selecting Search
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ]   JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCTreeView("Available Users?Groups|$javax.swing.JTree[1]").Select ("uid=wpsadmin,*")
	[ ] // selecting wpsadmin user
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCPushButton("Add*[1]").Click ()
	[ ] // selecting Add
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCTreeView("Available Users?Groups|$javax.swing.JTree[1]").Select ("uid=wpsbind,*")
	[ ] // selecting wpsbind user
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCPushButton("Add*[1]").Click ()
	[ ] // selecting Add
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCTreeView("Available Users?Groups|$javax.swing.JTree[1]").Select ("cn=wpsadmins*")
	[ ] // selecting wpsadmins group
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCPushButton("Add*[1]").Click ()
	[ ] // selecting Add
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Select Users?Groups - AdminRole").JavaJFCPushButton("OK").Click ()
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").SetActive ()
	[ ] JavaMainWin("Security Center").JavaJFCPushButton("Apply").Click ()
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaDialogBox("Warning").SetActive ()
	[ ] JavaMainWin("Security Center").JavaDialogBox("Warning").JavaJFCPushButton("OK").Click ()
	[ ] // closes the warning popup after selecting apply
	[+] for (i=0; i<10; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("Security*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("Security Center").JavaJFCPushButton("OK").Click ()
	[ ] // closing the security window
	[ ] JavaMainWin("WebSphere Advanced*").SetActive ()
	[+] for (i=0; i<20; ++i)  // Checks to see if the Java Window will accept action
		[-] if (! JavaMainWin("WebSphere Advanced*").IsActive ())
			[ ] Sleep (1)
		[-] else
			[ ] Sleep (1)
			[ ] i = 20
	[ ] JavaMainWin("WebSphere Advanced*").JavaJFCMenu("Console|$javax.swing.JMenu[4]").JavaJFCMenuItem("Exit[1]").Pick ()
	[ ] // selecting exit from the Console menu
	[ ] JavaMainWin("WebSphere Advanced Administrative Console").JavaDialogBox("Confirm dialog").SetActive ()
	[ ] JavaMainWin("WebSphere Advanced Administrative Console").JavaDialogBox("Confirm dialog").JavaJFCPushButton("Yes").Click ()
	[ ] // selecting yes to confirm closing the Admin Console
	[ ] Sleep (2)
	[ ] DialogBox("*cmd*[1]").SetActive ()
	[ ] DialogBox("*cmd*[1]").TypeKeys ("cd\")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // setting DOS window back to root
	[ ] DialogBox("*cmd*[1]").TypeKeys (sWebAppStop)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // stopping the WebSphere AppServer service
	[ ] DialogBox("*cmd*[1]").TypeKeys (sWebAppStart)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // starting the WebSphere AppServer service
	[ ] Sleep (120)
	[ ] // wait for DOS prompt to return
	[ ] DialogBox("*cmd*[1]").TypeKeys (sAppinstalldrive)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] DialogBox("*cmd*[1]").TypeKeys (sAppServerDir)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("wscp.bat")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // launching the wscp command interface
	[ ] Sleep (120)
	[ ] // wait for DOS prompt to return
	[ ] DialogBox("*cmd*[1]").TypeKeys ("ApplicationServer start ")
	[ ] DialogBox("*cmd*[1]").TypeKeys (sPortalStart1)
	[ ] DialogBox("*cmd*[1]").TypeKeys (Data.sHostname)
	[ ] DialogBox("*cmd*[1]").TypeKeys (sPortalStart2)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // restarting the WPS application server
	[ ] Sleep (25)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("exit")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // exit out of wscp command line
	[ ] Sleep (5)
	[ ] DialogBox("*cmd*[1]").TypeKeys ("exit")
	[ ] DialogBox("*cmd*[1]").TypeKeys ("<Enter>")
	[ ] // close DOS window
	[ ] Sleep (20)
	[ ] JavaMainWin().JavaDialogBox("Configuring for Admin Role").SetActive ()
	[ ] JavaMainWin().JavaDialogBox("Configuring for Admin Role").TypeKeys ("<Enter>")
	[ ] // selecting OK on the 13 steps javabox
[+] testcase Wait_for_the_Finish () appstate none
	[ ] INTEGER i = 50
	[-] while (i > 0)  // Waits up to 2 hours for the install to complete
		[-] if (! JavaMainWin().JavaDialogBox("Installation Complete").Exists ())
			[ ] Sleep (150)
			[ ] i = i - 1
		[-] else
			[ ] Sleep (1)
			[ ] i = 0
	[ ] JavaMainWin("Display Summary").JavaDialogBox("Installation Complete").SetActive ()
	[ ] JavaMainWin("Display Summary").JavaDialogBox("Installation Complete").TypeKeys ("<Enter>")
	[ ] JavaMainWin().JavaJFCPushButton("Finish").Exists (2)
	[ ] JavaMainWin().JavaJFCPushButton("Finish").Click ()
	[ ] // select ok then Finish!!!
