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
0 answers

How to write end to end integration tests using KIF-Framework?

I am writing end to end integration tests using KIF-framework. I have to fetch data from an API and displays it in UITableView. I have configured WireMock to mock an API. I am invoking MockAPIClient in runtime using DI library however it is not…
0
votes
0 answers

How can I delete the app between test cases in a Unit test target?

I'm using KIF to do some testing and it uses a unit test target. Since I can't access XCUIApplication , I'm not able to reproduce an app delete which I would need to reset the app state to run the following test case (so between tests). Furthermore,…
0
votes
0 answers

How to mock locations for UI Tests in Swift with KIF?

I'm writing UI tests with KIF and I want to test clicking on a GPS button and autofilling with text. My issue is that I don't know how to get a faked location. Preferably, I would like to do this without changing my actual (non-testing) code. Is…
0
votes
1 answer

KIF alternatives for osx

I use KIF to perform iOS automated UI tests. Unfortunately it seems it is not intended to work in OSX. Is there any alternative for it? Update: I know there is a built-in UITest framework named XCTest for Apple applications, But I need a stronger…
Hassan Shahbazi
  • 1,543
  • 9
  • 26
0
votes
1 answer

Cocoapods ld: framework not found KIF - ONLY when testing on a real device

As the title says I get the following error: Showing Recent Messages ld: framework not found KIF error: cannot parse the debug map for…
Ohad Navon
  • 1,693
  • 1
  • 14
  • 19
0
votes
1 answer

iOS KIF test failure

I am trying to learn automated UI testing with KIF in sample app. My simple test is failing continuously. My code : #import #import @interface AutomatedUITestsSampleUITests : KIFTestCase @end @implementation…
NotABot
  • 516
  • 1
  • 8
  • 27
0
votes
1 answer

Fails a simple test case using KIF

I try to use KIF in swift project. I run test case on iPhone simulator. Probably I did not set up correctly KIF because use it first time. I used this manual Test fails in this simple code func testSelectingOrganizerRole() { …
Konstantin.Efimenko
  • 1,242
  • 1
  • 14
  • 38
0
votes
1 answer

How to find the UI view of this system alert?

Xcode 8.2 KIF testing I want to automate a drawing app which require permission to save photo to the library. This is the alert I want to accept With KIF I gave [tester tapViewWithAccessibilityLabel:@"OK"]; But it says, failed to find…
0
votes
1 answer

KIF can not force app to background

I have a problem when app push to background and resume app. When app push to background then it can not force to ground to resume my app Here is my code: - (void)testResumingEditProfile { self.methodName = NSStringFromSelector(_cmd); …
Cuong Nguyen
  • 980
  • 2
  • 9
  • 29
0
votes
0 answers

KIF not detecting changes in UINavigationController stack

I'm trying to get started writing UI tests using KIF because I want to make sure our navigation flow works. It seems that KIF is not detecting changes in the UINavigationController. I have one view controller in a UINavigationController with a…
0
votes
1 answer

How to create Page objects with KIF?

i have problem with classes that extends KIFTestActor, i want to have PageObject per screen, but seems that these objects cannot be initialized normally. "tester" is a macro that register handler for exceptions, but if i want to do it manually, how…
user3292998
  • 209
  • 1
  • 8
0
votes
0 answers

Relaying on typhoon in tests with "White-box" approach

I've got following solution for white-box tests: Typhoon - DI framework KIF - tool for interacting with UI To test every single important edge case, i sometimes have to "stub" response from backend. I made it by patching component ( here is full…
user3292998
  • 209
  • 1
  • 8
0
votes
1 answer

KIF 3.0 (XCTest) tests from command line

My KIF tests are running fine from within the xcode however, when I run those from command line with following command, KIF tests are failing however all other unit tests (XCTest) are passing. My command below, xcodebuild debug -workspace…
naveed148
  • 548
  • 5
  • 8
0
votes
2 answers

KIF integration with Xcode using Cocoapods

I am trying to integrate KIF with Xcode using cocoapods. When i try to build the workspace, i face the following issue. Its searching for the Pods-Framework shell script under the applications Xcode project but the shell script is present under…
Abhinaya
  • 1
  • 2
0
votes
0 answers

Why am i not able to use KIF Methods from my own viewController?

In ViewController.h i have used : [tester tapScreenAtPoint:CGPointMake(self.view.bounds.size.width/2, self.view.bounds.size.width/2)]; No Error at all . I have included KIF using pod . The Log i receive is : dyld: Library not loaded:…
Bharat Jain
  • 177
  • 1
  • 16