From 0b8182833cedfd51cbc35c31968a3c6268beaf92 Mon Sep 17 00:00:00 2001 From: Vlad <stegaru.vlad@gmail.com> Date: Tue, 27 Mar 2018 15:10:01 +0300 Subject: [PATCH] test updates --- .../Libs/TempTestCase1522138549263.groovy | 25 ------------------- .../Libs/TempTestCase1522138883432.groovy | 25 ------------------- ...roovy => TempTestCase1522146862355.groovy} | 2 +- ...roovy => TempTestCase1522147002208.groovy} | 2 +- ...roovy => TempTestCase1522147234346.groovy} | 6 ++--- ...roovy => TempTestCase1522147937936.groovy} | 6 ++--- .../Libs/TempTestCase1522148094482.groovy | 25 +++++++++++++++++++ .../Libs/TempTestCase1522148175855.groovy | 25 +++++++++++++++++++ .../Libs/TempTestCase1522148230395.groovy | 25 +++++++++++++++++++ .../Libs/TempTestCase1522148288759.groovy | 25 +++++++++++++++++++ .../Libs/TempTestCase1522148350644.groovy | 25 +++++++++++++++++++ .../Libs/TempTestCase1522148516173.groovy | 25 +++++++++++++++++++ .../manuscriptFilesUpload/attachManuscript.rs | 3 +-- .../manuscriptFilesUpload/document.rs | 23 +++++++++++++++++ .../Script1520433593112.groovy | 16 ++++++++---- 15 files changed, 193 insertions(+), 65 deletions(-) delete mode 100644 automation/Libs/TempTestCase1522138549263.groovy delete mode 100644 automation/Libs/TempTestCase1522138883432.groovy rename automation/Libs/{TempTestCase1522141820755.groovy => TempTestCase1522146862355.groovy} (95%) rename automation/Libs/{TempTestCase1522141892811.groovy => TempTestCase1522147002208.groovy} (95%) rename automation/Libs/{TempTestCase1522139359504.groovy => TempTestCase1522147234346.groovy} (68%) rename automation/Libs/{TempTestCase1522141133949.groovy => TempTestCase1522147937936.groovy} (68%) create mode 100644 automation/Libs/TempTestCase1522148094482.groovy create mode 100644 automation/Libs/TempTestCase1522148175855.groovy create mode 100644 automation/Libs/TempTestCase1522148230395.groovy create mode 100644 automation/Libs/TempTestCase1522148288759.groovy create mode 100644 automation/Libs/TempTestCase1522148350644.groovy create mode 100644 automation/Libs/TempTestCase1522148516173.groovy create mode 100644 automation/Object Repository/NewManuscript/manuscriptFilesUpload/document.rs diff --git a/automation/Libs/TempTestCase1522138549263.groovy b/automation/Libs/TempTestCase1522138549263.groovy deleted file mode 100644 index a3a8a98ec..000000000 --- a/automation/Libs/TempTestCase1522138549263.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/Cancel submission/Cancel manuscript/20180327_111549/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Cancel submission/Cancel manuscript', new TestCaseBinding('Test Cases/Cancel submission/Cancel manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Cancel submission/Cancel manuscript') -} diff --git a/automation/Libs/TempTestCase1522138883432.groovy b/automation/Libs/TempTestCase1522138883432.groovy deleted file mode 100644 index 2630b9f18..000000000 --- a/automation/Libs/TempTestCase1522138883432.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/Cancel submission/Cancel manuscript/20180327_112123/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Cancel submission/Cancel manuscript', new TestCaseBinding('Test Cases/Cancel submission/Cancel manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Cancel submission/Cancel manuscript') -} diff --git a/automation/Libs/TempTestCase1522141820755.groovy b/automation/Libs/TempTestCase1522146862355.groovy similarity index 95% rename from automation/Libs/TempTestCase1522141820755.groovy rename to automation/Libs/TempTestCase1522146862355.groovy index 323597240..453aa42e9 100644 --- a/automation/Libs/TempTestCase1522141820755.groovy +++ b/automation/Libs/TempTestCase1522146862355.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_121020/execution.properties') +RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_133422/execution.properties') TestCaseMain.beforeStart() try { diff --git a/automation/Libs/TempTestCase1522141892811.groovy b/automation/Libs/TempTestCase1522147002208.groovy similarity index 95% rename from automation/Libs/TempTestCase1522141892811.groovy rename to automation/Libs/TempTestCase1522147002208.groovy index c6813d464..21ed711b4 100644 --- a/automation/Libs/TempTestCase1522141892811.groovy +++ b/automation/Libs/TempTestCase1522147002208.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_121132/execution.properties') +RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_133642/execution.properties') TestCaseMain.beforeStart() try { diff --git a/automation/Libs/TempTestCase1522139359504.groovy b/automation/Libs/TempTestCase1522147234346.groovy similarity index 68% rename from automation/Libs/TempTestCase1522139359504.groovy rename to automation/Libs/TempTestCase1522147234346.groovy index ff5101a8d..44e12c095 100644 --- a/automation/Libs/TempTestCase1522139359504.groovy +++ b/automation/Libs/TempTestCase1522147234346.groovy @@ -13,13 +13,13 @@ 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/Cancel submission/Cancel manuscript/20180327_112919/execution.properties') +RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180327_134034/execution.properties') TestCaseMain.beforeStart() try { - TestCaseMain.runTestCase('Test Cases/Cancel submission/Cancel manuscript', new TestCaseBinding('Test Cases/Cancel submission/Cancel manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) + 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/Cancel submission/Cancel manuscript') + TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') } diff --git a/automation/Libs/TempTestCase1522141133949.groovy b/automation/Libs/TempTestCase1522147937936.groovy similarity index 68% rename from automation/Libs/TempTestCase1522141133949.groovy rename to automation/Libs/TempTestCase1522147937936.groovy index 74fffe8a3..3276bb25f 100644 --- a/automation/Libs/TempTestCase1522141133949.groovy +++ b/automation/Libs/TempTestCase1522147937936.groovy @@ -13,13 +13,13 @@ 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/Cancel submission/Cancel manuscript/20180327_115853/execution.properties') +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/Cancel submission/Cancel manuscript', new TestCaseBinding('Test Cases/Cancel submission/Cancel manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) + 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/Cancel submission/Cancel manuscript') + TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') } diff --git a/automation/Libs/TempTestCase1522148094482.groovy b/automation/Libs/TempTestCase1522148094482.groovy new file mode 100644 index 000000000..e1e9ae859 --- /dev/null +++ b/automation/Libs/TempTestCase1522148094482.groovy @@ -0,0 +1,25 @@ +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 new file mode 100644 index 000000000..bf8c3104b --- /dev/null +++ b/automation/Libs/TempTestCase1522148175855.groovy @@ -0,0 +1,25 @@ +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 new file mode 100644 index 000000000..afc6dd8f4 --- /dev/null +++ b/automation/Libs/TempTestCase1522148230395.groovy @@ -0,0 +1,25 @@ +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 new file mode 100644 index 000000000..b1f95afd5 --- /dev/null +++ b/automation/Libs/TempTestCase1522148288759.groovy @@ -0,0 +1,25 @@ +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 new file mode 100644 index 000000000..7e29db97d --- /dev/null +++ b/automation/Libs/TempTestCase1522148350644.groovy @@ -0,0 +1,25 @@ +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 new file mode 100644 index 000000000..f966c8e8e --- /dev/null +++ b/automation/Libs/TempTestCase1522148516173.groovy @@ -0,0 +1,25 @@ +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/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs b/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs index 16ece3ecb..12a45c992 100644 --- a/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs +++ b/automation/Object Repository/NewManuscript/manuscriptFilesUpload/attachManuscript.rs @@ -7,11 +7,10 @@ <selectorCollection> <entry> <key>CSS</key> - <value>div[data-test="button-upload-manuscripts"]</value> + <value>div[data-test="upload-manuscripts"] input[type="file"]</value> </entry> <entry> <key>XPATH</key> - <value></value> </entry> </selectorCollection> <selectorMethod>CSS</selectorMethod> diff --git a/automation/Object Repository/NewManuscript/manuscriptFilesUpload/document.rs b/automation/Object Repository/NewManuscript/manuscriptFilesUpload/document.rs new file mode 100644 index 000000000..c9f21c9f9 --- /dev/null +++ b/automation/Object Repository/NewManuscript/manuscriptFilesUpload/document.rs @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>document</name> + <tag></tag> + <elementGuidId>d70f5d70-9ece-4060-ae01-7ff79efd6c68</elementGuidId> + <selectorCollection> + <entry> + <key>BASIC</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//span[contains(text(),"document.pdf")]</value> + </entry> + <entry> + <key>CSS</key> + <value></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 d0f0df65c..a97a7e5e6 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 @@ -24,7 +24,7 @@ import org.openqa.selenium.Keys as Keys WebUI.openBrowser(null) -WebUI.navigateToUrl('https://xpub-faraday.now.sh') +WebUI.navigateToUrl('http://localhost:3000') username = findTestObject('SignIn/username') WebUI.click(username) @@ -32,7 +32,7 @@ WebUI.setText(username, 'admin') password = findTestObject('SignIn/password') WebUI.click(password) -WebUI.setText(password, 'admin123') +WebUI.setText(password, 'password') loginButton = findTestObject('SignIn/login') WebUI.click(loginButton) @@ -119,19 +119,25 @@ WebUI.waitForElementPresent(submittingAuthor, 10) noButton = findTestObject('NewManuscript/manuscriptAuthorsDetails/no') WebUI.click(noButton) +WebUI.waitForElementPresent(noButton, 10) NextButton = findTestObject('NewManuscript/manuscriptAuthorsDetails/Next') +WebUI.waitForElementVisible(NextButton, 10) WebUI.click(NextButton) -attachFile = findTestObject('NewManuscript/manuscriptFilesUpload/attachManuscript') - -WebUI.uploadFile(attachFile, '/Users/vladstegaru/Documents/Hindawi/attachements/document.pdf') +attachManuscript = findTestObject('NewManuscript/manuscriptFilesUpload/attachManuscript') +document = findTestObject("NewManuscript/manuscriptFilesUpload/document") +WebUI.uploadFile(attachManuscript, '/Users/vladstegaru/Documents/Hindawi/attachements/document.pdf') +WebUI.waitForElementPresent(document, 10) submitManuscript = findTestObject('NewManuscript/manuscriptFilesUpload/submitManuscript') WebUI.click(submitManuscript) +WebUI.waitForElementVisible(submitManuscript, 10) goToDashboard = findTestObject('Resume/goToDashboard') +WebUI.waitForElementPresent(goToDashboard, 10) WebUI.click(goToDashboard) +WebUI.waitForPageLoad(5) //WebUI.closeBrowser() -- GitLab