Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate .webtest files without using Visual Studio

We have business users that we'd like to get involved writing webtests for our project, but purchasing full Visual Studio licenses just for this purpose seems like overkill.

Are there any open source or third-party tools that can be used to produce webtests that can be read by Visual Studio?

I would prefer a tool that integrates into IE or Firefox and can generate tests as simply as the point-and-click method that the Visual Studio integration provides.

like image 280
The Matt Avatar asked Jun 24 '09 20:06

The Matt


People also ask

How do you create a Webtest file?

On the start window, choose Create a new project. On the Create a new project page, type web test into the search box, and then select the Web Performance and Load Test Project [Deprecated] template for C#. Choose Next. Enter a name for the project if you don't want to use the default name, and then choose Create.

How do you do a load test in Visual Studio?

To start the New Load Test Wizard In Solution Explorer, open the shortcut menu for the Bank solution node, choose Add, and then choose New Project. The Add New Project dialog box displays. In the Add New Project dialog box, expand Visual C# and choose Test.

How do I test a webservice in Visual Studio?

Open Visual Studio. File -> New Project -> Test -> Web Performance and Load Test Project.

How do I test an Asmx Web service?

In the web test project, open WebTest1. webtest, which opens the Web Performance Test Editor. In the test editor, right-click the web performance test and select Add Web Service Request. In the Url property of the new request, type the name of the web service, such as https://localhost:44318/WebService1.asmx.


3 Answers

While I would consider Selenium and Watin/Watir as valuable alternatives, they are preety robust testing solutions, I don't think neither would allow you to record .webtests as done by VisualStudio 2008 out of the box. I believe they record unit tests which is fine if that is what you want. The only tool that I know that does exactly what you are asking for is Fiddler.

http://www.fiddler2.com/fiddler2/

Roberto.-

like image 115
Roberto Hernandez Avatar answered Oct 04 '22 06:10

Roberto Hernandez


You could check out Selenium, at http://seleniumhq.org/.

"Maybe the most complete package of the bunch and supports testing in IE, FireFox and Safari. Your unit tests are written in java, so you just need to learn the API. They also have interesting server options where you can run your tests across servers. You can even record tests using a FireFox add-on." (source)

You can later run the tests created with Firefox as unit tests in C#, for example.

like image 37
Andrea Avatar answered Oct 04 '22 06:10

Andrea


You can use something like selenium, watir, webrat, etc. Here is an article from Scott Hanselman that describes integrating watir into an NUnit assertion:

http://www.hanselman.com/blog/IntegratingRubyAndWatirWithNUnit.aspx

It's actually a great example that can be used to tie an external testing framework into the MS Test framework as well. This is a project where a small amount of effort to create an assertion that reads the external test framework output, but it's not difficult. We are using this at work now with watir and possibly soon with a combination of webrat and mechanize.

Watir does have a recorder available, check out OpenQA: http://watir-recorder.openqa.org/

like image 34
RyanBrady Avatar answered Oct 04 '22 06:10

RyanBrady