Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7434149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:47:15+00:00 2026-05-29T09:47:15+00:00

I have an iphone application. Should i do unit testing or UI tesitng or

  • 0

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.

  1. 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?

  2. After succesful login the page navigates to another view which has table view. What unit testing to be done for tableview?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:47:16+00:00Added an answer on May 29, 2026 at 9:47 am

    For examples have a look at this set of videos on Unit Testing With Xcode.

    The trouble you are facing is one of getting responses from a server when you do not have a connection or a response.

    The solution is to use mocks, such as OCMock to pretend you have those responses, or to call the methods that would have been called by responses directly.

    As for how much testing – do as much as you can. Test it yourself and get others to test it for you because they won’t be using it the same way as you. Automate testing where you can, test the app with a script that runs you through the functionality of your app. Test it randomly, doing the wrong thing to make sure that your app fails gracefully.

    There’s no point asking us if you have performed testing, that’s for you to decide. But think about the response the user of your app will give you if you ask – “Have I tested enough?”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PNG picture which I should use in my iPhone application, but
I have a iphone application in which I use nsecoding for saving my objects.
I have mp3 files stored on the iPhone and I my application should to
From what i've seen in iPhone applications, an application should only have one tab
I have followed the instructions Apple publishes for unit testing applications on iPhone and
I have developed an iPhone application which should support iOS4 and iOS5 based iPhone/iPad.
I have an iPhone application with a settings.bundle that handles various settings for my
I have an iphone application which has about 4 tabs. How do I force
I have an iPhone application that adds new contacts via the Address Book Framework.
I have an iPhone application that reads RSS feeds from a YouTube channel. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.