Can I test the iOS app using Objective-C/Swift with Appium?

Hello
I am an iOS developer and know Objective-C/Swift.
I want to test an iOS app using the Appium.
But I am not getting any tutorial for testing with it XCode.
And I have got a project named Selenium. I don’t know how to use it.
Also, I posted this question on the Stackoverflow and I got the answer that It cannot be tested with the Objective-C/Swift.

Please let me know should I try with Selenium project provided for XCode.
Or only try with java in Eclipse or Android Studio.

And one more thing that When I launch my ipa/app file from the Appium do I need to write a test ?
Without the test project, it can be tested (UI) or not?

Thanks in advance

Hello @Gopal_Devra,

If you are iOS developer and want to test in swift/Objective C. then why don’t you use UIAutomation/XCUitest framework for UI testing. I think it is more convienent option to you.

Thanks,
Priyank Shah

Hello @Priyank_Shah

Thanks fo the reply.

I want to test both Android and iOS apps with the Appium.
But after learing testing with Objective-C/Swift.
That is why I am trying for the Appium.

Gopal Devra

You can test android and iOS using appium, also you can chose any scripting language Java/C#/Scala/Clojure/Python/Ruby/Javascript (Other than swift and Objective C :slight_smile: )

@Priyank_Shah

Thank you very much.

Could I have the source code for testing an iOS app.

You can pick UICatalog/Wordpress App, but it will only work with iPhone simulators.

1 Like

ok thanks
Let me check.

Ohh,
This is just the sample code of UICatalog app.
I have an app to test.
But I want the source code of java which could run in Eclipse from which I can test my app.

There are a ton of Appium Java tutorials. Try this one from SauceLabs is pretty good:

http://sauceio.com/index.php/2013/04/mobile-test-automation-in-java-with-appium/comment-page-1/

Others are just a google search away…