iOS test execution on MacOS is unusually slow with Katalon Studio

Hi everyone,
I’m experiencing unusually slow performance when running automation tests on an iOS device using Katalon Studio on MacOS.

Specifically, actions such as taking screenshots (Mobile.takeScreenshot()), getting device dimensions, etc., are taking a long time to complete — around 9 to 10 seconds per command (see attached image for reference).

My code

	@AfterTestCase
	def afterTestCase(TestSuiteContext testSuiteContext) {
		try {
			Mobile.getDeviceHeight()
			Mobile.getDeviceWidth()
			Mobile.takeScreenshot()
			Mobile.takeScreenshot(FailureHandling.OPTIONAL)
			WebUI.takeScreenshot(FailureHandling.OPTIONAL)
		}
		catch(Exception ex) {
			
		}
	}

Environment details:

  • Katalon Studio version: 10.2.3
  • Appium: 2.17.1
  • Driver: XUITest 7.34.1
  • macOS version: 15.0
  • Device: iPhone 11 – iOS 18.5 (real device)
  • Application: Built with Flutter

Has anyone else encountered this issue or knows what might be causing the slowdown? Any tips to improve performance would be appreciated.

Thanks in advance!

1 Like

Hi @le.duc.anh,

Sorry for my late response. I will ask my team and back here soon

1 Like

Hi @le.duc.anh,

Sorry for my late response. After investigating, the problem seems to be caused by XCUITest driver version you using has problem, please consider to switch to the other version, e.g. XCUITest 7.21.1. Thank you

2 Likes

@Elly_Tran Thank you for your solution.

I haven’t upgraded XCUITest to 7.21.1 yet, but after upgrading Katalon Studio to 10.3.1, I no longer experienced the slowness issue.

1 Like