Solved

i have got a new functionality in my code. How to test?

Posted on 2011-03-08
6
461 Views
Last Modified: 2013-12-13
Hi there;

i have got a new functionality in my code written in C# which is a huge project. How to test?
Is there any formal ways/techniques/templates for such testing.
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:himanshut
ID: 35075142
U can do either manually or using nUnit testing depending on the functionality you have

Manually would be easy, if that's a huge project:

Just add breakpoint where the new functionality starts and Breakpoint at the very last line of this new functionality. step into code by pressing f11 to see step by step execution and  values your variables maybe fetching.
there after you can see if the results match the web-display results.

Hope that makes sense!

Cheers!
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 35075169
>>nUnit
Is it supported by C#, VS 2010? How? An exampel?


>>web-display results.
it's a standalone.

Kind regards.
0
 
LVL 10

Accepted Solution

by:
himanshut earned 500 total points
ID: 35075203
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 35075729
"U can do either manually or using nUnit testing depending on the functionality you have..."

These are two different types of questions. NUnit is used for unit tests, i.e. testing of individual methods/properties.

By the way, nUnit tests can be written in C# VS does not support them, I believe, they use different framework. However you may write and run unit tests in a NUnit UI application. And you may attach test code to a debugger in VS (just attach a nUnit UI process to VS)

Hand testing will test functionality of your application. This is most used testing. How to test - different story. You need to follow some use cases. You just follow some sequence to enter, for example, user's data to a form etc. Also you need to test "faulty" scenarios, for example if a user enters 1111 year as his birthday, or non valid card number etc, or enters alphabet characters into a number field. In this case you test that the application does not crash but respond gracefully with appropriate messages etc.

There are tools for automated UI testing but even you caqn find (or buy ) some you need to write tests for these tools.

Se http://www.softwaretestingnet.com/2010/04/types-of-testing-projects-available-in.html

Types of testing:
http://www.softwaretestinghelp.com/types-of-software-testing/

Example of automated testing
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 35076987
followed the links:
http://tsells.wordpress.com/2010/02/07/how-to-create-nunit-test-class-for-visual-studio/
http://www.dotnetfunda.com/articles/article707-5-simple-steps-to-execute-unit-testing-using-nunit-.aspx

to clarify:

I downloaded nunit
http://nunit.org/index.php?p=download

I followed the explanation in the links, creating the template, then creating test case but failed to run the test as follows in Nunit downloaded above. Simply, it says unknown framework, even I change it to v4.

Kind regards.
fail.jpg
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 35310909
ah, could you help me?

kind regards.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

759 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