setTimeout |
120000 |
|
open |
logout |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
select |
//select[@class='langSelect'] |
label=English (United Kingdom) |
clickAndWait |
//input[@class='langSubmit'] |
|
verifyTextPresent |
You are logged as Administrator |
|
clickAndWait |
link=Users & groups |
|
clickAndWait |
link=Create a new user |
|
type |
//input[@id='createUser:nxl_user:nxw_username'] |
carlos |
type |
//input[@id='createUser:nxl_user:nxw_email'] |
sg+carlos@nuxeo.com |
type |
//input[@id='createUser:nxl_user:nxw_firstPassword'] |
carlos1 |
type |
//input[@id='createUser:nxl_user:nxw_secondPassword'] |
carlos1 |
typeKeys |
//input[@name='createUser:nxl_user:nxw_groups_suggest'] |
members |
waitForCondition |
selenium.browserbot.getCurrentWindow().document.getElementById('createUser:nxl_user:nxw_groups_suggestionBox').style.display != 'none' |
10000 |
verifyText |
//*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] |
members |
click |
//*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().document.getElementById('createUser:nxl_user:nxw_groups_list:0:nxw_groups_listItem') != null |
10000 |
clickAndWait |
//input[@value='Save'] |
|
clickAndWait |
link=Log out |
|
type |
username |
carlos |
type |
password |
carlos1 |
clickAndWait |
Submit |
|
select |
//select[@class='langSelect'] |
label=English (United Kingdom) |
clickAndWait |
//input[@class='langSubmit'] |
|
verifyTextPresent |
You are logged as carlos |
|
clickAndWait |
link=Users & groups |
|
type |
//input[@id='searchForm:searchText'] |
carlos |
clickAndWait |
//input[@id='searchForm:searchButton'] |
|
clickAndWait |
link=carlos |
|
verifyTextPresent |
members |
|
clickAndWait |
link=Log out |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
select |
//select[@class='langSelect'] |
label=English (United Kingdom) |
clickAndWait |
//input[@class='langSubmit'] |
|
verifyTextPresent |
You are logged as Administrator |
|
clickAndWait |
link=Users & groups |
|
type |
//input[@id='searchForm:searchText'] |
carlos |
clickAndWait |
//input[@id='searchForm:searchButton'] |
|
clickAndWait |
link=carlos |
|
clickAndWait |
link=Delete |
|
assertConfirmation |
Delete user? |
|
clickAndWait |
link=Log out |
|