I have an iphone application. Should i do unit testing or UI tesitng or is both necessary.
If UI testing is sufficient to test the models I will use Instruments.
If unit testing I'm planning to use OC Unit test. I'm new to it. I went through some tutorials but all seem to be very vague. I have few doubts in that.
My front screen is a login page that has username and password. How to verify if the user has entered both the textfields or none?? Im using interface builder to create the screen. My IBAction method [ -(void)login:(id) sender] verifies the username and password. Now how to use this method and perform unit testing for various scenarios? What should be passed in place of (id) sender while testing?
After succesful login the page navigates to another view which has table view. What unit testing to be done for tableview?
Thanks in advance.