KIF is an iOS integration test framework. It allows for easy automation of iOS apps by leveraging the accessibility attributes that the OS makes available for those with visual disabilities.
Questions tagged [kif]
139 questions
27
votes
4 answers
Error loading XCTest, no suitable image found.
I have recently updated my Xcode and started having this error.
2014-11-03 15:03:54.222 App[13141:60b] Error loading /private/var/mobile/Applications/677127BD-5230-4D5F-B70E-AF728439D34B/tmp/AppTests.xctest/AppTests: …

TeaCupApp
- 11,316
- 18
- 70
- 150
17
votes
8 answers
Can I check if a view exists on the screen with KIF?
I am making a "before each" step and I am wanting to do steps to logout. I can't find anything about checking if an element exists before I try to touch it, then if it doesn't exist do something else. Is it possible to do this with KIF without…

SirRupertIII
- 12,324
- 20
- 72
- 121
15
votes
2 answers
Removing iOS permission alert for local notifications when running app in simulator
I'm trying to write an acceptance test in KIF on an app that asks for local notification permissions pretty early on. Unfortunately due to iOS simulator security reasons it isn't possible to automate accepting iOS permission alerts using KIF. Per…

Liron Yahdav
- 10,152
- 8
- 68
- 104
13
votes
1 answer
Mocking objects with Xcode 7 UI Automation
I was using KIF Framework until now for iOS UI Automation. KIF (also Unit Test) targets runs the Unit/UI testing code in the same process as your application is running and we can easily Mock different objects/classes used by the app to show mock…

gagarwal
- 4,224
- 2
- 20
- 27
9
votes
2 answers
KIF output: AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort"
When running KIF integration tests on device with iOS 8.1.3 I get lots of diagnostic messages of the following kind as console output:
AX Exchange error: Error Domain=Accessibility Code=0 "Remote service
does not respond to…

Drux
- 11,992
- 13
- 66
- 116
8
votes
1 answer
How to acknowledge system alerts automatically using KIF test framework?
I use KIF to test the UI for continuous integration. When the app is the first launch on a device (or iOS Simulator), the system will show some alert views for security. How can KIF automatically acknowledge system alerts to prevent test from…

Xaree Lee
- 3,188
- 3
- 34
- 55
7
votes
1 answer
How can I change the default timeout using KIF?
I am using KIF for developing tests, but sometimes because I am getting data from a service that takes more than 10 seconds a tests fails, so I would like to know how to change the default timeout.
Is there other solution for this issue I was…

lmiguelvargasf
- 63,191
- 45
- 217
- 228
7
votes
2 answers
Setting an accessibility label on a UITabBarItem with no title
I have a UITabBarItem like so:
_Controller.tabBarItem = [[UITabBarItem alloc] initWithTitle:nil image:nil tag:0];
But having nil for a title removes the label needed for accessibility and KIF testing. An alternative I found is to set the title and…

jjj
- 767
- 2
- 9
- 14
6
votes
1 answer
Programmatically sending tap event to coordinates in background in iOS using KIF
The idea is to make an app that can send a 'tap the screen at coordinates (x,y)' event continuously in the background of another app in iOS. Think of a 'Cookie Clicker' cheat. I am currently assisting my friends in his app, and my job is to attempt…

planetastro
- 1,716
- 2
- 15
- 28
6
votes
2 answers
How to mock location service using KIF-framework
I use KIF framework (http://github.com/kif-framework/KIF) for UI Tests
and I need to mock location service.
The problem is location service starts BEFORE KIF method -beforeAll invoked.
So it's too late to mock.
Any suggestions would be appreciated.

n0_quarter
- 538
- 1
- 10
- 23
6
votes
1 answer
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?
Note: I added kif to the title just for search indexing puposes, considering that most of the answer turned out to discuss it
I'm looking for something like selenium for iOS, basically a test-automation/unit test framework that can run a certain UI…

abbood
- 23,101
- 16
- 132
- 246
6
votes
3 answers
Get UIVIew from accessibilityLabel for KIF automation
I am using the KIF Framework for functional UI testing. Let's say I am on a current iPad screen where many views (labels, buttons, textfields etc) have unique accessibility labels assigned. If I have the accessibilityLabel string handy, can I get a…

Paresh Masani
- 7,474
- 12
- 73
- 139
5
votes
1 answer
KIF: is there a way to get all the accessibility labels in a current screen?
I am using KIF for testing an iOS app, and I would like to know if there is a way to get all the accessibility labels in a current screen. I would like to get an array of strings where each element is the accessibility labels that this screen has.

lmiguelvargasf
- 63,191
- 45
- 217
- 228
5
votes
2 answers
Can I run a KIF test that puts my app in the background?
I'm working on developing tests using KIF for a project. I want to know if it's possible to have KIF simulate a tap on the home button? Is it also possible to simulate other actions at that point, such as bringing up the command center or the…

Luke Solomon
- 144
- 6
5
votes
2 answers
Can the software Keyboard toggle on the iOS Simulator always be toggled on?
I'm testing an app using KIF and every time the test starts I have to manually toggle the software keyboard on and short of using a script to make it turn on is there a way to turn it on by default when the simulator opens?

Zach Becker
- 71
- 4