From 47a52d4d586626d8799bfb5c3d259d5998d506ef Mon Sep 17 00:00:00 2001 From: Bill Smith Date: Tue, 27 Jul 2021 20:35:18 -0700 Subject: [PATCH] SHIBUI-1740 First pass at automtaed tests for group-related activities. --- .../admin/ui/SeleniumSIDETest.groovy | 10 +- .../integration/resources/SHIBUI-1740-1.side | 275 ++++++++++ .../integration/resources/SHIBUI-1740-2.side | 303 +++++++++++ .../integration/resources/SHIBUI-1740-3.side | 370 +++++++++++++ .../integration/resources/SHIBUI-1740-4.side | 489 ++++++++++++++++++ 5 files changed, 1444 insertions(+), 3 deletions(-) create mode 100644 backend/src/integration/resources/SHIBUI-1740-1.side create mode 100644 backend/src/integration/resources/SHIBUI-1740-2.side create mode 100644 backend/src/integration/resources/SHIBUI-1740-3.side create mode 100644 backend/src/integration/resources/SHIBUI-1740-4.side diff --git a/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy b/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy index 75167259a..6ad82a4ab 100644 --- a/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy +++ b/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy @@ -124,9 +124,13 @@ class SeleniumSIDETest extends Specification { 'SHIBUI-1391: Regex Validation' | '/SHIBUI-1391.side' 'SHIBUI-1407: Metadata source comparison highlights' | '/SHIBUI-1407-1.side' 'SHIBUI-1407: Metadata provider comparison highlights' | '/SHIBUI-1407-2.side' - 'SHIBUI-1503: Non-admin can create metadata source' | '/SHIBUI-1503-1.side' - 'SHIBUI-1503: User can be deleted' | '/SHIBUI-1503-2.side' - 'SHIBUI-1503: User can be enabled' | '/SHIBUI-1503-3.side' + 'SHIBUI-1503: Non-admin can create metadata source' | '/SHIBUI-1503-1.side' + 'SHIBUI-1503: User can be deleted' | '/SHIBUI-1503-2.side' + 'SHIBUI-1503: User can be enabled' | '/SHIBUI-1503-3.side' + 'SHIBUI-1740: Group can be created, edited, deleted' | '/SHIBUI-1740-1.side' + 'SHIBUI-1740: Verify dev profile group membership' | '/SHIBUI-1740-2.side' + 'SHIBUI-1740: Verify admin-owned resource not visible to nonadmins' | '/SHIBUI-1740-3.side' + 'SHIBUI-1740: Verify nonadmin-owned resource visibility' | '/SHIBUI-1740-4.side' } } diff --git a/backend/src/integration/resources/SHIBUI-1740-1.side b/backend/src/integration/resources/SHIBUI-1740-1.side new file mode 100644 index 000000000..7f8da0582 --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1740-1.side @@ -0,0 +1,275 @@ +{ + "id": "cd78addb-41ed-48ba-86f2-ddee6382b044", + "version": "2.0", + "name": "SHIBUI-1740-1", + "url": "http://localhost:10101", + "tests": [{ + "id": "0afb5fbb-fb84-463f-8f45-7a9125828805", + "name": "SHIBUI-1740-1", + "commands": [{ + "id": "1afe01c2-41ee-4808-8230-981137e62776", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "3fa30238-3332-455d-a37e-a11ab4ace211", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "cd47a77a-288d-4301-b496-4ea7ee49804f", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "77ba47a9-f582-43de-b0f1-58a480119630", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "0bdcd2aa-3e9e-41be-96d2-abf567538990", + "comment": "", + "command": "click", + "target": "id=dropdown-basic", + "targets": [ + ["id=dropdown-basic", "id"], + ["xpath=//button[@id='dropdown-basic']", "xpath:attributes"], + ["xpath=//div[@id='basic-nav-dropdown']/button", "xpath:idRelative"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Advanced')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "13b8c74a-6466-4f17-823b-aa9e1e2c8559", + "comment": "", + "command": "click", + "target": "linkText=Groups", + "targets": [ + ["linkText=Groups", "linkText"], + ["css=.text-primary:nth-child(2)", "css:finder"], + ["xpath=//a[contains(text(),'Groups')]", "xpath:link"], + ["xpath=//div[@id='basic-nav-dropdown']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/groups')]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Groups')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "732a7848-5b5b-43cf-9f14-fcbc6a1a1c13", + "comment": "", + "command": "click", + "target": "css=.btn-success > .svg-inline--fa", + "targets": [ + ["css=.btn-success > .svg-inline--fa", "css:finder"] + ], + "value": "" + }, { + "id": "fa526e2b-5a5c-4252-be86-2e5b5b86ce76", + "comment": "", + "command": "click", + "target": "id=root_name", + "targets": [ + ["id=root_name", "id"], + ["css=#root_name", "css:finder"], + ["xpath=//input[@id='root_name']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div/form/div/div/div/div/div/div/div/div/input", "xpath:idRelative"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "652a2e67-6bd8-4338-a6ba-d75e4ee0da25", + "comment": "", + "command": "type", + "target": "id=root_name", + "targets": [ + ["id=root_name", "id"], + ["css=#root_name", "css:finder"], + ["xpath=//input[@id='root_name']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div/form/div/div/div/div/div/div/div/div/input", "xpath:idRelative"], + ["xpath=//input", "xpath:position"] + ], + "value": "Test Group" + }, { + "id": "d5056e97-48ae-42a4-af3d-3488d29184fc", + "comment": "", + "command": "type", + "target": "id=root_description", + "targets": [ + ["id=root_description", "id"], + ["css=#root_description", "css:finder"], + ["xpath=//textarea[@id='root_description']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div/form/div/div/div/div[2]/div/div/div/div/textarea", "xpath:idRelative"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "This is a test group." + }, { + "id": "fa3bb65e-b526-4813-ad6f-c528f527a5a5", + "comment": "", + "command": "click", + "target": "css=.fa-save", + "targets": [ + ["css=.fa-save", "css:finder"] + ], + "value": "" + }, { + "id": "331aeb76-c245-4a12-a3e9-dfca504b3ca6", + "comment": "", + "command": "assertText", + "target": "xpath=//td[contains(.,'Test Group')]", + "targets": [ + ["css=tr:nth-child(6) > td:nth-child(1)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[6]/td", "xpath:idRelative"], + ["xpath=//tr[6]/td", "xpath:position"], + ["xpath=//td[contains(.,'Test Group')]", "xpath:innerText"] + ], + "value": "Test Group" + }, { + "id": "b92611f0-bcdf-44e4-83a1-99ab71f045d0", + "comment": "", + "command": "assertText", + "target": "xpath=//td[contains(.,'This is a test group.')]", + "targets": [ + ["css=tr:nth-child(6) > td:nth-child(2)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[6]/td[2]", "xpath:idRelative"], + ["xpath=//tr[6]/td[2]", "xpath:position"], + ["xpath=//td[contains(.,'This is a test group.')]", "xpath:innerText"] + ], + "value": "This is a test group." + }, { + "id": "62b9e743-cc16-4931-9064-06c15b057318", + "comment": "", + "command": "click", + "target": "xpath=//td[contains(.,'Test Group')]/parent::*/td[3]/a", + "targets": [ + ["css=tr:nth-child(6) .text-primary path", "css:finder"] + ], + "value": "" + }, { + "id": "d4711afb-8e77-48fa-827d-db0098bd9601", + "comment": "", + "command": "type", + "target": "id=root_name", + "targets": [ + ["id=root_name", "id"], + ["css=#root_name", "css:finder"], + ["xpath=//input[@id='root_name']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div/form/div/div/div/div/div/div/div/div/input", "xpath:idRelative"], + ["xpath=//input", "xpath:position"] + ], + "value": "Edited Test Group" + }, { + "id": "93ff4a1e-5895-4533-ab5e-b1455266cd14", + "comment": "", + "command": "type", + "target": "id=root_description", + "targets": [ + ["id=root_description", "id"], + ["css=#root_description", "css:finder"], + ["xpath=//textarea[@id='root_description']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div/form/div/div/div/div[2]/div/div/div/div/textarea", "xpath:idRelative"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "This is a test group that has been edited." + }, { + "id": "c95d573a-4c98-40ee-bbad-117cf3b33614", + "comment": "", + "command": "click", + "target": "css=.btn-info", + "targets": [ + ["css=.btn-info", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/button", "xpath:idRelative"], + ["xpath=//div[2]/div/div/button", "xpath:position"], + ["xpath=//button[contains(.,' Save')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "40ccad28-e2e1-48ac-8aa5-cf0d90a7e6ac", + "comment": "", + "command": "assertText", + "target": "xpath=//td[contains(.,'Edited Test Group')]", + "targets": [ + ["css=tr:nth-child(6) > td:nth-child(1)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[6]/td", "xpath:idRelative"], + ["xpath=//tr[6]/td", "xpath:position"], + ["xpath=//td[contains(.,'Edited Test Group')]", "xpath:innerText"] + ], + "value": "Edited Test Group" + }, { + "id": "8b19c24b-02e7-49c1-9097-ff56de8bb1a1", + "comment": "", + "command": "assertText", + "target": "xpath=//td[contains(.,'This is a test group that has been edited.')]", + "targets": [ + ["css=tr:nth-child(6) > td:nth-child(2)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[6]/td[2]", "xpath:idRelative"], + ["xpath=//tr[6]/td[2]", "xpath:position"], + ["xpath=//td[contains(.,'This is a test group that has been edited.')]", "xpath:innerText"] + ], + "value": "This is a test group that has been edited." + }, { + "id": "3f463655-29df-4c52-bc53-b96b60b845fd", + "comment": "", + "command": "click", + "target": "xpath=//td[contains(.,'Test Group')]/parent::*/td[3]/button", + "targets": [ + ["css=tr:nth-child(6) .text-danger > .svg-inline--fa", "css:finder"] + ], + "value": "" + }, { + "id": "dd03e294-e8f3-499c-aa4d-d94aede33791", + "comment": "", + "command": "click", + "target": "css=.btn-danger", + "targets": [ + ["css=.btn-danger", "css:finder"], + ["xpath=(//button[@type='button'])[10]", "xpath:attributes"], + ["xpath=//div[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "187f95d3-8f82-42a0-8933-8254cdaa8311", + "comment": "", + "command": "assertText", + "target": "xpath=//li[contains(.,'Deleted group successfully.')]", + "targets": [], + "value": "Deleted group successfully." + }] + }], + "suites": [{ + "id": "bb170239-568b-4e90-991e-1a5882465aaa", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["0afb5fbb-fb84-463f-8f45-7a9125828805"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file diff --git a/backend/src/integration/resources/SHIBUI-1740-2.side b/backend/src/integration/resources/SHIBUI-1740-2.side new file mode 100644 index 000000000..123b89337 --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1740-2.side @@ -0,0 +1,303 @@ +{ + "id": "36336113-01a2-4492-a161-d63652135d4d", + "version": "2.0", + "name": "SHIBUI-1740-2", + "url": "http://localhost:10101", + "tests": [{ + "id": "30b3263e-8c90-4ee6-86a7-36224442a8f8", + "name": "SHIBUI-1740-2", + "commands": [{ + "id": "ce95e5c8-e3ec-493e-b85a-72e9e47ef643", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "16edc433-c247-4845-bb13-eb30c27a8343", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "e4467a31-605f-4b5e-8615-6c0162c16be2", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "8f429c75-8ae3-41f4-8c30-23dce305ae90", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "e522436b-e75f-451c-953c-28328dbc3511", + "comment": "", + "command": "click", + "target": "id=dropdown-basic", + "targets": [ + ["id=dropdown-basic", "id"], + ["xpath=//button[@id='dropdown-basic']", "xpath:attributes"], + ["xpath=//div[@id='basic-nav-dropdown']/button", "xpath:idRelative"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Advanced')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "a2c27b66-4110-49bd-986c-d21611a39834", + "comment": "", + "command": "click", + "target": "linkText=Groups", + "targets": [ + ["linkText=Groups", "linkText"], + ["css=.text-primary:nth-child(2)", "css:finder"], + ["xpath=//a[contains(text(),'Groups')]", "xpath:link"], + ["xpath=//div[@id='basic-nav-dropdown']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/groups')]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Groups')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "dd9bbd22-0869-4892-af44-a684d880c141", + "comment": "", + "command": "assertText", + "target": "css=tr:nth-child(1) > td:nth-child(1)", + "targets": [ + ["css=tr:nth-child(1) > td:nth-child(1)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr/td", "xpath:idRelative"], + ["xpath=//td", "xpath:position"], + ["xpath=//td[contains(.,'ADMIN-GROUP')]", "xpath:innerText"] + ], + "value": "ADMIN-GROUP" + }, { + "id": "bfae23fa-f6ab-4cb1-a056-e16e309194d2", + "comment": "", + "command": "assertText", + "target": "css=tr:nth-child(4) > td:nth-child(1)", + "targets": [ + ["css=tr:nth-child(4) > td:nth-child(1)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[4]/td", "xpath:idRelative"], + ["xpath=//tr[4]/td", "xpath:position"], + ["xpath=//td[contains(.,'nonadmin')]", "xpath:innerText"] + ], + "value": "nonadmin" + }, { + "id": "0a725413-01bd-49e1-b71f-fb7760ae1975", + "comment": "", + "command": "assertText", + "target": "css=tr:nth-child(5) > td:nth-child(1)", + "targets": [ + ["css=tr:nth-child(5) > td:nth-child(1)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[5]/td", "xpath:idRelative"], + ["xpath=//tr[5]/td", "xpath:position"], + ["xpath=//td[contains(.,'none')]", "xpath:innerText"] + ], + "value": "none" + }, { + "id": "346cec03-bbdd-435b-bdf4-ffaffd159b12", + "comment": "", + "command": "assertText", + "target": "css=tr:nth-child(4) > td:nth-child(2)", + "targets": [ + ["css=tr:nth-child(4) > td:nth-child(2)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[4]/td[2]", "xpath:idRelative"], + ["xpath=//tr[4]/td[2]", "xpath:position"], + ["xpath=//td[contains(.,'default user-group')]", "xpath:innerText"] + ], + "value": "default user-group" + }, { + "id": "9fb41858-7d3d-4454-a07b-8a88ce2d726e", + "comment": "", + "command": "assertText", + "target": "css=tr:nth-child(5) > td:nth-child(2)", + "targets": [ + ["css=tr:nth-child(5) > td:nth-child(2)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div[2]/table/tbody/tr[5]/td[2]", "xpath:idRelative"], + ["xpath=//tr[5]/td[2]", "xpath:position"] + ], + "value": "default user-group" + }, { + "id": "17fa4a73-fd9d-4d14-a145-5232cea87ff7", + "comment": "", + "command": "click", + "target": "linkText=Dashboard", + "targets": [ + ["linkText=Dashboard", "linkText"], + ["css=.nav-link:nth-child(3)", "css:finder"], + ["xpath=//a[contains(text(),'Dashboard')]", "xpath:link"], + ["xpath=//div[@id='basic-navbar-nav']/div/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/dashboard')]", "xpath:href"], + ["xpath=//nav/div/div/a", "xpath:position"], + ["xpath=//a[contains(.,'Dashboard')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "423c1b57-0134-4e8d-9866-3b958ff004cd", + "comment": "", + "command": "click", + "target": "linkText=Admin", + "targets": [ + ["linkText=Admin", "linkText"], + ["css=.nav-item:nth-child(3) > .nav-link", "css:finder"], + ["xpath=//a[contains(text(),'Admin')]", "xpath:link"], + ["xpath=//div[@id='root']/div/main/div/div/div[3]/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/dashboard/admin/management')]", "xpath:href"], + ["xpath=//div[3]/a", "xpath:position"], + ["xpath=//a[contains(.,'Admin')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "c8600f21-db2e-442a-89bf-7c7d003d5e41", + "comment": "", + "command": "assertValue", + "target": "id=role-admin", + "targets": [], + "value": "ROLE_ADMIN" + }, { + "id": "023518dc-f3b8-4a44-a848-45c31e26a9ee", + "comment": "", + "command": "assertNotEditable", + "target": "id=role-admin", + "targets": [], + "value": "" + }, { + "id": "d0ddc980-8db7-4a20-a1fb-5c757a6ae1af", + "comment": "", + "command": "assertValue", + "target": "id=group-admin", + "targets": [], + "value": "admingroup" + }, { + "id": "a9bf4575-4a28-46fd-a847-8c35ce8a94b1", + "comment": "", + "command": "assertNotEditable", + "target": "id=group-admin", + "targets": [], + "value": "" + }, { + "id": "70bb9b86-12d0-493e-815a-9fae0ea6e2d3", + "comment": "", + "command": "assertValue", + "target": "id=role-none", + "targets": [ + ["id=role-none", "id"], + ["name=role-none", "name"], + ["css=#role-none", "css:finder"], + ["xpath=//select[@id='role-none']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[3]/td[3]/select", "xpath:idRelative"], + ["xpath=//tr[3]/td[3]/select", "xpath:position"] + ], + "value": "ROLE_NONE" + }, { + "id": "3cdd6916-5fad-4fb7-a422-b10cc38f1fb2", + "comment": "", + "command": "assertEditable", + "target": "id=role-none", + "targets": [], + "value": "" + }, { + "id": "d90dd945-c2f4-428c-8bb9-8557a1a93ef9", + "comment": "", + "command": "assertValue", + "target": "id=group-none", + "targets": [ + ["id=group-none", "id"], + ["name=group-none", "name"], + ["css=#group-none", "css:finder"], + ["xpath=//select[@id='group-none']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[3]/td[4]/span/select", "xpath:idRelative"], + ["xpath=//tr[3]/td[4]/span/select", "xpath:position"] + ], + "value": "none" + }, { + "id": "d6d6cae9-acb7-46de-9ec7-0a76a8f6b61e", + "comment": "", + "command": "assertEditable", + "target": "id=group-none", + "targets": [], + "value": "" + }, { + "id": "7d9099ef-bb52-4abd-b6b4-5ed70fdc56db", + "comment": "", + "command": "assertValue", + "target": "id=role-anonymousUser", + "targets": [ + ["id=role-anonymousUser", "id"], + ["name=role-anonymousUser", "name"], + ["css=#role-anonymousUser", "css:finder"], + ["xpath=//select[@id='role-anonymousUser']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[4]/td[3]/select", "xpath:idRelative"], + ["xpath=//tr[4]/td[3]/select", "xpath:position"] + ], + "value": "ROLE_ADMIN" + }, { + "id": "ff707983-2c99-4ae3-843c-b7ebe0fc2b8f", + "comment": "", + "command": "assertEditable", + "target": "id=role-anonymousUser", + "targets": [], + "value": "" + }, { + "id": "5da35eb4-e324-4e85-81fb-42235a9a59bb", + "comment": "", + "command": "assertValue", + "target": "id=group-anonymousUser", + "targets": [ + ["id=group-anonymousUser", "id"], + ["name=group-anonymousUser", "name"], + ["css=#group-anonymousUser", "css:finder"], + ["xpath=//select[@id='group-anonymousUser']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[4]/td[4]/span/select", "xpath:idRelative"], + ["xpath=//tr[4]/td[4]/span/select", "xpath:position"] + ], + "value": "admingroup" + }, { + "id": "5c05269b-1e94-4cd2-aedf-5ab6fa251e8e", + "comment": "", + "command": "assertNotEditable", + "target": "id=group-anonymousUser", + "targets": [ + ["id=group-anonymousUser", "id"], + ["name=group-anonymousUser", "name"], + ["css=#group-anonymousUser", "css:finder"], + ["xpath=//select[@id='group-anonymousUser']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[4]/td[4]/span/select", "xpath:idRelative"], + ["xpath=//tr[4]/td[4]/span/select", "xpath:position"] + ], + "value": "" + }] + }], + "suites": [{ + "id": "16a0d393-c257-46c4-9a0f-dc2a84dfc23b", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["30b3263e-8c90-4ee6-86a7-36224442a8f8"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file diff --git a/backend/src/integration/resources/SHIBUI-1740-3.side b/backend/src/integration/resources/SHIBUI-1740-3.side new file mode 100644 index 000000000..47bd159fe --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1740-3.side @@ -0,0 +1,370 @@ +{ + "id": "237cdd00-075d-4739-9f7b-211ca57b1152", + "version": "2.0", + "name": "SHIBUI-1740-3", + "url": "http://localhost:10101", + "tests": [{ + "id": "69372d57-4a9f-44a9-ad0c-a82d9a4d7ef0", + "name": "SHIBUI-1740-3", + "commands": [{ + "id": "7ecbb323-ea5a-4634-8dd0-69705611b3ae", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "79ac2b4f-5499-4262-87ab-ff06ce9adc5d", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "ec84dca9-54b6-4e21-8bbc-fa32b3f5b29c", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "f26cde0d-1ccf-49b4-9297-21791fcec7cd", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "2b5fd1e0-6987-4663-9b28-d8551ae5a161", + "comment": "", + "command": "open", + "target": "/api/heheheheheheheWipeout", + "targets": [], + "value": "" + }, { + "id": "7580df7e-845d-4cf9-8ea8-116951d565fd", + "comment": "", + "command": "assertText", + "target": "css=body", + "targets": [], + "value": "yes, you did it" + }, { + "id": "cafc23ea-1ffa-4708-9d14-9771031699a6", + "comment": "", + "command": "open", + "target": "/dashboard", + "targets": [], + "value": "" + }, { + "id": "ed48c0d6-990b-45d2-92cb-f286817d673e", + "comment": "", + "command": "click", + "target": "xpath=(//button[@id='dropdown-basic'])[2]", + "targets": [ + ["xpath=(//button[@id='dropdown-basic'])[2]", "xpath:attributes"], + ["xpath=(//div[@id='basic-nav-dropdown']/button)[2]", "xpath:idRelative"], + ["xpath=//div[2]/button", "xpath:position"], + ["xpath=//button[contains(.,'Add New')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "9e312878-820e-4eef-a70d-2225d68f9760", + "comment": "", + "command": "click", + "target": "linkText=Add a new metadata source", + "targets": [ + ["linkText=Add a new metadata source", "linkText"], + ["css=.text-primary:nth-child(1)", "css:finder"], + ["xpath=//a[contains(text(),'Add a new metadata source')]", "xpath:link"], + ["xpath=//div[@id='basic-nav-dropdown']/div/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/metadata/source/new')]", "xpath:href"], + ["xpath=//div/a", "xpath:position"], + ["xpath=//a[contains(.,'Add a new metadata source')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "b34f2194-a1bd-48a5-9f75-b8936ba6082a", + "comment": "", + "command": "type", + "target": "id=root_serviceProviderName", + "targets": [ + ["id=root_serviceProviderName", "id"], + ["css=#root_serviceProviderName", "css:finder"], + ["xpath=//input[@id='root_serviceProviderName']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div[3]/div/div/form/div/div/div/div/div/div/div/div/input", "xpath:idRelative"], + ["xpath=//input", "xpath:position"] + ], + "value": "Selenium Test2" + }, { + "id": "6d4f04c3-c45c-4eed-b744-ba847c9af1f9", + "comment": "", + "command": "type", + "target": "id=root_entityId", + "targets": [ + ["id=root_entityId", "id"], + ["css=#root_entityId", "css:finder"], + ["xpath=//input[@id='root_entityId']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div[3]/div/div/form/div/div/div/div/div/div[2]/div/div/input", "xpath:idRelative"], + ["xpath=//div[2]/div/div/input", "xpath:position"] + ], + "value": "test2" + }, { + "id": "edb46777-bbd0-4e59-8859-093af94477f1", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/nav/ul/li[2]/button", "xpath:idRelative"], + ["xpath=//li[2]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "f4ac7ab5-1421-487d-9b60-ed0b3ce1f883", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "17bfea09-d42d-4c91-bebf-f0188bdde96d", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "a5ec4387-e9e3-491a-8e3e-4973f33fd13d", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "c524d191-f1c5-48ae-9c7d-ef6f3283de7d", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "f98eda37-fcb0-4d8d-836e-4dce6961638c", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "19463167-7a0d-4ae7-93ea-91be89c727fa", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "5c0afbc7-e3c4-450f-877f-2831dd1d8feb", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "bf852cac-0973-486d-9543-9455dbb6a78c", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "b0ed6ed1-7125-4f3c-ad78-9d1c2839466c", + "comment": "", + "command": "click", + "target": "css=.save", + "targets": [ + ["css=.save", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "fbf5739f-bc42-44c6-9b04-4b3e8d195718", + "comment": "", + "command": "assertText", + "target": "linkText=Selenium Test", + "targets": [ + ["linkText=Selenium Test", "linkText"], + ["css=td > a", "css:finder"], + ["xpath=//a[contains(text(),'Selenium Test')]", "xpath:link"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div/table/tbody/tr/td/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/metadata/source/d1044483-4b5d-4753-bfed-44dc039799b0/configuration/options')]", "xpath:href"], + ["xpath=//td/a", "xpath:position"], + ["xpath=//a[contains(.,'Selenium Test')]", "xpath:innerText"] + ], + "value": "Selenium Test" + }, { + "id": "bf6651d7-0001-4d98-8353-9073ffd1221a", + "comment": "", + "command": "assertValue", + "target": "xpath=//td[contains(.,'Selenium Test')]/parent::*/td/select", + "targets": [ + ["id=group-d1044483-4b5d-4753-bfed-44dc039799b0", "id"], + ["name=group-d1044483-4b5d-4753-bfed-44dc039799b0", "name"], + ["css=#group-d1044483-4b5d-4753-bfed-44dc039799b0", "css:finder"], + ["xpath=//select[@id='group-d1044483-4b5d-4753-bfed-44dc039799b0']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div/table/tbody/tr/td[6]/select", "xpath:idRelative"], + ["xpath=//select", "xpath:position"] + ], + "value": "admingroup" + }, { + "id": "74b9b96f-d3de-4b1f-b429-5ddc2415b0cf", + "comment": "", + "command": "click", + "target": "linkText=Logout", + "targets": [ + ["linkText=Logout", "linkText"], + ["css=.nav-link:nth-child(4)", "css:finder"], + ["xpath=//a[contains(text(),'Logout')]", "xpath:link"], + ["xpath=//div[@id='basic-navbar-nav']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/logout')]", "xpath:href"], + ["xpath=//nav/div/div/a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "61f27b68-815e-4c3a-a493-d1beaf76b23f", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "nonadmin" + }, { + "id": "ed9e128e-a023-4224-987f-6835dc2ef898", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "nonadminpass" + }, { + "id": "f9ceaf3d-6968-4bcf-9ba3-ed2d1945b80b", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "8c50d21e-d2cf-4094-99ab-6301af4dc9e7", + "comment": "", + "command": "assertElementNotPresent", + "target": "linkText=Selenium Test", + "targets": [ + ["css=.table-responsive", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div", "xpath:idRelative"], + ["xpath=//div[2]/div/div/div", "xpath:position"] + ], + "value": "" + }, { + "id": "c1459507-5b54-4119-ac3f-753209282b9e", + "comment": "", + "command": "click", + "target": "linkText=Logout", + "targets": [ + ["linkText=Logout", "linkText"], + ["css=.nav-link:nth-child(3)", "css:finder"], + ["xpath=//a[contains(text(),'Logout')]", "xpath:link"], + ["xpath=//div[@id='basic-navbar-nav']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/logout')]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }] + }], + "suites": [{ + "id": "9c39a96d-d969-4bd7-bba4-074f847f14d0", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["69372d57-4a9f-44a9-ad0c-a82d9a4d7ef0"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file diff --git a/backend/src/integration/resources/SHIBUI-1740-4.side b/backend/src/integration/resources/SHIBUI-1740-4.side new file mode 100644 index 000000000..4e83c822f --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1740-4.side @@ -0,0 +1,489 @@ +{ + "id": "c0240daf-8c07-479d-b3bf-1462feca6404", + "version": "2.0", + "name": "SHIBUI-1740-4", + "url": "http://localhost:10101", + "tests": [{ + "id": "6932d7f8-1e1b-4c60-9a8b-09769eb17b62", + "name": "SHIBUI-1740-4", + "commands": [{ + "id": "515af1b7-ed2c-4a89-8ac3-34446a0bc871", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "72231d87-3efa-4e65-af79-11b9e7dea105", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "nonadmin" + }, { + "id": "84633f12-7439-42be-a9a0-081e4c6d563c", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "nonadminpass" + }, { + "id": "8168f80c-3ca7-45ec-9a9a-9cbfe320480e", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "6fb9efa3-c73e-4d27-82e6-28b25bf4fb60", + "comment": "", + "command": "click", + "target": "id=dropdown-basic", + "targets": [ + ["id=dropdown-basic", "id"], + ["css=#dropdown-basic", "css:finder"], + ["xpath=//button[@id='dropdown-basic']", "xpath:attributes"], + ["xpath=//div[@id='basic-nav-dropdown']/button", "xpath:idRelative"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Add New')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "ee100ee8-d619-4d23-8cbc-ef9fa0e4b974", + "comment": "", + "command": "click", + "target": "linkText=Add a new metadata source", + "targets": [ + ["linkText=Add a new metadata source", "linkText"], + ["css=.text-primary", "css:finder"], + ["xpath=//a[contains(text(),'Add a new metadata source')]", "xpath:link"], + ["xpath=//div[@id='basic-nav-dropdown']/div/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/metadata/source/new')]", "xpath:href"], + ["xpath=//div/a", "xpath:position"], + ["xpath=//a[contains(.,'Add a new metadata source')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "df2df867-aa22-4c76-8006-c2decea70eb5", + "comment": "", + "command": "type", + "target": "id=root_serviceProviderName", + "targets": [ + ["id=root_serviceProviderName", "id"], + ["css=#root_serviceProviderName", "css:finder"], + ["xpath=//input[@id='root_serviceProviderName']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div[3]/div/div/form/div/div/div/div/div/div/div/div/input", "xpath:idRelative"], + ["xpath=//input", "xpath:position"] + ], + "value": "Selenium Test" + }, { + "id": "2fac3de0-9e9c-4bb0-b2bd-69283521a91a", + "comment": "", + "command": "type", + "target": "id=root_entityId", + "targets": [ + ["id=root_entityId", "id"], + ["css=#root_entityId", "css:finder"], + ["xpath=//input[@id='root_entityId']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div[3]/div/div/form/div/div/div/div/div/div[2]/div/div/input", "xpath:idRelative"], + ["xpath=//div[2]/div/div/input", "xpath:position"] + ], + "value": "Test" + }, { + "id": "c142b6f2-dbb1-492a-9273-018f6fba5b59", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "4bbbf2de-2232-4145-821a-db2f4a982c0c", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "a05df50e-1c75-4766-9730-b48bea0e1106", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "f2805304-0121-41ef-9930-8fe8817931e3", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "ed95baf0-3802-4811-8ec0-3ac9ea1a16cf", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "5da3884b-dafe-4dba-99de-13386e714fc6", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "e1a8ef33-1843-4bf7-ac1a-fee969e65587", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "359fe812-44fb-45c8-a7f5-95f9793a669e", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "1bb86278-c815-4367-a431-8e4c7067c10e", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button", "xpath:idRelative"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "8cabfe20-0f79-456c-a0ab-5dd7126da79b", + "comment": "", + "command": "click", + "target": "css=.save", + "targets": [ + ["css=.direction:nth-child(2)", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div/nav/ul/li[3]/button/span[2]", "xpath:idRelative"], + ["xpath=//li[3]/button/span[2]", "xpath:position"] + ], + "value": "" + }, { + "id": "fa8f0af2-5777-4e1f-bf2f-52911c900a2b", + "comment": "", + "command": "assertText", + "target": "linkText=Selenium Test", + "targets": [ + ["linkText=Selenium Test", "linkText"], + ["css=td > a", "css:finder"], + ["xpath=//a[contains(text(),'Selenium Test')]", "xpath:link"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div/table/tbody/tr/td/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/metadata/source/3d88c306-8e8f-45e8-a7b9-a47d4a45468e/configuration/options')]", "xpath:href"], + ["xpath=//td/a", "xpath:position"], + ["xpath=//a[contains(.,'Selenium Test')]", "xpath:innerText"] + ], + "value": "Selenium Test" + }, { + "id": "3e1f32d0-3d4d-4dac-95fd-765337b75e44", + "comment": "", + "command": "click", + "target": "linkText=Logout", + "targets": [ + ["linkText=Logout", "linkText"], + ["css=.nav-link:nth-child(3)", "css:finder"], + ["xpath=//a[contains(text(),'Logout')]", "xpath:link"], + ["xpath=//div[@id='basic-navbar-nav']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/logout')]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "8b813120-1d11-490b-8311-f7bfb7d81fbf", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "9540861b-6d58-4590-b3f5-588bf4c345c7", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "98b2b40f-f30c-42ad-8a20-55a570026034", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "3a33f990-3c63-4446-b4e3-2694ea13a5da", + "comment": "", + "command": "assertText", + "target": "linkText=Selenium Test", + "targets": [ + ["linkText=Selenium Test", "linkText"], + ["css=td > a", "css:finder"], + ["xpath=//a[contains(text(),'Selenium Test')]", "xpath:link"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div/table/tbody/tr/td/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/metadata/source/3d88c306-8e8f-45e8-a7b9-a47d4a45468e/configuration/options')]", "xpath:href"], + ["xpath=//td/a", "xpath:position"], + ["xpath=//a[contains(.,'Selenium Test')]", "xpath:innerText"] + ], + "value": "Selenium Test" + }, { + "id": "1a1a7dd2-9442-48be-b6a2-f4868dc28c82", + "comment": "", + "command": "assertValue", + "target": "xpath=//td[contains(.,'Selenium Test')]/parent::*/td/select", + "targets": [ + ["id=group-3d88c306-8e8f-45e8-a7b9-a47d4a45468e", "id"], + ["name=group-3d88c306-8e8f-45e8-a7b9-a47d4a45468e", "name"], + ["css=#group-3d88c306-8e8f-45e8-a7b9-a47d4a45468e", "css:finder"], + ["xpath=//select[@id='group-3d88c306-8e8f-45e8-a7b9-a47d4a45468e']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div/table/tbody/tr/td[6]/select", "xpath:idRelative"], + ["xpath=//select", "xpath:position"] + ], + "value": "nonadmin" + }, { + "id": "a0b10e29-e4f7-4249-bf75-ceb073a25a0f", + "comment": "", + "command": "click", + "target": "linkText=Admin", + "targets": [ + ["linkText=Admin", "linkText"], + ["css=.nav-item:nth-child(3) > .nav-link", "css:finder"], + ["xpath=//a[contains(text(),'Admin')]", "xpath:link"], + ["xpath=//div[@id='root']/div/main/div/div/div[3]/a", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/dashboard/admin/management')]", "xpath:href"], + ["xpath=//div[3]/a", "xpath:position"], + ["xpath=//a[contains(.,'Admin')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "9a8d86eb-636c-4f84-9f76-07dd9ed5f3a9", + "comment": "", + "command": "click", + "target": "id=role-anonymousUser", + "targets": [ + ["id=role-anonymousUser", "id"], + ["name=role-anonymousUser", "name"], + ["css=#role-anonymousUser", "css:finder"], + ["xpath=//select[@id='role-anonymousUser']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[4]/td[3]/select", "xpath:idRelative"], + ["xpath=//tr[4]/td[3]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "712a05ee-e300-472a-a3d0-529dcecf8e3b", + "comment": "", + "command": "select", + "target": "id=role-anonymousUser", + "targets": [], + "value": "label=ROLE_USER" + }, { + "id": "a001ad79-c8ef-4308-a0d7-73843385621d", + "comment": "", + "command": "click", + "target": "id=group-anonymousUser", + "targets": [ + ["id=group-anonymousUser", "id"], + ["name=group-anonymousUser", "name"], + ["css=#group-anonymousUser", "css:finder"], + ["xpath=//select[@id='group-anonymousUser']", "xpath:attributes"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/table/tbody/tr[4]/td[4]/span/select", "xpath:idRelative"], + ["xpath=//tr[4]/td[4]/span/select", "xpath:position"] + ], + "value": "" + }, { + "id": "4f1dc865-c72b-4c75-99c7-2ff1257812db", + "comment": "", + "command": "select", + "target": "id=group-anonymousUser", + "targets": [], + "value": "label=A1" + }, { + "id": "8913d9c6-7cca-42cc-abd5-bd1b014e1853", + "comment": "", + "command": "click", + "target": "linkText=Logout", + "targets": [ + ["linkText=Logout", "linkText"], + ["css=.nav-link:nth-child(4)", "css:finder"], + ["xpath=//a[contains(text(),'Logout')]", "xpath:link"], + ["xpath=//div[@id='basic-navbar-nav']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/logout')]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "9519fd33-870b-4afb-ac1d-ac222bcad784", + "comment": "", + "command": "click", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "8b6995bd-94bf-4ba2-991e-98e046b4d0a1", + "comment": "", + "command": "type", + "target": "id=username", + "targets": [ + ["id=username", "id"], + ["name=username", "name"], + ["css=#username", "css:finder"], + ["xpath=//input[@id='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "anonymousUser" + }, { + "id": "f324931b-d410-4481-a45b-aa6fd9577635", + "comment": "", + "command": "type", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "anonymous" + }, { + "id": "ab1de974-3c1f-4687-b2d3-5b81c8a269a5", + "comment": "", + "command": "sendKeys", + "target": "id=password", + "targets": [ + ["id=password", "id"], + ["name=password", "name"], + ["css=#password", "css:finder"], + ["xpath=//input[@id='password']", "xpath:attributes"], + ["xpath=//p[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "6bb7f95e-0ee8-4e09-b9bd-46a9f3763455", + "comment": "", + "command": "assertElementNotPresent", + "target": "linkText=Selenium Test", + "targets": [ + ["css=.table-responsive", "css:finder"], + ["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div", "xpath:idRelative"], + ["xpath=//div[2]/div/div/div", "xpath:position"] + ], + "value": "" + }, { + "id": "1f4dfb86-8969-4f2a-a8f1-0873a501f670", + "comment": "", + "command": "click", + "target": "linkText=Logout", + "targets": [ + ["linkText=Logout", "linkText"], + ["css=.nav-link:nth-child(3)", "css:finder"], + ["xpath=//a[contains(text(),'Logout')]", "xpath:link"], + ["xpath=//div[@id='basic-navbar-nav']/div/a[2]", "xpath:idRelative"], + ["xpath=//a[contains(@href, '/logout')]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }] + }], + "suites": [{ + "id": "13b2104f-1386-474b-8478-566db394923b", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["6932d7f8-1e1b-4c60-9a8b-09769eb17b62"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file