createPartyAndCheckRoleTypeCreated
echo test create a company and check there is a party-name associated
echo begin standard procedure
open https://localhost:8443/partymgr/control/logout
open https://localhost:8443/partymgr/control/setSessionLocale?newLocale=en
type USERNAME admin
type PASSWORD ofbiz
clickAndWait //input[@value='Login']
echo end of standard procedure
open https://localhost:8443/partymgr/control/NewCustomer
type NewUser_USER_FIRST_NAME Jean
type NewUser_USER_LAST_NAME Bon
type NewUser_USER_ADDRESS1 rue Jean Bon
type NewUser_USER_CITY Paris
type NewUser_USER_POSTAL_CODE 75000
select NewUser_USER_COUNTRY label=FRA: France
type NewUser_USER_EMAIL jean.bon@mail.fr
type NewUser_USERNAME jeanbon
type NewUser_PASSWORD bonjean
type NewUser_CONFIRM_PASSWORD bonjean
clickAndWait link=Save
clickAndWait link=Role(s)
assertTitle exact:OFBiz: Party Manager: View Party Roles
assertElementPresent //table[@class='basic-table hover-bar']//span[contains(text(),'BILL_TO_CUSTOMER')]
assertElementPresent //table[@class='basic-table hover-bar']//span[contains(text(),'BULK_CUSTOMER')]
assertElementPresent //table[@class='basic-table hover-bar']//span[contains(text(),'END_USER_CUSTOMER')]
assertElementPresent //table[@class='basic-table hover-bar']//span[contains(text(),'PLACING_CUSTOMER')]
assertElementPresent //table[@class='basic-table hover-bar']//span[contains(text(),'SHIP_TO_CUSTOMER')]
echo begin test Employee Creation
open https://localhost:8443/partymgr/control/NewEmployee
type NewUser_USER_FIRST_NAME Jean
type NewUser_USER_LAST_NAME Employ
type NewUser_USER_ADDRESS1 rue Jean Bon
type NewUser_USER_CITY Paris
type NewUser_USER_POSTAL_CODE 75000
select NewUser_USER_COUNTRY label=FRA: France
type NewUser_USER_HOME_CONTACT 0123345635
type NewUser_USER_EMAIL jean.employ@mail.fr
type NewUser_USERNAME jeanemploy
type NewUser_PASSWORD bonjean
type NewUser_CONFIRM_PASSWORD bonjean
clickAndWait link=Save
assertElementNotPresent //div[@class='content-messages errorMessage']
echo success