From 076cfbc481937fb2ce1697beec7fe597bdcd9da8 Mon Sep 17 00:00:00 2001 From: Vlad <stegaru.vlad@gmail.com> Date: Thu, 29 Mar 2018 10:22:18 +0300 Subject: [PATCH] test(automation): new manuscript attach file- completed --- .../Libs/TempTestCase1522147937936.groovy | 25 ---------- .../Libs/TempTestCase1522148094482.groovy | 25 ---------- .../Libs/TempTestCase1522148175855.groovy | 25 ---------- .../Libs/TempTestCase1522148230395.groovy | 25 ---------- .../Libs/TempTestCase1522148288759.groovy | 25 ---------- .../Libs/TempTestCase1522148350644.groovy | 25 ---------- .../Libs/TempTestCase1522148516173.groovy | 25 ---------- ...roovy => TempTestCase1522307126936.groovy} | 2 +- ...roovy => TempTestCase1522307168867.groovy} | 2 +- ...roovy => TempTestCase1522307353858.groovy} | 2 +- automation/Object Repository/AssignHE/HE.rs | 23 ++++++++++ automation/Object Repository/AssignHE/OK.rs | 19 ++++++++ .../Object Repository/AssignHE/aheAssign.rs | 19 ++++++++ automation/Object Repository/AssignHE/aheX.rs | 19 ++++++++ .../Object Repository/AssignHE/assign.rs | 19 ++++++++ automation/Object Repository/AssignHE/okX.rs | 19 ++++++++ .../AssignHE/resendInvitation/cancel.rs | 19 ++++++++ .../AssignHE/resendInvitation/resend.rs | 19 ++++++++ .../resendInvitation/resendInvitation.rs | 19 ++++++++ .../AssignHE/resendInvitation/x.rs | 19 ++++++++ .../AssignHE/revokeHEAssignation/cancel.rs | 19 ++++++++ .../AssignHE/revokeHEAssignation/revoke.rs | 19 ++++++++ .../AssignHE/revokeHEAssignation/revokeX.rs | 19 ++++++++ .../AssignHE/revokeHEAssignation/x.rs | 19 ++++++++ .../Object Repository/AssignHE/search.rs | 19 ++++++++ .../Object Repository/HandlingEditor/.meta | 7 +++ .../HandlingEditor/agree/agree.rs | 23 ++++++++++ .../HandlingEditor/agree/cancel.rs | 19 ++++++++ .../HandlingEditor/agree/ok.rs | 19 ++++++++ .../HandlingEditor/decline/cancel.rs | 19 ++++++++ .../HandlingEditor/decline/decline.rs | 19 ++++++++ .../HandlingEditor/decline/declineHE.rs | 19 ++++++++ .../HandlingEditor/decline/optionalText.rs | 19 ++++++++ .../manuscriptFilesUpload/attachManuscript.rs | 6 +-- automation/Object Repository/SignIn/admin.rs | 19 ++++++++ .../Script1520433593112.groovy | 13 +++++- .../Assign He/Script1522237912559.groovy | 46 +++++++++++++++++++ .../Sign In flow/Script1520414607328.groovy | 9 +++- .../Add a new manuscript.tc | 11 ++++- automation/Test Cases/Assign HE/Assign He.tc | 15 ++++++ automation/Test Cases/Sign In/Sign In flow.tc | 7 +++ .../Test Suites/LoginFilterManuscripts.ts | 6 +++ automation/Test Suites/LoginNewManuscript.ts | 12 +++++ .../Test Suites/LoginNewManuscriptResume.ts | 12 +++++ automation/Test Suites/LoginNewUser.ts | 6 +++ automation/Test Suites/LoginNewUserEdit.ts | 6 +++ 46 files changed, 596 insertions(+), 186 deletions(-) delete mode 100644 automation/Libs/TempTestCase1522147937936.groovy delete mode 100644 automation/Libs/TempTestCase1522148094482.groovy delete mode 100644 automation/Libs/TempTestCase1522148175855.groovy delete mode 100644 automation/Libs/TempTestCase1522148230395.groovy delete mode 100644 automation/Libs/TempTestCase1522148288759.groovy delete mode 100644 automation/Libs/TempTestCase1522148350644.groovy delete mode 100644 automation/Libs/TempTestCase1522148516173.groovy rename automation/Libs/{TempTestCase1522146862355.groovy => TempTestCase1522307126936.groovy} (95%) rename automation/Libs/{TempTestCase1522147002208.groovy => TempTestCase1522307168867.groovy} (95%) rename automation/Libs/{TempTestCase1522147234346.groovy => TempTestCase1522307353858.groovy} (95%) create mode 100644 automation/Object Repository/AssignHE/HE.rs create mode 100644 automation/Object Repository/AssignHE/OK.rs create mode 100644 automation/Object Repository/AssignHE/aheAssign.rs create mode 100644 automation/Object Repository/AssignHE/aheX.rs create mode 100644 automation/Object Repository/AssignHE/assign.rs create mode 100644 automation/Object Repository/AssignHE/okX.rs create mode 100644 automation/Object Repository/AssignHE/resendInvitation/cancel.rs create mode 100644 automation/Object Repository/AssignHE/resendInvitation/resend.rs create mode 100644 automation/Object Repository/AssignHE/resendInvitation/resendInvitation.rs create mode 100644 automation/Object Repository/AssignHE/resendInvitation/x.rs create mode 100644 automation/Object Repository/AssignHE/revokeHEAssignation/cancel.rs create mode 100644 automation/Object Repository/AssignHE/revokeHEAssignation/revoke.rs create mode 100644 automation/Object Repository/AssignHE/revokeHEAssignation/revokeX.rs create mode 100644 automation/Object Repository/AssignHE/revokeHEAssignation/x.rs create mode 100644 automation/Object Repository/AssignHE/search.rs create mode 100644 automation/Object Repository/HandlingEditor/.meta create mode 100644 automation/Object Repository/HandlingEditor/agree/agree.rs create mode 100644 automation/Object Repository/HandlingEditor/agree/cancel.rs create mode 100644 automation/Object Repository/HandlingEditor/agree/ok.rs create mode 100644 automation/Object Repository/HandlingEditor/decline/cancel.rs create mode 100644 automation/Object Repository/HandlingEditor/decline/decline.rs create mode 100644 automation/Object Repository/HandlingEditor/decline/declineHE.rs create mode 100644 automation/Object Repository/HandlingEditor/decline/optionalText.rs create mode 100644 automation/Object Repository/SignIn/admin.rs create mode 100644 automation/Scripts/Assign HE/Assign He/Script1522237912559.groovy create mode 100644 automation/Test Cases/Assign HE/Assign He.tc diff --git a/automation/Libs/TempTestCase1522147937936.groovy b/automation/Libs/TempTestCase1522147937936.groovy deleted file mode 100644 index 3276bb25f..000000000 --- a/automation/Libs/TempTestCase1522147937936.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_135217/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522148094482.groovy b/automation/Libs/TempTestCase1522148094482.groovy deleted file mode 100644 index e1e9ae859..000000000 --- a/automation/Libs/TempTestCase1522148094482.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_135454/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522148175855.groovy b/automation/Libs/TempTestCase1522148175855.groovy deleted file mode 100644 index bf8c3104b..000000000 --- a/automation/Libs/TempTestCase1522148175855.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_135615/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522148230395.groovy b/automation/Libs/TempTestCase1522148230395.groovy deleted file mode 100644 index afc6dd8f4..000000000 --- a/automation/Libs/TempTestCase1522148230395.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_135710/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522148288759.groovy b/automation/Libs/TempTestCase1522148288759.groovy deleted file mode 100644 index b1f95afd5..000000000 --- a/automation/Libs/TempTestCase1522148288759.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_135808/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522148350644.groovy b/automation/Libs/TempTestCase1522148350644.groovy deleted file mode 100644 index 7e29db97d..000000000 --- a/automation/Libs/TempTestCase1522148350644.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_135910/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522148516173.groovy b/automation/Libs/TempTestCase1522148516173.groovy deleted file mode 100644 index f966c8e8e..000000000 --- a/automation/Libs/TempTestCase1522148516173.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_140156/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Libs/TempTestCase1522146862355.groovy b/automation/Libs/TempTestCase1522307126936.groovy similarity index 95% rename from automation/Libs/TempTestCase1522146862355.groovy rename to automation/Libs/TempTestCase1522307126936.groovy index 453aa42e9..1c75fb640 100644 --- a/automation/Libs/TempTestCase1522146862355.groovy +++ b/automation/Libs/TempTestCase1522307126936.groovy @@ -13,7 +13,7 @@ DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.w DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_133422/execution.properties') +RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180329_100526/execution.properties') TestCaseMain.beforeStart() try { diff --git a/automation/Libs/TempTestCase1522147002208.groovy b/automation/Libs/TempTestCase1522307168867.groovy similarity index 95% rename from automation/Libs/TempTestCase1522147002208.groovy rename to automation/Libs/TempTestCase1522307168867.groovy index 21ed711b4..27db46f3f 100644 --- a/automation/Libs/TempTestCase1522147002208.groovy +++ b/automation/Libs/TempTestCase1522307168867.groovy @@ -13,7 +13,7 @@ DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.w DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_133642/execution.properties') +RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180329_100608/execution.properties') TestCaseMain.beforeStart() try { diff --git a/automation/Libs/TempTestCase1522147234346.groovy b/automation/Libs/TempTestCase1522307353858.groovy similarity index 95% rename from automation/Libs/TempTestCase1522147234346.groovy rename to automation/Libs/TempTestCase1522307353858.groovy index 44e12c095..7de1d9512 100644 --- a/automation/Libs/TempTestCase1522147234346.groovy +++ b/automation/Libs/TempTestCase1522307353858.groovy @@ -13,7 +13,7 @@ DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.w DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_134034/execution.properties') +RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180329_100913/execution.properties') TestCaseMain.beforeStart() try { diff --git a/automation/Object Repository/AssignHE/HE.rs b/automation/Object Repository/AssignHE/HE.rs new file mode 100644 index 000000000..2a4989c78 --- /dev/null +++ b/automation/Object Repository/AssignHE/HE.rs @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>HE</name> + <tag></tag> + <elementGuidId>3469a553-9e0b-4562-8bd5-75508a890594</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[3]/div/div[4]/div</value> + </entry> + <entry> + <key>CSS</key> + <value>div[data-test="8104221"] button</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/OK.rs b/automation/Object Repository/AssignHE/OK.rs new file mode 100644 index 000000000..8facf7185 --- /dev/null +++ b/automation/Object Repository/AssignHE/OK.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>OK</name> + <tag></tag> + <elementGuidId>aca85f34-ebb8-4adc-bd0b-468ab74a4959</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[1]/div/div[3]/button</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/aheAssign.rs b/automation/Object Repository/AssignHE/aheAssign.rs new file mode 100644 index 000000000..16f6ab594 --- /dev/null +++ b/automation/Object Repository/AssignHE/aheAssign.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>aheAssign</name> + <tag></tag> + <elementGuidId>f8f7b44e-f90c-4804-8ab6-b63de8000bb7</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="root"]/div/div/div[2]/div/div[3]/div/div[7]/div[2]/div[2]/div/div[2]/div/button</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/aheX.rs b/automation/Object Repository/AssignHE/aheX.rs new file mode 100644 index 000000000..8332a4dad --- /dev/null +++ b/automation/Object Repository/AssignHE/aheX.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>aheX</name> + <tag></tag> + <elementGuidId>95bfffd0-81db-45a7-b70d-dcd4abc44dab</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/assign.rs b/automation/Object Repository/AssignHE/assign.rs new file mode 100644 index 000000000..d95f738fe --- /dev/null +++ b/automation/Object Repository/AssignHE/assign.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>assign</name> + <tag></tag> + <elementGuidId>3dc3c4de-d2b3-44e4-b3b4-06e86e672d5a</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[3]/div/div[4]/button</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/okX.rs b/automation/Object Repository/AssignHE/okX.rs new file mode 100644 index 000000000..abaf625a2 --- /dev/null +++ b/automation/Object Repository/AssignHE/okX.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>okX</name> + <tag></tag> + <elementGuidId>850f0fa5-4c05-43df-8571-ab42c3ad263d</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/resendInvitation/cancel.rs b/automation/Object Repository/AssignHE/resendInvitation/cancel.rs new file mode 100644 index 000000000..436e6c91b --- /dev/null +++ b/automation/Object Repository/AssignHE/resendInvitation/cancel.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>cancel</name> + <tag></tag> + <elementGuidId>8ce1a7af-014d-47f7-b8d2-1b636625faf0</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[3]/button[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/resendInvitation/resend.rs b/automation/Object Repository/AssignHE/resendInvitation/resend.rs new file mode 100644 index 000000000..5bbc25144 --- /dev/null +++ b/automation/Object Repository/AssignHE/resendInvitation/resend.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>resend</name> + <tag></tag> + <elementGuidId>35910429-f05e-468f-a3a5-18f47999da66</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="root"]/div/div/div[2]/div/div[3]/div/div[1]/div[2]/div[2]/div/div[2]/div/div/div[2]/div[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/resendInvitation/resendInvitation.rs b/automation/Object Repository/AssignHE/resendInvitation/resendInvitation.rs new file mode 100644 index 000000000..cd4faaf97 --- /dev/null +++ b/automation/Object Repository/AssignHE/resendInvitation/resendInvitation.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>resendInvitation</name> + <tag></tag> + <elementGuidId>a8ccd68d-8409-486e-95bc-96c495d26c3a</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[3]/button[2]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/resendInvitation/x.rs b/automation/Object Repository/AssignHE/resendInvitation/x.rs new file mode 100644 index 000000000..982ad8799 --- /dev/null +++ b/automation/Object Repository/AssignHE/resendInvitation/x.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>x</name> + <tag></tag> + <elementGuidId>60d749ef-fd83-4aec-be75-f2a5829f6aec</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[8]/div/div[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/revokeHEAssignation/cancel.rs b/automation/Object Repository/AssignHE/revokeHEAssignation/cancel.rs new file mode 100644 index 000000000..3cb52dfc6 --- /dev/null +++ b/automation/Object Repository/AssignHE/revokeHEAssignation/cancel.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>cancel</name> + <tag></tag> + <elementGuidId>fa00780d-4e47-4fc9-939b-cf79f1fb7464</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[9]/div/div[4]/button[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/revokeHEAssignation/revoke.rs b/automation/Object Repository/AssignHE/revokeHEAssignation/revoke.rs new file mode 100644 index 000000000..63acbf775 --- /dev/null +++ b/automation/Object Repository/AssignHE/revokeHEAssignation/revoke.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>revoke</name> + <tag></tag> + <elementGuidId>e3098d4a-28db-4a26-84d8-58dd83d9d9c7</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[9]/div/div[4]/button[2]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/revokeHEAssignation/revokeX.rs b/automation/Object Repository/AssignHE/revokeHEAssignation/revokeX.rs new file mode 100644 index 000000000..b8130d73f --- /dev/null +++ b/automation/Object Repository/AssignHE/revokeHEAssignation/revokeX.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>revokeX</name> + <tag></tag> + <elementGuidId>dfea06c6-295e-4c6b-a4b8-85c3706211dc</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="root"]/div/div/div[2]/div/div[3]/div/div[16]/div[2]/div[2]/div/div[2]/div/div/div[2]/div[2]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/revokeHEAssignation/x.rs b/automation/Object Repository/AssignHE/revokeHEAssignation/x.rs new file mode 100644 index 000000000..247f1b381 --- /dev/null +++ b/automation/Object Repository/AssignHE/revokeHEAssignation/x.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>x</name> + <tag></tag> + <elementGuidId>05a4cff9-14a1-4a3a-9e81-c94aafbf8889</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[9]/div/div[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/AssignHE/search.rs b/automation/Object Repository/AssignHE/search.rs new file mode 100644 index 000000000..6086af271 --- /dev/null +++ b/automation/Object Repository/AssignHE/search.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>search</name> + <tag></tag> + <elementGuidId>263de2e0-f0a4-4fbe-bd83-76412924fa3a</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[1]/div/div[2]/input</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/.meta b/automation/Object Repository/HandlingEditor/.meta new file mode 100644 index 000000000..d53c0b2fe --- /dev/null +++ b/automation/Object Repository/HandlingEditor/.meta @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<FolderEntity> + <description>folder</description> + <name>HandlingEditor</name> + <tag></tag> + <folderType>WEBELEMENT</folderType> +</FolderEntity> diff --git a/automation/Object Repository/HandlingEditor/agree/agree.rs b/automation/Object Repository/HandlingEditor/agree/agree.rs new file mode 100644 index 000000000..50114c41e --- /dev/null +++ b/automation/Object Repository/HandlingEditor/agree/agree.rs @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>agree</name> + <tag></tag> + <elementGuidId>707803bd-2c04-48bc-bdbd-7626b105ce91</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="root"]/div/div/div[2]/div/div[3]/div/div[10]/div[2]/div[2]/div/div[2]/button[2]</value> + </entry> + <entry> + <key>CSS</key> + <value></value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/agree/cancel.rs b/automation/Object Repository/HandlingEditor/agree/cancel.rs new file mode 100644 index 000000000..aaf4ae7d3 --- /dev/null +++ b/automation/Object Repository/HandlingEditor/agree/cancel.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>cancel</name> + <tag></tag> + <elementGuidId>ec3e97e2-ce9b-49f8-a367-6f11cf7891f2</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[3]/div/div[4]/button[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/agree/ok.rs b/automation/Object Repository/HandlingEditor/agree/ok.rs new file mode 100644 index 000000000..2d6783285 --- /dev/null +++ b/automation/Object Repository/HandlingEditor/agree/ok.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>ok</name> + <tag></tag> + <elementGuidId>e2bd3c9b-fa18-4ea3-a7d4-36dbddd98389</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[3]/div/div[4]/button[2]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/decline/cancel.rs b/automation/Object Repository/HandlingEditor/decline/cancel.rs new file mode 100644 index 000000000..143e63364 --- /dev/null +++ b/automation/Object Repository/HandlingEditor/decline/cancel.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>cancel</name> + <tag></tag> + <elementGuidId>5ec028c8-aea4-466d-9ec4-fc4ba5264015</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[3]/div/div/button[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/decline/decline.rs b/automation/Object Repository/HandlingEditor/decline/decline.rs new file mode 100644 index 000000000..c56489908 --- /dev/null +++ b/automation/Object Repository/HandlingEditor/decline/decline.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>decline</name> + <tag></tag> + <elementGuidId>88c3ddfc-5d25-423b-abda-caee0e4c311e</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="root"]/div/div/div[2]/div/div[3]/div/div[10]/div[2]/div[2]/div/div[2]/button[1]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/decline/declineHE.rs b/automation/Object Repository/HandlingEditor/decline/declineHE.rs new file mode 100644 index 000000000..a3085076c --- /dev/null +++ b/automation/Object Repository/HandlingEditor/decline/declineHE.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>declineHE</name> + <tag></tag> + <elementGuidId>8c7f1bef-ffe2-4ff7-88e2-6c28ea0c2be6</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[3]/div/div/button[2]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/HandlingEditor/decline/optionalText.rs b/automation/Object Repository/HandlingEditor/decline/optionalText.rs new file mode 100644 index 000000000..60fe8ffd8 --- /dev/null +++ b/automation/Object Repository/HandlingEditor/decline/optionalText.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>optionalText</name> + <tag></tag> + <elementGuidId>762ca743-a40e-4f37-a059-d69a87fbb004</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="ps-modal-root"]/div[3]/div/textarea</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs b/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs index 12a45c992..61fe08427 100644 --- a/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs +++ b/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs @@ -6,11 +6,11 @@ <elementGuidId>c3eed726-7b7f-4e93-8d4a-baddc5a31314</elementGuidId> <selectorCollection> <entry> - <key>CSS</key> - <value>div[data-test="upload-manuscripts"] input[type="file"]</value> + <key>XPATH</key> </entry> <entry> - <key>XPATH</key> + <key>CSS</key> + <value>div[data-test="upload-manuscripts"] input[type="file"]</value> </entry> </selectorCollection> <selectorMethod>CSS</selectorMethod> diff --git a/automation/Object Repository/SignIn/admin.rs b/automation/Object Repository/SignIn/admin.rs new file mode 100644 index 000000000..7e123ec9a --- /dev/null +++ b/automation/Object Repository/SignIn/admin.rs @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>admin</name> + <tag></tag> + <elementGuidId>48cae753-5ee7-4e14-ade8-6ddf3ba30a5d</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//*[@id="root"]/div/div/div[1]/div[2]/div/span[2]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>false</useRalativeImagePath> +</WebElementEntity> diff --git a/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy b/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy index a97a7e5e6..bf1e2dc98 100644 --- a/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy +++ b/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy @@ -37,6 +37,13 @@ WebUI.setText(password, 'password') loginButton = findTestObject('SignIn/login') WebUI.click(loginButton) +/*loggedInUserName = findTestObject("SignIn/admin") +username = WebUI.getText(loggedInUserName) +println(username) +assert username == "admin" +WebUI.click(loggedInUserName) +WebUI.click(loginButton)*/ + New = findTestObject("NewManuscript/journalfFieldSelection/New") WebUI.click(New) @@ -126,10 +133,12 @@ WebUI.waitForElementVisible(NextButton, 10) WebUI.click(NextButton) attachManuscript = findTestObject('NewManuscript/manuscriptFilesUpload/attachManuscript') -document = findTestObject("NewManuscript/manuscriptFilesUpload/document") WebUI.uploadFile(attachManuscript, '/Users/vladstegaru/Documents/Hindawi/attachements/document.pdf') +document = findTestObject("NewManuscript/manuscriptFilesUpload/document") WebUI.waitForElementPresent(document, 10) +WebUI.delay(5) + submitManuscript = findTestObject('NewManuscript/manuscriptFilesUpload/submitManuscript') WebUI.click(submitManuscript) WebUI.waitForElementVisible(submitManuscript, 10) @@ -139,5 +148,5 @@ WebUI.waitForElementPresent(goToDashboard, 10) WebUI.click(goToDashboard) WebUI.waitForPageLoad(5) -//WebUI.closeBrowser() +WebUI.closeBrowser() diff --git a/automation/Scripts/Assign HE/Assign He/Script1522237912559.groovy b/automation/Scripts/Assign HE/Assign He/Script1522237912559.groovy new file mode 100644 index 000000000..c50f43fb0 --- /dev/null +++ b/automation/Scripts/Assign HE/Assign He/Script1522237912559.groovy @@ -0,0 +1,46 @@ +import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint +import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase +import static com.kms.katalon.core.testdata.TestDataFactory.findTestData +import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject +import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint +import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory +import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords +import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile +import com.kms.katalon.core.model.FailureHandling as FailureHandling +import com.kms.katalon.core.testcase.TestCase as TestCase +import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory +import com.kms.katalon.core.testdata.TestData as TestData +import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory +import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository +import com.kms.katalon.core.testobject.TestObject as TestObject +import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords +import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS +import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords +import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI +import internal.GlobalVariable as GlobalVariable + +WebUI.openBrowser(null) +WebUI.navigateToUrl('http://localhost:3000') + +username = findTestObject('SignIn/username') +WebUI.click(username) +WebUI.setText(username, 'vlad.stegaru+eic4@thinslices.com') + +password = findTestObject('SignIn/password') +WebUI.click(password) +WebUI.setText(password, 'eicpass123') + +loginButton = findTestObject('SignIn/login') +WebUI.click(loginButton) + +assignHE = findTestObject("AssignHE/aheAssign") +WebUI.click(assignHE) + +HE = findTestObject("AssignHE/HE") +WebUI.mouseOver(HE) + +assign = findTestObject("AssingHE/assign") +WebUI.click(assign) + +ok = findTestObject("AssignHE/OK") +WebUI.click(ok) \ No newline at end of file diff --git a/automation/Scripts/Sign In/Sign In flow/Script1520414607328.groovy b/automation/Scripts/Sign In/Sign In flow/Script1520414607328.groovy index 10536a63d..a26b1033c 100644 --- a/automation/Scripts/Sign In/Sign In flow/Script1520414607328.groovy +++ b/automation/Scripts/Sign In/Sign In flow/Script1520414607328.groovy @@ -38,6 +38,13 @@ password = findTestObject("SignIn/password") WebUI.click(password) WebUI.setText(password, "admin123") -WebUI.click(findTestObject('SignIn/login')) +login = findTestObject("SignIn/login") +WebUI.click(login) + +loggedInUserName = findTestObject("SignIn/admin") +username = WebUI.getText(loggedInUserName) +println(username) +assert username == "admin" +WebUI.click(loggedInUserName) diff --git a/automation/Test Cases/Add new manuscript/Add a new manuscript.tc b/automation/Test Cases/Add new manuscript/Add a new manuscript.tc index e67b7f167..dc38b98cf 100644 --- a/automation/Test Cases/Add new manuscript/Add a new manuscript.tc +++ b/automation/Test Cases/Add new manuscript/Add a new manuscript.tc @@ -6,10 +6,17 @@ <comment></comment> <testCaseGuid>75320485-255a-4adc-be3e-c3a9e8cf5399</testCaseGuid> <variable> - <defaultValue>'0'</defaultValue> + <defaultValue>''</defaultValue> + <description></description> + <id>68ae01ba-31a5-4819-aa48-3031d89305ba</id> + <masked>false</masked> + <name>loggedUserName</name> + </variable> + <variable> + <defaultValue>findTestObject(null)</defaultValue> <description></description> <id>30a84231-84ba-44cb-9eec-26ad7d97acd5</id> <masked>false</masked> - <name>G_manuscriptID</name> + <name>attachedDocument</name> </variable> </TestCaseEntity> diff --git a/automation/Test Cases/Assign HE/Assign He.tc b/automation/Test Cases/Assign HE/Assign He.tc new file mode 100644 index 000000000..76b9970a0 --- /dev/null +++ b/automation/Test Cases/Assign HE/Assign He.tc @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<TestCaseEntity> + <description></description> + <name>Assign He</name> + <tag></tag> + <comment></comment> + <testCaseGuid>a554a979-2210-4cb4-8945-afca85d1a70c</testCaseGuid> + <variable> + <defaultValue>''</defaultValue> + <description></description> + <id>7776a1e5-75f8-4172-82db-dc719480bfe7</id> + <masked>false</masked> + <name>assignButton</name> + </variable> +</TestCaseEntity> diff --git a/automation/Test Cases/Sign In/Sign In flow.tc b/automation/Test Cases/Sign In/Sign In flow.tc index fa8c80535..9111893f0 100644 --- a/automation/Test Cases/Sign In/Sign In flow.tc +++ b/automation/Test Cases/Sign In/Sign In flow.tc @@ -5,4 +5,11 @@ <tag></tag> <comment></comment> <testCaseGuid>78d241c4-0097-452c-96b8-17f4f156e210</testCaseGuid> + <variable> + <defaultValue>''</defaultValue> + <description></description> + <id>e818a000-1434-4565-9664-6d2992456762</id> + <masked>false</masked> + <name>username</name> + </variable> </TestCaseEntity> diff --git a/automation/Test Suites/LoginFilterManuscripts.ts b/automation/Test Suites/LoginFilterManuscripts.ts index f32ac418e..7ae9b6599 100644 --- a/automation/Test Suites/LoginFilterManuscripts.ts +++ b/automation/Test Suites/LoginFilterManuscripts.ts @@ -16,6 +16,12 @@ <isReuseDriver>false</isReuseDriver> <isRun>true</isRun> <testCaseId>Test Cases/Sign In/Sign In flow</testCaseId> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>e818a000-1434-4565-9664-6d2992456762</variableId> + </variableLink> </testCaseLink> <testCaseLink> <guid>1664bf22-f681-4f48-8f70-cb3d86df5328</guid> diff --git a/automation/Test Suites/LoginNewManuscript.ts b/automation/Test Suites/LoginNewManuscript.ts index 34d9d009d..2f85f60be 100644 --- a/automation/Test Suites/LoginNewManuscript.ts +++ b/automation/Test Suites/LoginNewManuscript.ts @@ -16,6 +16,12 @@ <isReuseDriver>false</isReuseDriver> <isRun>true</isRun> <testCaseId>Test Cases/Sign In/Sign In flow</testCaseId> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>e818a000-1434-4565-9664-6d2992456762</variableId> + </variableLink> </testCaseLink> <testCaseLink> <guid>725bd536-5fee-431d-bd1e-7ec5f3a21912</guid> @@ -28,5 +34,11 @@ <value></value> <variableId>30a84231-84ba-44cb-9eec-26ad7d97acd5</variableId> </variableLink> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>68ae01ba-31a5-4819-aa48-3031d89305ba</variableId> + </variableLink> </testCaseLink> </TestSuiteEntity> diff --git a/automation/Test Suites/LoginNewManuscriptResume.ts b/automation/Test Suites/LoginNewManuscriptResume.ts index cb04f3045..a832f009b 100644 --- a/automation/Test Suites/LoginNewManuscriptResume.ts +++ b/automation/Test Suites/LoginNewManuscriptResume.ts @@ -16,6 +16,12 @@ <isReuseDriver>false</isReuseDriver> <isRun>true</isRun> <testCaseId>Test Cases/Sign In/Sign In flow</testCaseId> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>e818a000-1434-4565-9664-6d2992456762</variableId> + </variableLink> </testCaseLink> <testCaseLink> <guid>e9ab62a4-f041-4f4f-9e59-0dcb31fc00e7</guid> @@ -28,6 +34,12 @@ <value></value> <variableId>30a84231-84ba-44cb-9eec-26ad7d97acd5</variableId> </variableLink> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>68ae01ba-31a5-4819-aa48-3031d89305ba</variableId> + </variableLink> </testCaseLink> <testCaseLink> <guid>2ac440cf-7be0-47d5-acb5-dc9a9f2bba0d</guid> diff --git a/automation/Test Suites/LoginNewUser.ts b/automation/Test Suites/LoginNewUser.ts index 69cbf7e56..86bd954d7 100644 --- a/automation/Test Suites/LoginNewUser.ts +++ b/automation/Test Suites/LoginNewUser.ts @@ -16,6 +16,12 @@ <isReuseDriver>false</isReuseDriver> <isRun>true</isRun> <testCaseId>Test Cases/Sign In/Sign In flow</testCaseId> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>e818a000-1434-4565-9664-6d2992456762</variableId> + </variableLink> </testCaseLink> <testCaseLink> <guid>40e52837-54d7-4f45-964b-9bdb44338181</guid> diff --git a/automation/Test Suites/LoginNewUserEdit.ts b/automation/Test Suites/LoginNewUserEdit.ts index 288b5fce4..8afc35933 100644 --- a/automation/Test Suites/LoginNewUserEdit.ts +++ b/automation/Test Suites/LoginNewUserEdit.ts @@ -16,6 +16,12 @@ <isReuseDriver>false</isReuseDriver> <isRun>true</isRun> <testCaseId>Test Cases/Sign In/Sign In flow</testCaseId> + <variableLink> + <testDataLinkId></testDataLinkId> + <type>DEFAULT</type> + <value></value> + <variableId>e818a000-1434-4565-9664-6d2992456762</variableId> + </variableLink> </testCaseLink> <testCaseLink> <guid>d5a7124a-16b0-458d-9be2-50e24b4b9799</guid> -- GitLab