createUsers
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium createUsers
open logout
type username Administrator
type password Administrator
clickAndWait Submit
verifyTextPresent You are logged as Administrator
clickAndWait Link=Users & groups
clickAndWait link=Create a new user
type //input[@id='createUser:nxl_user:nxw_username'] jdoe
type //input[@id='createUser:nxl_user:nxw_firstname'] John
type //input[@id='createUser:nxl_user:nxw_lastname'] Doe
type //input[@id='createUser:nxl_user:nxw_company'] Nuxeo
type //input[@id='createUser:nxl_user:nxw_firstPassword'] jdoe1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] foo
type //input[@id='createUser:nxl_user:nxw_email'] sg+jdoe@nuxeo.com
watchA4jRequests
typeKeys //input[@name='createUser:nxl_user:nxw_groups_suggest'] members
waitForA4jRequest 10000
verifyText //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] members
watchA4jRequests
click //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForA4jRequest 10000
clickAndWait //input[@value='Save']
verifyTextPresent Passwords do not match
type //input[@id='createUser:nxl_user:nxw_firstPassword'] jdoe1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] jdoe1
clickAndWait //input[@value='Save']
verifyTextPresent Doe
clickAndWait link=Users & groups
type searchForm:searchText jdoe
clickAndWait searchForm:searchButton
clickAndWait link=jdoe
clickAndWait link=Change password
type //input[@id='editUser:nxl_user:nxw_firstPassword'] jdoe1
type //input[@id='editUser:nxl_user:nxw_secondPassword'] foo
clickAndWait //input[@value='Save']
verifyTextPresent Passwords do not match
type //input[@id='editUser:nxl_user:nxw_firstPassword'] jdoe1
type //input[@id='editUser:nxl_user:nxw_secondPassword'] jdoe1
clickAndWait //input[@value='Save']
verifyTextPresent sg+jdoe@nuxeo.com
clickAndWait link=Back to the list
clickAndWait link=Create a new user
type //input[@id='createUser:nxl_user:nxw_username'] jdoe
type //input[@id='createUser:nxl_user:nxw_email'] sg+jdoe@nuxeo.com
type //input[@id='createUser:nxl_user:nxw_firstPassword'] jdoe1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] jdoe1
clickAndWait //input[@value='Save']
verifyTextPresent User already exists
type //input[@id='createUser:nxl_user:nxw_username'] jsmith
type //input[@id='createUser:nxl_user:nxw_firstname'] John
type //input[@id='createUser:nxl_user:nxw_lastname'] Smith
type //input[@id='createUser:nxl_user:nxw_company'] Nuxeo
type //input[@id='createUser:nxl_user:nxw_email'] sg+jsmith@nuxeo.com
type //input[@id='createUser:nxl_user:nxw_firstPassword'] jsmith1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] jsmith1
watchA4jRequests
typeKeys //input[@name='createUser:nxl_user:nxw_groups_suggest'] members
waitForA4jRequest 10000
verifyText //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] members
watchA4jRequests
click //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForA4jRequest 10000
clickAndWait //input[@value='Save']
verifyTextPresent Smith
clickAndWait link=Users & groups
type searchForm:searchText jsmith
clickAndWait searchForm:searchButton
clickAndWait link=jsmith
clickAndWait link=Change password
type //div[@class='tabsContent']//table//tr[1]//input jsmith1
type //div[@class='tabsContent']//table//tr[2]//input jsmith1
clickAndWait //input[@value='Save']
verifyTextPresent sg+jsmith@nuxeo.com
clickAndWait link=Back to the list
clickAndWait link=Create a new user
type //input[@id='createUser:nxl_user:nxw_username'] bree
type //input[@id='createUser:nxl_user:nxw_firstname'] Bree
type //input[@id='createUser:nxl_user:nxw_lastname'] Van de Kaamp
type //input[@id='createUser:nxl_user:nxw_company'] Nuxeo
type //input[@id='createUser:nxl_user:nxw_email'] sg+bree@nuxeo.com
type //input[@id='createUser:nxl_user:nxw_firstPassword'] bree1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] bree1
watchA4jRequests
typeKeys //input[@name='createUser:nxl_user:nxw_groups_suggest'] members
waitForA4jRequest 10000
verifyText //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] members
watchA4jRequests
click //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForA4jRequest 10000
clickAndWait //input[@value='Save']
verifyTextPresent Bree
clickAndWait link=Users & groups
type searchForm:searchText bree
clickAndWait searchForm:searchButton
clickAndWait link=bree
clickAndWait link=Change password
type //div[@class='tabsContent']//table//tr[1]//input bree1
type //div[@class='tabsContent']//table//tr[2]//input bree1
clickAndWait //input[@value='Save']
verifyTextPresent sg+bree@nuxeo.com
clickAndWait link=Back to the list
clickAndWait link=Create a new user
type //input[@id='createUser:nxl_user:nxw_username'] lbramard
type //input[@id='createUser:nxl_user:nxw_firstname'] Lucien
type //input[@id='createUser:nxl_user:nxw_lastname'] Bramard
type //input[@id='createUser:nxl_user:nxw_company'] Nuxeo
type //input[@id='createUser:nxl_user:nxw_firstPassword'] lbramard1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] lbramard1
type //input[@id='createUser:nxl_user:nxw_email'] sg+lbramard@nuxeo.com
watchA4jRequests
typeKeys //input[@name='createUser:nxl_user:nxw_groups_suggest'] members
waitForA4jRequest 10000
verifyText //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] members
watchA4jRequests
click //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForA4jRequest 10000
clickAndWait //input[@value='Save']
verifyTextPresent Bramard
clickAndWait link=Users & groups
type searchForm:searchText lbramard
clickAndWait searchForm:searchButton
clickAndWait link=lbramard
clickAndWait link=Change password
type //div[@class='tabsContent']//table//tr[1]//input lbramard1
type //div[@class='tabsContent']//table//tr[2]//input lbramard1
clickAndWait //input[@value='Save']
verifyTextPresent sg+lbramard@nuxeo.com
clickAndWait link=Users & groups
type searchForm:searchText lbramard
clickAndWait searchForm:searchButton
clickAndWait link=lbramard
verifyTextPresent Lucien
clickAndWait link=Back to the list
clickAndWait link=Create a new user
type //input[@id='createUser:nxl_user:nxw_username'] linnet
type //input[@id='createUser:nxl_user:nxw_firstname'] Linnet
type //input[@id='createUser:nxl_user:nxw_lastname'] Scavo
type //input[@id='createUser:nxl_user:nxw_company'] Nuxeo
type //input[@id='createUser:nxl_user:nxw_firstPassword'] linnet1
type //input[@id='createUser:nxl_user:nxw_secondPassword'] linnet1
type //input[@id='createUser:nxl_user:nxw_email'] sg+linnet@nuxeo.com
watchA4jRequests
typeKeys //input[@name='createUser:nxl_user:nxw_groups_suggest'] members
waitForA4jRequest 10000
verifyText //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] members
watchA4jRequests
click //*[@id='createUser:nxl_user:nxw_groups_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForA4jRequest 10000
clickAndWait //input[@value='Save']
verifyTextPresent Scavo
clickAndWait link=Users & groups
type searchForm:searchText linnet
clickAndWait searchForm:searchButton
clickAndWait link=linnet
verifyTextPresent Scavo
clickAndWait link=Log out