Hi, @ThanhTo
In Katalon studio version 7.1.2, In test suite most of the test cases gets failed, but when executed the same test cases individual it gets pass.
In test suite, I have added 50 test cases.
let me know the solution.
Hi, @ThanhTo
In Katalon studio version 7.1.2, In test suite most of the test cases gets failed, but when executed the same test cases individual it gets pass.
In test suite, I have added 50 test cases.
let me know the solution.
I think in order to get an answer, more info is needed. For example what error(s) do you get.
Hi @pawan.singh
Please provide (some of) the log of the failed Test Cases and their Test Scripts.
Hi @ThanhTo,
Providing logs for your reference.
2020-01-30 11:20:32.961 ERROR c.k.katalon.core.main.TestCaseExecutor - Test Cases/Partner Adminstration/Users FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object âObject Repository/Users/Page_Contentserv/div_Partner Administrationâ
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:102)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:43)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$3.call(Unknown Source)
at Users.run(Users:37)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:169)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:142)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:91)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1580363120080.run(TempTestSuite1580363120080.groovy:36)
Caused by: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: âObject Repository/Users/Page_Contentserv/div_Partner Administrationâ located by âBy.xpath: //div[contains(text(),âPartner Administrationâ)]â not found
at com.kms.katalon.core.webui.common.WebUiCommonHelper.findWebElement(WebUiCommonHelper.java:1154)
at com.kms.katalon.core.webui.keyword.internal.WebUIAbstractKeyword.findWebElement(WebUIAbstractKeyword.groovy:27)
at com.kms.katalon.core.webui.keyword.internal.WebUIAbstractKeyword.findWebElement(WebUIAbstractKeyword.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:67)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.call(ClickKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
-Same test cases working when run separately.
I suppose, somewhere in your test case script, you have a line:
WebUI.click(findTestObject("Object Repository/Users/Page_Contentserv/div_Partner Administration"))
Please try inserting a line of WebUI.waitForElementClickable
before calling WebUI.click
like this:
WebUI.waitForElementClickable(findTestObject("Object Repository/Users/Page_Contentserv/div_Partner Administration"), 10)
WebUI.click(findTestObject("Object Repository/Users/Page_Contentserv/div_Partner Administration"))
See also
And make sure itâs also visible and doesnât have a layer/popup or whatever on top of it