XCUI Test: What resources do you use?


(Heather) #1

I’ve been asked twice very recently from different people in the software testing community about resources for XCUI Test. There’s also been a lot of chatter about XCUI in the various Slack groups. My first thought was to check the Club where I found nothing :astonished:

The next thing that popped into my head was the workshop “iOS UI Testing with XCUITest in Swift” with Swarnim Kumari at the London Tester Gathering. Not helpful for people who can’t attend of course, although the GitHub repo might be.

In the general channel on the Ministry of Testing slack, someone was looking for

any tutorial for iOS automation using XCUI test?

Swarnim shared Swift iOS UI and Unit Testing from Pluralsight.

I was wondering if any of you had resources you use or have created for XCUI Test?


(Simon) #2

More of a tip than resource:

Adding accessibility ID/label etc. is super easy and makes writing selectors much, much easier. You can also add dynamic AccessibilityIDs to list to make it much easier to find specific item without having to rely on findAll and iterating or dealing with indexes.


(Sarah ) #3

I’ve started the Udemy iOS 12 & Swift App Development Bootcamp which is helping me understand the language at least. I use the record function to get the elements, there was a good WWDC video in 2015 which introduced it. This years WWDC had how to use parallel simulators using clones and randomising. The develops can help me try to write and fix automated tests, once I’ve set what needs to be covered.