Solved

How to automate the Testing for the applications developed in .Net Platform?

Posted on 2013-11-16
7
305 Views
Last Modified: 2013-11-24
Hi,

We have a Desktop application that developed in .Net platform. That Desktop application has many market variants. It uses MS. SQL Server and SQLight as a back-end. I want to automate the testing for the Desktop Application. I really do not want to do the Coded UI Testing.
I want to automate the Testing in a way that can improve and develop my coding skills.
Please provide the suggestion and ideas according to this.
0
Comment
Question by:sivakugan
7 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39654419
It sounds like you need to understand how the other parts of the Unit Testing Framework work.

Walkthrough: Creating and Running Unit Tests for Managed Code
http://msdn.microsoft.com/en-us/library/ms182532.aspx
0
 
LVL 14

Accepted Solution

by:
binaryevo earned 500 total points
ID: 39654765
Coded unit tests will GREATLY enhance your coding skills.  How I'm sure is the first question that comes to mind.  The answers are simple:  you will be exposed to so much more from a coding and architectural perspective.  Let me illustrate:  when writing a test, you often times figure out your code is doing something different than you initially thought.  If you discover that your code is behaving a little differently, what's to say some condition that you didn't think about hits that code and makes it blow up (which makes complete sense since you thought it worked differently anyways)?  So unit tests allow you to intimately know your product at a whole new level.  Test driven development is an excellent way to both round out your skill set and help reduce the amount of bugs.  I'm a huge fan of TDD and think that you learning about it is a great first step in conjunction with thelearnedone's provided link.  Some of the cool things you can learn about with unit tests include: mocking, fakes, testable code, using lots of interfaces and a whole bunch more.  Below find some things that I would use to do my testing:

MSTest or NUnit
Moq or rhinomock
FakeO - if it makes sense (I just use Moq instead usually)

Hope this helps
0
 
LVL 5

Expert Comment

by:allanau20
ID: 39657835
hey guys.

I have tried Coded UI as well as TDD.

What about Behavior-Driven Development?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:sivakugan
ID: 39667901
looking for more suggestions.
0
 
LVL 14

Expert Comment

by:binaryevo
ID: 39668643
The only automated testing that you are describing have done are part of the load testing that Microsoft includes in 2k12.  There is a web performance recorded test that allows you to record every test scenario you wish and then run it via a load test to determine load and that sort of thing.  I'm sure windows load test have something similar so I would poke around in there and see of that meets your needs.  With that being said I think that all the options that all the experts have listed here are a better solution than doing a recorded test simply because you can and will dissect your code and be very knowledgeable of what it does from all aspects.  

Hope this helps
0
 

Author Comment

by:sivakugan
ID: 39670629
Thanks for the suggestion binaryevo . Its great to know There is a web performance recorded test.  I am looking forward some links about this. Thanks
0
 
LVL 14

Expert Comment

by:binaryevo
ID: 39670706
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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