Slowness with Katalon Studio 6.2.2

staff-19

#1

Hi,

I have a very very slowness with katalon studio.
I have the best latest laptop MSI with coolbooster and i notice that object spy and execution is soo slow.

  • opening of katalon : 10 sec
  • Opening object spy : 58 sec
  • Opening Chrome (when i Click start with object spy): 4 sec

My configuration :

image

I don’t know how to remedy this problem

some hel please :thinking: ?


#2

@ouknam Did you enable on “Automatically update WebDriver” on Preferences -> WebUI?


#3

Yes but that does not solve


#4

I don’t think Katalon benefit much from multithreading.
Can you give more detail on what is slow ? Is it starting the application ? Writing script ? Is it when you start running a test it takes time to build up the test ? When the test is running, does it goes fast or it’s slow ?
Have you tried running test on another browser ? My tests are running slow on Internet explorer and they are way faster on Chrome for some reason.


#5

Windows 10? Try this, for every Katalon folder and your projects:


#6

I try on every browser :

  • Execution with FF (when FF appears) : 1m33sec
  • IE : 14 and 16 sec

I encountered this error :
08-08-2019 03:31:37 PM Test Cases/Connexion_et_envoi_Mail_IDF

Elapsed time: 3,556s

Test Cases/Connexion_et_envoi_Mail_IDF FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to navigate to ‘https://www.pagesjaunes.fr/
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.NavigateToUrlKeyword.navigateToUrl(NavigateToUrlKeyword.groovy:83)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword.execute(NavigateToUrlKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.navigateToUrl(WebUiBuiltInKeywords.groovy:183)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$navigateToUrl$1.call(Unknown Source)
at Connexion_et_envoi_Mail_IDF.run(Connexion_et_envoi_Mail_IDF:10)
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.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1565274696077.run(TempTestCase1565274696077.groovy:21)
Caused by: org.openqa.selenium.NoSuchWindowException: Unable to get browser
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘MSI’, ip: ‘192.168.56.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.selenium.driver.CInternetExplorerDriver
Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, javascriptEnabled: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:28671/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 2d4a9309-14e6-42c4-ab6c-dd66502623ee
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CInternetExplorerDriver.execute(CInternetExplorerDriver.java:22)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:277)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:857)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword$_navigateToUrl_closure1.doCall(NavigateToUrlKeyword.groovy:81)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword$_navigateToUrl_closure1.call(NavigateToUrlKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 17 more

  • With Edge : the same error with IE.

08-08-2019 03:34:34 PM Test Cases/Connexion_et_envoi_Mail_IDF

Elapsed time: 20,608s

Test Cases/Connexion_et_envoi_Mail_IDF FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to navigate to ‘https://www.pagesjaunes.fr/
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.NavigateToUrlKeyword.navigateToUrl(NavigateToUrlKeyword.groovy:83)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword.execute(NavigateToUrlKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.navigateToUrl(WebUiBuiltInKeywords.groovy:183)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$navigateToUrl$0.call(Unknown Source)
at Connexion_et_envoi_Mail_IDF.run(Connexion_et_envoi_Mail_IDF:10)
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.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1565274872604.run(TempTestCase1565274872604.groovy:21)
Caused by: com.kms.katalon.core.webui.exception.BrowserNotOpenedException: Browser is not opened
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘MSI’, ip: ‘192.168.56.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: unknown
at com.kms.katalon.core.webui.driver.DriverFactory.verifyWebDriverIsOpen(DriverFactory.java:662)
at com.kms.katalon.core.webui.driver.DriverFactory.verifyWebDriver(DriverFactory.java:647)
at com.kms.katalon.core.webui.driver.DriverFactory.getWebDriver(DriverFactory.java:633)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword$_navigateToUrl_closure1.doCall(NavigateToUrlKeyword.groovy:80)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword$_navigateToUrl_closure1.call(NavigateToUrlKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 17 more


#7

We need to see your test case code.


#8

Thanks Russ_Thomas But it doesn’t work.


#9

It helps, trust me. Now do the same for all your security/anti-virus products.

Note, comparatively speaking, Windows10 is a slow OS – in the serious backend devops fraternity, it’s considered a “joke” (a very un-funny joke, at that).


#10

i understand.
it’s not possible for me to access exclusion of windows security although i’m admin.

may be the slowless problem is in my katalon project :

i try to create a new project not based on a sample ddt project


#11

Try to modify katalon .ini (with notepad program ) file and increase xmx value to 8192 like this:

-Xmx8192m

save file and close katalon and open it again


#12

already done francorebu :

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-data
@noDefault
-vmargs
-Xms1024m
-Xmx8192m

I execute with this button :

38 sec for the run in Chrome.
it’s a little better.

I would like to have a beginning of execution in 10 secondes

I still do not understand why …
:confus:


#13

try disabling “Automatically update WebDriver”. When launching a browser of any sort (Running test case/suite, object spy, or test case recorder) I’ve been experiencing Non-Responsive issues for up to 120 seconds at the worst. Disabling that option has drastically reduced my launching issues so I instantly see the running status without KS going unresponsive.


With every new Katalon update, browser launch seems to take longer