Testing Automation Tools For .NET [closed]

2019-01-23 07:37发布

问题:

I'm trying to find some useful Open Source Testing Automation Tools for use with the .NET framework. I've done a fair bit of research, but unfortunately, most of the tools I have found focus on testing web applications only.

There are 3 types of programs that we run in order to make our software do what it needs to do: We program a service in VB.NET to collect data, we have an AJAX/JavaScript + VB/ASP.NET web application to view the data, and a VB.NET Form-based GUI to edit the data.

I understand that the chances finding a tool that would test all three is slim to nil, but I was not expecting a single tool to cover all of them.

Since the service we run is the most important, I was hoping the Stack Overflow community might have some insight as to what testing automation tools would be particularly useful for VB.NET services. Any information with respect to the GUI or Web Application sides would be a great help as well.

回答1:

You can test your service with any unit test framework like NUnit, MbUnit, MSTest, ... .

Your web application like you probably know there many different applications like Watir, Watin, Selenium, SWAT, Telerik WebUITest Studio.

I'm not familiar with Windows form testing tool; however, I know that Telerik is comming up with one.



回答2:

TestComplete.

You can definitely use capture-replay to capture and run the test script. But I would suggest that you must at least manually edit your scripts to make them

  1. more readable
  2. easier to maintain.

The good thing about TestComplete is that it is able to look into your form's properties, capture those properties so that you can refer to those properties by their name, not by just screen coordinates.

Here's a similar question.



回答3:

There are a number of good tools for testing.

Business Objects - test with NUnit,mbUnit,MSTest

Web testing - Selenium and NUnit or WatiN

Desktop GUI - not sure but you could try pyWinAuto - its a python application but you could use IronPython which is the .NET implementation



回答4:

Using the Apis I developed for https://github.com/o2platform/FluentSharp I was able to write tests that cover the 3 scenarios that you mention

See these tests https://github.com/TeamMentor/Dev/tree/master/Source_Code/TM_UnitTests/TeamMentor.UnitTests.QA for a significant number of real-world tests written that way

See also disable IE visibility while using WatiN for an example of an Web Automation test



回答5:

For load testing you cant beat Open STA



回答6:

For unit, integrate and static testing you can using Parasoft .