How to handle alert that appears anytime through out the app with objective C Unit testing in iOS? -
i saw several questions in here alert handling described in javascript. need solution in objective c. so, know handle alert appears screen in definite time. how handle alerts indefinite? means, if alert appears anytime in application catch alert?
before can catch alerts need able trigger them testing purposes in reliable way. @ criteria drives alert , figure out how simulate in testing situation. once there, can @ how verify contents of alert , appearing correctly.
if not using it, suggest looking how ocmock can assist. when comes unit testing objective-c code, find invaluable in allowing me hack things , create varying situations need. note though, ocmock not work swift because of way swift code executes. if looking @ swift, testing techniques have change radically.
Comments
Post a Comment