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
5
votes
1 answer
KIF 2.0 access element in UIWebview
Can somebody tell me how to access an input field in a uiwebview in KIF 2.0? Unfortunately I can't find anything on KIF Framework Github, neither in the documentation nor in the examples. I tried to access the input field via its id but this doesn't…

palme
- 2,499
- 2
- 21
- 38
5
votes
4 answers
Linker error comes while running as well as testing the Xcode workspace after updating KIF framework via cocoapods
I have an Xcode workspace in which I have updated to KIF 2.0(pod update via terminal & pod 'KIF' in the podfile) after that I have configured the workspace as per the instructions provided in…

Hari
- 123
- 1
- 12
4
votes
1 answer
How to acknowledge system alerts on a device with KIF testing framework?
I found out how to acknowledge system alerts while on a simulator from this post using this line of code:
self.viewTester.acknowledgeSystemAlert()
Unfortunately, the KIF code has #if TARGET_IPHONE_SIMULATOR wrapped around it, so it won't work on a…

Zeek Aran
- 523
- 4
- 18
4
votes
1 answer
How to run KIF (xctest) from command line when I have just the .app and .xctest folder?
I am newbie to ios world and am figuring out how to run the tests from command line.
I have the APP.app and TEST.xctest (basically KIF tests).
I am not able to figure out how to run these tests on the app (on simulator and device).
I tried using…

ap1234
- 489
- 2
- 6
- 15
4
votes
1 answer
KIF test bundle XCTest.dylib not loading when using Swift
I'm trying to add new tests in Swift to an existing KIF test bundle currently written in Objective C.
Set up:
Xcode 6.4
cocoapods 0.37.2
Podfile uses latest version of KIF
I've set up the Swift bridging header, importing KIF and the other…

John Martin
- 1,502
- 1
- 14
- 25
4
votes
1 answer
Xcode 6.3.2 runs all the tests instead of just the one I selected (KIF)
This question is similar to: XCode run all the tests (even the disabled ones)
But different in that I'm not disabling any tests. I'm just pressing the single test icon next to a test function or test case:
A friend of mine is running KIF in a Swift…

Albert Bori
- 9,832
- 10
- 51
- 78
4
votes
1 answer
Running a single KIWI spec with xctool
Has anyone been able to successfully pass the KW_SPEC variable to xctool. I'm trying to run a single KIWI spec by using https://github.com/kiwi-bdd/Kiwi/wiki/Kiwi-FAQ#q-how-do-i-run-a-single-spec-describecontextit.
I can run all the tests…

Mo Jaimangal
- 63
- 6
4
votes
1 answer
Pressing back button (backBarButtonItem) in KIF?
Does KIF provide any special support for tapping back buttons or will I have to do something like this?
// in parent ViewController
self.navigationItem.backBarButtonItem.isAccessibilityElement =…

Drux
- 11,992
- 13
- 66
- 116
4
votes
2 answers
How to check/test value of a UISwitch using KIF?
I've been able to find the following KIF method for setting the value of a UISwitch:
tester.setOn(false, forSwitchWithAccessibilityLabel: "Enable Feature")
However, I have been unable to figure out how to retrieve the value of a UISwitch, using…

Albert Bori
- 9,832
- 10
- 51
- 78
4
votes
0 answers
Unit Testing Bluetooth SDK on iOS Devices
I'm working on an SDK which does Bluetooth operations with the peripheral device.
I wrote some Unit tests for my SDK using XCTest framework. Since my API's use Bluetooth I can't test on an simulator also XCTest doesn't run on the tests on the…

NSNerd
- 141
- 1
- 8
4
votes
3 answers
Is there a way to disable all animations on ios?
Callbacks should still be called. I want to use it for KIF testing. The purpose is reducing the test time.

Taha Selim Bebek
- 45
- 1
- 8
- 16
3
votes
2 answers
Bypass or Mock Apple Permission Dialogs during Testing
I'm having trouble getting my test suite to pass in full when it runs on CircleCI. Everything will pass locally when run in the suite and when run individually. I eventually came across the issue that was causing problems, the Apple…

Bill Burgess
- 14,054
- 6
- 49
- 86
3
votes
2 answers
How to reset patched components by TyphoonPatcher
I have problem with TyphoonPatcher used in Integration Tests. I'm using KIF for integration tests. Sometimes i need to stub http client or class responsible for saving data in database. The easiest way is use TyphoonPatcher.
Lets say that i need…

user3292998
- 209
- 1
- 8
3
votes
2 answers
How do I turn off the Accessibility Inspector in the iOS 9 simulator?
The accessibility inspector is turned on by my KIF tests (apparently it's necessary for KIF to work.) Problem is, its window occludes controls some subsequent UI tests need to tap on and those tests fail.
How can I turn the Accessibility Inspector…

Robert Atkins
- 23,528
- 15
- 68
- 97
3
votes
3 answers
KIF cannot tap UIButton inside UITableViewCell if it's its UITableView's only one
I am having trouble automating tapping on an UIButton that is embedded inside a UITableViewCell if that cell is the table's only one. This is in the context of UI automation with KIF.
Here my relavant call:
[tester tapViewWithAccessibilityLabel:…

Drux
- 11,992
- 13
- 66
- 116