kif framework - Is it possible to catch a KIF timeout? -
i have case want wait view appear, if doesn't appear want log it, without kif timing out , raising exception. tried using @try/@catch block, didn't seem grab it. research suggests may limitation of kif, wanted verify. don't want modify failwithexception 1 case, since every other time want test fail.
example of tried:
@try { [tester waitforviewwithaccessibilitylabel:@"foo"]; } @catch (nsexception *exception) { [testlogger logtestmethodfailed:[nsstring stringwithformat:@"%@ on %@", self.currenttest, [[uidevice currentdevice] name]] withexceptionmessage:@"logout failed! didn't find 'foo' element. may acceptable if test not need log out."]; } kif-framework kif
No comments:
Post a Comment