Sahil Sharma
Jan 15, 2022

Thanks Karl Smith. In this article, I am fetching values from .json test data files that live in UITest target but if you're looking to pass values from main app target to UITest target then launch arguments can be a good option.

Set in UITest Target:

app.launchArguments.append("passMeToMainTarget")

Then in your app, you can fetch values from `ProcessInfo.processInfo.arguments` & maybe store in a singleton. Best to do this in AppDelegate.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Sahil Sharma
Sahil Sharma

Written by Sahil Sharma

QA Automation | iOS Developer | SDET - I love coding, reading, health & fitness, and travelling.

No responses yet

Write a response