Questions tagged [kif]

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.

139 questions
0
votes
1 answer

How to automate a UIPickerView to select particular item using KIF?

I have a UIPickerView showing some numbers [4,5,6,7,8]. I want to automate picker view to select a number 6. For that i'm trying by using following code. tester().tapViewWithAccessibilityLabel("height field")// picker view is input view for the text…
Ravi
  • 2,441
  • 1
  • 11
  • 30
0
votes
1 answer

Why does running UIAutomation methods from KIF result in: "UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings"?

Using: iOS 8.4, XCode 6.4, KIF 3.2.1 (https://github.com/kif-framework/KIF) I encounter the following problem on a real device: While running a KIF test case, calling the method, "deactivateAppForDuration" results in the following output seen in the…
Michael Lupo
  • 326
  • 3
  • 17
0
votes
2 answers

What is the Accessibility Label of Camera Snap Picture Button?

As the title says, I am wondering what the accessibility label of the camera snap button is (as I need it for my integration tests with KIF), as depicted as the white button at the bottom of this image: I tried looking up how to enable the…
Stunner
  • 12,025
  • 12
  • 86
  • 145
0
votes
1 answer

KIF Tapping Disabled Button

I am using KIF to test my UI. I have a (very basic) login screen and the button on the screen only becomes enabled after text has been entered into both the email and password field. I want to write a KIF test using [tester] to test whether or not…
0
votes
1 answer

Command-Line Testing Using Cocoa Touch

I have developed several test for an application, and I would like to run this application using the command-line. I have read this tutorial; however, I haven't been able to run them. When executing the following command: xcodebuild test -project…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
0
votes
1 answer

Swift UI Testing with Kif

I am working on UI testing in Xcode using Swift and the Kif framework. My question is about AccessibilityLabels. The accessibility labels are dynamic and change, is there a way to use different labels that are static to identify buttons and other…
Crimson_Hawk
  • 133
  • 1
  • 2
  • 10
0
votes
1 answer

How can we check the UILabel value in KIF

I have a UILabel with value "text". Now in KIF I tried to check its value by using: (UIView *)waitForViewWithAccessibilityLabel:(NSString *)label value:(NSString *)value traits:(UIAccessibilityTraits)traits But it failed saying: The step timed…
0
votes
1 answer

Can we create instance of our model class in KIF test class

In KIF testing framework, in KIF acceptance class, can we create an instance of our controller class or model class to get the functions and views from that specific class? Or is the accessibility label the only way to identify the view? And if the…
0
votes
1 answer

How to test for an empty table using KIF?

I'm using the KIF test framework. Currently, I'm able to detect that a table is not empty by the following line: tester().waitForCellAtIndexPath(NSIndexPath(forRow: 0, inSection: 0), inTableViewWithAccessibilityIdentifier: "My Table") However,…
Albert Bori
  • 9,832
  • 10
  • 51
  • 78
0
votes
1 answer

Error "library not found for -lPods-MyProjectTests-KIF" when installing KIF in existing workspace

I run into this error when adding KIF to an existing Xcode 6 workspace: ld: library not found for -lPods-MyProjectTests-KIF What may be special about my situation that MyProject.xcworkspace/ resides in the parent directory of MyProject.xcproject/…
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
1 answer

KIF (Keep It Functional) distinguish between iPhone and iPad

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…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
0
votes
1 answer

Using OCMock with Facebook

I am new to the concepts of UI Automation Testing so OCMock is decently foreign for me. I was having trouble approaching how I would mock a login. I'm also using the KIF framework which allows me to access things in a view with accessibility labels.…
user2977578
  • 413
  • 5
  • 19
0
votes
2 answers

KIF: Can KIF access the filesystem for an iOS app under test?

Given an iOS 8 app that downloads some files for the purpose of caching them (i.e for offline use), is there a way that KIF can access the app's underlying file system to verify the files? I anticipate that someone will suggest that the app do this…
0
votes
1 answer

accessibility label storekit user input

Is there a way to assign, or get, the accessibility label of the password textfield input that apple displays after a user makes an inapp purchase? I'm trying to automate my tests, and I cannot test my purchases without inputting my test's account…
juangdelvalle
  • 798
  • 6
  • 8
0
votes
1 answer

Swift class test weird behaviour

I'm using KIF 3.0, JKExpandTableView XCode 6.1.1 and Swift. I want to get the JKExpandTableView using waitForTappableViewWithAccessibilityLabel of KIF tester object. In the image it cast the UIView to UITableView because if I cast it to…
Daniel Gomez Rico
  • 15,026
  • 20
  • 92
  • 162