Solved

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

Posted on 2013-11-16
7
300 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
Comment Utility
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
Comment Utility
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
Comment Utility
hey guys.

I have tried Coded UI as well as TDD.

What about Behavior-Driven Development?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:sivakugan
Comment Utility
looking for more suggestions.
0
 
LVL 14

Expert Comment

by:binaryevo
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Specifc warble sound cancellation DIY - Home Brew 9 38
.Net application crashing 6 19
Long URL in SMS 6 22
XML & .net 5 16
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

11 Experts available now in Live!

Get 1:1 Help Now