Unit Test Tool learning in. net

Source: Internet
Author: User
Tags xml xpath

1. nunit System
There are nunit, nunitforms, nunitasp
Nunit is well-known, but it has some limitations in actual writing and is not compatible with vs, so there are the following two
Nunitforms is a winform extension of nunit. It is a Windows Forms Application.ProgramProvides unit testing and stress testing, which can be easily used for automated testing for your Windows Forms class
Nunitasp is the brother of nunitforms. It is also an nunit extension used to automatically test ASP. NET pages. Although nunitasp can complete some asp. NET page automation test, but when writing test cases, if there are many elements on the interface, it will be very troublesome to write, this is why nunitasp is always in red.
2. watin
It can be said that it was created to test Asp.net and is recommended
3. testdriven. net
It is to integrate open-source testing frameworks and.

4. Selenium

Although this was a Java Web Unit testing tool at the beginning, it can be tested now. net Asp.net, but you must first open a service that requires Java's JRE support. For more information, see my other article.Article: Selenium study notes. This tool is mainly used in combination with the nunit test framework (nunit is not required). It also involves XML XPath syntax and a special window to display operation records. It is very considerate, it is my main testing tool at this stage.

Note:

1. watin (v1.3) remembers that the default browser of the system is ie when the new IE Object is used. Version 1.3 only supports IE and cannot be other IE core browsers, such as Maxthon, greenbrowse, windows of the world, etc. Otherwise, the com exception will be reported, and sometimes the exception will be reported when the IE test is not relevant.

2. Always remember to activate services when using selenium! (N times of reminder !)

reference:
. net open source project introduction and resource recommendation: unit test
http://dotnet.cnblogs.com/page/41728/
the first use of nunitasp
http://www.cnblogs.com/dahuzizyd/archive/2004/07/16/24917.aspx
automated Web Testing (1) using watin
http://www.cnblogs.com/dixin/archive/2009/02/05/Automated-web-testing-1-Using-WatiN.html
Asp. NET page for unit testing
http://q.yesky.com/group/review-17602517.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.