0

I am using KIF for testing the functionality of an app. However, this app has two versions, one is for iPad, and the other one is for iPhone. Is there a global variable or something that indicates if I am running my test in iPad or iPhone? I'd like to use it (e.g. in a conditional) to take advantage and just make a few modifications in the iPhone tests that I have already finished.

Aaron Brager
  • 65,323
  • 19
  • 161
  • 287
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228

1 Answers1

1

You can define macro

#define IS_IPAD (UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPhone)

That's how we used it.

ppolak
  • 641
  • 5
  • 8