Automating 3rd party app without access to source code

Hello,


I have unique requirement where i want to use automation frameworks such as XCUITest etc. to be able to automate 3rd party apps. I know that the XCode 8 now has native support however so far from what i can tell it only works if you have access to source code?


In my case the app is available as a binary and there is no source code access available/possible? In this case any recommendations how Ui based autoamtion can be built and used?


Previoulsy i was able to use UiAutomation framework but that has been depcreated in latest XCode. In the new XCUITest framework I havent been able to sort out how to target a 3rd party app installed on the iPhone and automate that.


Any help would be appreciated.


Thanks

Anyone?

I am also having the same requirement., atmost if you don't have a Blackbox solution with XCUTtest then ., can go for Appium or Airtest
Maybe there is way to achieve it if you know the 3rd party apps' bundle identifiers.

The XCUIApplication provides a method that Creates a proxy for an application for the specified bundle identifier. -> see in doc

So what you can do is to create a mock app target, and then create a UI Test Target for it using XCUITest. Then in the test cases, you can init XCUIApplication instances with the above mentioned methods to do your testings.

Just my two cents.

You can initialize an XCUIApplication with any bundle id, and automate the application that way: https://developer.apple.com/documentation/xctest/xcuiapplication/2879415-init

Automating 3rd party app without access to source code
 
 
Q