Automated Testing

Posted on 2007-07-24
Last Modified: 2010-04-15
Hi everyone,

I am currently looking into setting up something to do automated testing.

Some of the ideas that have been suggested so far are as follows:

1. Use .Net Remoting / asynchronous call backs

2. Possibly flow would be this

TESTApp ----> Simulator ----->needed applications

A series of tests would be in que. They would be broken down so that they can be used with other tests fo ease of coding.

For example...

TEST MAIN SCREEN:open the main screen
TEST SECOND SCREEN: Open the Second Screen
TEST MOVE ON SECOND SCREEN: Perform a test on Screen two
TEST THIRD SCREEN: Open the Third Screen

First Senario:

Second Senario

3. Only want to re-compile with Interface changes only.

4. Want it to be easily adaptable to adding newer tests...with minimal impact.

5. This will be on our server...communicating with other PC in the same building. Eventually multiple users will be able to access this via the web as well.

Questions for everyone:

1. Is the asynchronous call backs the way to go?
2. Is there another way that I should look into using? Any links that will help me for the best direction on the architechture design.
Question by:NewMom2Brandon
    LVL 9

    Expert Comment

    Are you trying to test a web app or a Windows app?
    LVL 44

    Expert Comment

    TESTING OF WHAT???????  THe computer?  The network, the internet, or the weather?  How can you expect specific help if you don't say what you are testing?
    LVL 2

    Author Comment

    Sorry...I forgot to put that in.

    Testing of a Windows App, Network communications.
    LVL 9

    Accepted Solution

    The best way to remove the network dependency is to mock the network communications otherwise the testing becomes too fragile and slow. You are testing the Windows app not the network service so it makes sense to only test the Windows app and not the service too. If you don't know much about mocking you might want to read the wikipedia article ( From there you would have to choose a mocking framework, the various ones for C# are listed in the external links on that page. Take a look at them and have a look at the samples; Rhino Mocks is a very popular choice.

    For testing the Windows app you can do functional tests against the user interface by clicking buttons, typing text, etc. However, this is slow and also fragile. Most apps have a certain about of business logic that can be separated from the user interface and can be tested separately with unit tests. Most companies don't test user interfaces automatically.

    Let me know what you think of my suggestions.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now