open | ${CurrentEnvironment}/add.php | |
clickAndWait | link=Add Document | |
break | | |
type | name=file[] | /var/www/test.txt |
select | name=file_owner | label=User, DeptA |
select | name=file_department | label=Department A |
select | name=category | label=SOP |
click | link=Edit Department Permissions | |
click | name=department_permission[2] | |
click | xpath=(//input[@name='department_permission[4]'])[3] | |
click | xpath=(//input[@name='department_permission[1]'])[5] | |
click | link=Edit User Permissions | |
click | name=user_permission[9] | |
click | xpath=(//input[@name='user_permission[10]'])[2] | |
click | xpath=(//input[@name='user_permission[11]'])[3] | |
click | xpath=(//input[@name='user_permission[8]'])[4] | |
click | //input[@name='description'] | |
type | //input[@name='description'] | File Test 1 |
click | name=comment | |
type | name=comment | Just a test comment |
click | name=submit | |
assertText | //tr[2]/td | SOP |
click | //tr[5]/td | |
assertText | link=User, DeptA | User, DeptA |
click | //tr[6]/td | |
assertText | //tr[6]/td | File Test 1 |
click | //tr[7]/td | |
assertText | //tr[7]/td | Just a test comment |
click | link=Edit | |
assertValue | name=file_owner | 2 |
assertValue | name=file_department | 2 |
assertValue | name=category | 1 |
click | link=Edit Department Permissions | |
assertValue | xpath=(//input[@name='department_permission[2]'])[2] | on |
assertValue | xpath=(//input[@name='department_permission[3]'])[2] | on |
assertValue | xpath=(//input[@name='department_permission[4]'])[3] | on |
assertValue | xpath=(//input[@name='department_permission[1]'])[5] | on |
click | link=Edit User Permissions | |
assertValue | name=user_permission[9] | on |
assertValue | xpath=(//input[@name='user_permission[10]'])[2] | on |
assertValue | xpath=(//input[@name='user_permission[11]'])[3] | on |
assertValue | xpath=(//input[@name='user_permission[1]'])[5] | on |
assertValue | xpath=(//input[@name='user_permission[8]'])[4] | on |
assertValue | //input[@name='description'] | File Test 1 |
assertValue | name=comment | Just a test comment |
click | link=Edit Department Permissions | |
click | xpath=(//input[@name='department_permission[2]'])[6] | |
click | xpath=(//input[@name='department_permission[3]'])[6] | |
click | xpath=(//input[@name='department_permission[4]'])[6] | |
click | xpath=(//input[@name='department_permission[1]'])[6] | |
click | link=Edit User Permissions | |
click | xpath=(//input[@name='user_permission[9]'])[5] | |
click | xpath=(//input[@name='user_permission[10]'])[5] | |
click | xpath=(//input[@name='user_permission[11]'])[5] | |
click | xpath=(//input[@name='user_permission[8]'])[5] | |
click | name=submit | |
assertText | id=last_message | Document successfully updated |
click | link=Edit | |
click | link=Edit Department Permissions | |
assertValue | xpath=(//input[@name='department_permission[2]'])[6] | on |
assertValue | xpath=(//input[@name='department_permission[3]'])[6] | on |
assertValue | xpath=(//input[@name='department_permission[4]'])[6] | on |
assertValue | xpath=(//input[@name='department_permission[1]'])[6] | on |
click | link=Edit User Permissions | |
assertValue | xpath=(//input[@name='user_permission[9]'])[5] | on |
assertValue | xpath=(//input[@name='user_permission[10]'])[5] | on |
assertValue | xpath=(//input[@name='user_permission[11]'])[5] | on |
assertValue | xpath=(//input[@name='user_permission[1]'])[5] | on |
assertValue | xpath=(//input[@name='user_permission[8]'])[5] | on |
assertValue | xpath=(//input[@name='user_permission[2]'])[5] | off |