IF UItest is running 
{
//execute this code
}
else
{
//execute this code
}
can anyone tell what should be the conditional statement here
IF UItest is running 
{
//execute this code
}
else
{
//execute this code
}
can anyone tell what should be the conditional statement here
Method 1: pass args through test code
// In UI test file
class ProfileUI: XCTestCase {
    let app = XCUIApplication()
    override func setUpWithError() throws {
        app.launchArguments = ["-isUITestMode", "user_324234"]
        app.launch()
    }
}
Method 2: pass args through scheme
Check the args
if CommandLine.arguments.contains("-isUITestMode") {
    // running ui test
} else if CommandLine.arguments.contains("-isUnitTestMode") {
    // running unit tests
} else {
    // normal
}
