<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://web2.login-test.cornell.edu/" />
<title>Test case</title>
<style>.failed {color: red; background-color: #ffcccc;}.passed {color: black; background-color: #ccffcc;}.done {color: black; background-color: #eeffee;}</style>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test case</td></tr>
</thead><tbody>
<tr class="done">
<td>deleteCookie</td>
<td>("cuwlrelogin", "path=/, domain=.login-test.cornell.edu");</td>
<td></td>
</tr>
<tr class="done">
<td>deleteCookie</td>
<td>("cuwlrelogin", "path=/, domain=.login.cornell.edu");</td>
<td></td>
</tr>
<tr class="done">
<td>open</td>
<td>https://kfs-dev.adminapps.cornell.edu/kfs-dev/portal.do?</td>
<td></td>
</tr>
<tr class="done">
<td>type</td>
<td>id=netid</td>
<td>xxxxxxxxxxxxxxxx</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=password</td>
<td>xxxxxxxxxxxxxx</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>name=Submit</td>
<td></td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>link=Main Menu</td>
<td></td>
</tr>
<tr class="done">
<td>type</td>
<td>name=backdoorId</td>
<td>ky16</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>name=imageField</td>
<td></td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>link=Account</td>
<td></td>
</tr>
<tr class="done">
<td>selectFrame</td>
<td>iframeportlet</td>
<td></td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>css=img[alt="create new"]</td>
<td></td>
</tr>
<tr class="done">
<td>click</td>
<td>id=document.documentHeader.documentDescription</td>
<td></td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.documentHeader.documentDescription</td>
<td>Create New Account Automated Test</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.chartOfAccountsCode</td>
<td>IT</td>
</tr>
<tr class="done">
<td>storeEval</td>
<td>javascript{(Math.floor(Math.random()*1000001+1000000));}</td>
<td>AcctNbr</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountNumber</td>
<td>${AcctNbr}</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountName</td>
<td>Test Create Account</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.organizationCode</td>
<td>0001</td>
</tr>
<tr class="done">
<td>select</td>
<td>id=document.newMaintainableObject.accountPhysicalCampusCode</td>
<td>label=IT - Ithaca</td>
</tr>
<tr class="done">
<td>click</td>
<td>id=document.newMaintainableObject.accountExpirationDate_datepicker</td>
<td></td>
</tr>
<tr class="done">
<td>click</td>
<td>css=td.day.selected</td>
<td></td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountZipCode</td>
<td>14850</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountCityName</td>
<td>Ithaca</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountStateCode</td>
<td>NY</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountStreetAddress</td>
<td>395 Pine Tree Road</td>
</tr>
<tr class="done">
<td>select</td>
<td>id=document.newMaintainableObject.accountTypeCode</td>
<td>label=CC - Contract</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.subFundGroupCode</td>
<td>ADMSYS</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.extension.laborBenefitRateCategoryCode</td>
<td>--</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.financialHigherEdFunctionCd</td>
<td>4100</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountFiscalOfficerUser.principalName</td>
<td>snw3</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountSupervisoryUser.principalName</td>
<td>ss104</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountManagerUser.principalName</td>
<td>vmr2</td>
</tr>
<tr class="done">
<td>select</td>
<td>id=document.newMaintainableObject.continuationFinChrtOfAcctCd</td>
<td>label=IT - Ithaca Campus</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.continuationAccountNumber</td>
<td>1003012</td>
</tr>
<tr class="done">
<td>select</td>
<td>id=document.newMaintainableObject.budgetRecordingLevelCode</td>
<td>label=O - Object Code</td>
</tr>
<tr class="done">
<td>select</td>
<td>id=document.newMaintainableObject.accountSufficientFundsCode</td>
<td>label=N - No Checking</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountGuideline.accountExpenseGuidelineText</td>
<td>Test Account Expense Guideline Text</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountGuideline.accountIncomeGuidelineText</td>
<td>Test Account Income Guideline Text</td>
</tr>
<tr class="done">
<td>type</td>
<td>id=document.newMaintainableObject.accountGuideline.accountPurposeText</td>
<td>Test Account Purpose Text</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>css=#globalbuttons > input[name="methodToCall.save"]</td>
<td></td>
</tr>
<tr class="done">
<td>waitForText</td>
<td>css=div.left-errmsg > div</td>
<td>Document was successfully saved.</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>name=methodToCall.route</td>
<td></td>
</tr>
<tr class="done">
<td>waitForText</td>
<td>css=div.left-errmsg > div</td>
<td>Document was successfully submitted.</td>
</tr>
<tr class="done">
<td>storeText</td>
<td>css=td</td>
<td>DocNbr</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>name=methodToCall.close</td>
<td></td>
</tr>
<tr class="done">
<td>selectWindow</td>
<td>null</td>
<td></td>
</tr>
<tr class="done">
<td>open</td>
<td>https://cynergy-dev.cit.cornell.edu/cynergy/portal.jsp</td>
<td></td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>link=Main Menu</td>
<td></td>
</tr>
<tr class="done">
<td>type</td>
<td>name=backdoorId</td>
<td>snw3</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>name=imageField</td>
<td></td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>css=img[alt="doc search"]</td>
<td></td>
</tr>
<tr class="done">
<td>selectFrame</td>
<td>iframeportlet</td>
<td></td>
</tr>
<tr class="done">
<td>click</td>
<td>id=routeHeaderId</td>
<td></td>
</tr>
<tr class="done">
<td>type</td>
<td>id=routeHeaderId</td>
<td>${DocNbr}</td>
</tr>
<tr class="done">
<td>clickAndWait</td>
<td>css=td.infoline > input[name="methodToCall.search"]</td>
<td></td>
</tr>
<tr class="done">
<td>storeTitle</td>
<td>Kuali :: Lookup</td>
<td>NewPageTitle</td>
</tr>
<tr class="passed">
<td>assertTitle</td>
<td>Kuali :: Lookup</td>
<td></td>
</tr>
<tr class="done">
<td>click</td>
<td>link=${DocNbr}</td>
<td></td>
</tr>
<tr class="done">
<td>echo</td>
<td>${NewPageTitle}</td>
<td></td>
</tr>
<tr class="done">
<td>waitForTitle</td>
<td>Kuali :: Lookup</td>
<td></td>
</tr>
<tr class="failed">
<td>selectWindow</td>
<td>Kuali :: Lookup</td>
<td><B>Here<td><font size="4" face="arial" color="red">Here is where it fails</B><font></td>
</tr>
<tr class="">
<td>verifyTextPresent</td>
<td>Document Overview</td>
<td></td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>name=methodToCall.approve</td>
<td></td>
</tr>
<tr class="">
<td>selectWindow</td>
<td>null</td>
<td></td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>link=Main Menu</td>
<td></td>
</tr>
<tr class="">
<td>type</td>
<td>name=backdoorId</td>
<td>vmr2</td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>name=imageField</td>
<td></td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>css=img[alt="doc search"]</td>
<td></td>
</tr>
<tr class="">
<td>selectFrame</td>
<td>iframeportlet</td>
<td></td>
</tr>
<tr class="">
<td>click</td>
<td>id=routeHeaderId</td>
<td></td>
</tr>
<tr class="">
<td>type</td>
<td>id=routeHeaderId</td>
<td>${DocNbr}</td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>css=td.infoline > input[name="methodToCall.search"]</td>
<td></td>
</tr>
<tr class="">
<td>storeTitle</td>
<td>Kuali :: Lookup</td>
<td>NewPageTitle</td>
</tr>
<tr class="">
<td>click</td>
<td>link=${DocNbr}</td>
<td></td>
</tr>
<tr class="">
<td>waitForTitle</td>
<td>Kuali :: Lookup</td>
<td></td>
</tr>
<tr class="">
<td>verifyTextPresent</td>
<td>Document Overview</td>
<td></td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>name=methodToCall.approve</td>
<td></td>
</tr>
<tr class="">
<td>selectWindow</td>
<td>null</td>
<td></td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>link=Account</td>
<td></td>
</tr>
<tr class="">
<td>selectFrame</td>
<td>iframeportlet</td>
<td></td>
</tr>
<tr class="">
<td>click</td>
<td>id=accountNumber</td>
<td></td>
</tr>
<tr class="">
<td>type</td>
<td>id=accountNumber</td>
<td>X987365</td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>css=td.infoline > input[name="methodToCall.search"]</td>
<td></td>
</tr>
<tr class="">
<td>waitForTextPresent</td>
<td>${AcctNbr}</td>
<td></td>
</tr>
<tr class="">
<td>selectFrame</td>
<td>relative=up</td>
<td></td>
</tr>
<tr class="">
<td>clickAndWait</td>
<td>link=Main Menu</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
|