core-jgi/selenese/resource/selenese/ChangeRole.selenese

177 lines
3.1 KiB
XML

<?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="http://127.0.0.1:8080/" />
<title>login</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">login</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/webui/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=loginPanel_txtUserId</td>
<td>GardenAdmin</td>
</tr>
<tr>
<td>fireEvent</td>
<td>id=loginPanel_txtUserId</td>
<td>blur</td>
</tr>
<tr>
<td>type</td>
<td>id=loginPanel_txtPassword</td>
<td>GardenAdmin</td>
</tr>
<tr>
<td>fireEvent</td>
<td>id=loginPanel_txtPassword</td>
<td>blur</td>
</tr>
<tr>
<td>click</td>
<td>id=loginPanel_lstLanguage-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#loginPanel_lstLanguage_English &gt; td.z-comboitem-text</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=loginPanel_chkSelectRole-real</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=loginPanel_Ok</td>
<td>10</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=rolePanel_lstClient-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_lstClient-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#rolePanel_lstClient_GardenWorld &gt; td.z-comboitem-text</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_lstRole-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#rolePanel_lstRole_GardenWorld_Admin &gt; td.z-comboitem-text</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_lstOrganisation-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#rolePanel_lstOrganisation_HQ &gt; td.z-comboitem-text</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_Ok</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=loginUserAndRole</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>id=loginUserAndRole</td>
<td>GardenAdmin@GardenWorld.HQ/GardenWorld Admin</td>
</tr>
<tr>
<td>click</td>
<td>id=changeRole</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=rolePanel_lstClient</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_lstRole-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#rolePanel_lstRole_GardenWorld_User &gt; td.z-comboitem-text</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_lstOrganisation-btn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#rolePanel_lstOrganisation_HQ &gt; td.z-comboitem-text</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=rolePanel_Ok</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>id=loginUserAndRole</td>
<td>GardenAdmin@GardenWorld.HQ/GardenWorld User</td>
</tr>
</tbody></table>
</body>
</html>