setTimeout |
30000 |
|
open |
restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium deleteUser |
|
open |
logout |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
verifyTextPresent |
Administrator |
|
clickAndWait |
Link=Admin Center |
|
clickAndWait |
Link=Users & groups |
|
watchA4jRequests |
|
|
click |
link=Create a new user |
|
waitForA4jRequest |
10000 |
|
type |
//input[@id='createUserView:createUser:nxl_user:nxw_username'] |
carlos |
type |
//input[@id='createUserView:createUser:nxl_user:nxw_email'] |
sg+carlos@nuxeo.com |
type |
//input[@id='createUserView:createUser:nxl_user:nxw_firstPassword'] |
carlos1 |
type |
//input[@id='createUserView:createUser:nxl_user:nxw_secondPassword'] |
carlos1 |
typeKeys |
//input[@name='createUserView:createUser:nxl_user:nxw_groups_suggest'] |
members |
waitForCondition |
selenium.browserbot.getCurrentWindow().document.getElementById('createUserView:createUser:nxl_user:nxw_groups_suggestionBox').style.display != 'none' |
10000 |
verifyText |
//*[@id='createUserView:createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] |
Members group |
click |
//*[@id='createUserView:createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().document.getElementById('createUserView:createUser:nxl_user:nxw_groups_list:0:nxw_groups_listItem') != null |
10000 |
watchA4jRequests |
|
|
click |
//input[@value='Save'] |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
carlos |
|
clickAndWait |
link=Log out |
|
type |
username |
carlos |
type |
password |
carlos1 |
clickAndWait |
Submit |
|
verifyTextPresent |
carlos |
|
clickAndWait |
Link=Home |
|
clickAndWait |
link=Users & groups |
|
type |
//input[@id='usersListingView:searchForm:searchText'] |
carlos |
watchA4jRequests |
|
|
click |
//input[@id='usersListingView:searchForm:searchButton'] |
|
waitForA4jRequest |
10000 |
|
watchA4jRequests |
|
|
click |
xpath=id('usersListingView:users_listing')/x:table[1]/x:tbody[1]/x:tr[1]/x:td[1]/x:div[1]/x:a[1] |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
Members group |
|
clickAndWait |
link=Log out |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
verifyTextPresent |
Administrator |
|
clickAndWait |
Link=Admin Center |
|
clickAndWait |
link=Users & groups |
|
type |
//input[@id='usersListingView:searchForm:searchText'] |
carlos |
watchA4jRequests |
|
|
click |
//input[@id='usersListingView:searchForm:searchButton'] |
|
waitForA4jRequest |
10000 |
|
watchA4jRequests |
|
|
click |
xpath=id('usersListingView:users_listing')/x:table[1]/x:tbody[1]/x:tr[1]/x:td[1]/x:div[1]/x:a[1] |
|
waitForA4jRequest |
10000 |
|
click |
link=Delete |
|
assertConfirmation |
Delete user? |
|
waitForTextPresent |
No user matching the entered criteria |
10000 |
clickAndWait |
link=Log out |
|