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

  • Home
  • SEARCH
  • 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 3662532
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:25:37+00:00 2026-05-19T01:25:37+00:00

hi is there any tutorial or Document available for GUI Testing using GHunit. and

  • 0

hi is there any tutorial or Document available for GUI Testing using GHunit.
and in one case for server interaction . i want to write test case by passing some false as well as right Input value to server and then check server response on basic of input . i have this functionality in main project . so any idea how to write test case for server interaction

  • 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-19T01:25:38+00:00Added an answer on May 19, 2026 at 1:25 am

    Testing asynchronous behavior in a unit testing framework is going to be difficult because at that point you’re writing an integration test rather than a unit test. That’s not to say that these components cannot be tested but rather than a unit test should not try to test them end to end.

    For UI elements you can test that they are created, you can test that they contain the values you expect, you can test that when you interact with them the correct action occurs (ie an IBAction method is called, the expected view controller is pushed onto the current navigation controller) but you should not need to step through asynchronous actions like animations or view controller transitions in a single test.

    For network requests you can test that a class sends the data you expect it to send and you can separately test that the class takes appropriate action when different types of data are returned. In both cases you can replace the actual network connection with a mock or fake instead of actually connecting to the remote server. Additionally you shouldn’t need to test both sending and receiving data in the same test.

    Your tests should be testing your code, not that UIKit can animate views or that NSURLConnection can send and receive data so design your tests to actually test your logic and stub out your tested code’s external dependencies.

    That said GHUnit does provide GHAsyncTestCase which allows you to write tests which will wait for certain types of asynchronous behavior.

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

Sidebar

Related Questions

Is there any good article, tutorial or similar references on interpreting the Execution Plan
Is there any way to check whether a file is locked without using a
Is there any tutorial for debugging applications/ running profiler in eclipse? Please let me
Are there any documents/tutorials on how to clip or cut a large image so
Are there any decent tutorials for setting up F# in Visual Studio 2005? Everything
are there any good tutorials online for learning about the c# 2.0 language feature
Does anyone know of any good tutorials on ADO.NET Entity Framework? There are a
Is there any free or commercial component written in .NET (no COM interop) that
Is there any query which can return me the number of revisions made to
Is there any efficiency difference in an explicit vs implicit inner join? For example:

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.