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.