0

Im am trying to post a notification from my project and then add an observer in my UITestCase file. But it doesn't get called.

Any alternative ?

Thanks

Saurabh Bisht
  • 389
  • 1
  • 13
  • What about https://stackoverflow.com/questions/28292685/how-to-write-unit-test-for-nsnotification – Geru Nov 25 '18 at 09:03
  • Hi, basically what I require is if there is an error in my response I will notify the uitest case and the observer there will call a method in uitestcase file with code --- XCTFail("Error: \(notification.userInfo?["resp"])") – Saurabh Bisht Nov 25 '18 at 09:16

0 Answers0