Hello,
We are using the API framework of Telerik TestStudio for iOS (http://docs.telerik.com/teststudio/mobile-testing/api-framework/using-the-api.aspx)
to create automated tests for iOS using OCUnit and Objective C.
We are having problems with the built-in iOS alert windows after migrating our tests from iOS 6.1 to iOS 7.
We can no longer find the alerts and any UI controls in them (labels,buttons, etc) with your libraries.
This is probably due to a change that Apple made in the UIAlertView behavior in iOS 7 described in the accepted answer in this StackOverflow article http://stackoverflow.com/questions/18702565/find-uialertview-without-having-reference-to-it-ios-7/19275311#19275311
We tried the hack/workaround approach suggested in the second answer from the same article and the following snippet seems to
find the iOS alert fine:
Class UIAlertManager = objc_getClass("_UIAlertManager");
UIAlertView *topMostAlert = [UIAlertManager performSelector:@selector(topMostAlert)];
Unfortunately our attempts to close the actual alert using something
like this…
[topMostAlert dismissWithClickedButtonIndex:0 animated:YES];
… do not do anything.
Do you have a solution for handling alert windows under iOS7 with your API framework? Unfortunately those alerts are widely used in the majority of the iOS applications.
Also what happened to the Telerik TestStudio for iOS product itself? Although we use only the API library for automation, we can no longer find the app in the app store. Also the old URL your site (http://www.telerik.com/automated-testing-tools/ios-testing/ios-application-testing.aspx)
now seems to be missing.
Regards,
Vladimir
We are using the API framework of Telerik TestStudio for iOS (http://docs.telerik.com/teststudio/mobile-testing/api-framework/using-the-api.aspx)
to create automated tests for iOS using OCUnit and Objective C.
We are having problems with the built-in iOS alert windows after migrating our tests from iOS 6.1 to iOS 7.
We can no longer find the alerts and any UI controls in them (labels,buttons, etc) with your libraries.
This is probably due to a change that Apple made in the UIAlertView behavior in iOS 7 described in the accepted answer in this StackOverflow article http://stackoverflow.com/questions/18702565/find-uialertview-without-having-reference-to-it-ios-7/19275311#19275311
We tried the hack/workaround approach suggested in the second answer from the same article and the following snippet seems to
find the iOS alert fine:
Class UIAlertManager = objc_getClass("_UIAlertManager");
UIAlertView *topMostAlert = [UIAlertManager performSelector:@selector(topMostAlert)];
Unfortunately our attempts to close the actual alert using something
like this…
[topMostAlert dismissWithClickedButtonIndex:0 animated:YES];
… do not do anything.
Do you have a solution for handling alert windows under iOS7 with your API framework? Unfortunately those alerts are widely used in the majority of the iOS applications.
Also what happened to the Telerik TestStudio for iOS product itself? Although we use only the API library for automation, we can no longer find the app in the app store. Also the old URL your site (http://www.telerik.com/automated-testing-tools/ios-testing/ios-application-testing.aspx)
now seems to be missing.
Regards,
Vladimir