webtest

Webtest with session-id in url

We have an ASP.Net site that redirects you to a url that shows a session-id. like this: http://localhost/%28S%28f3rjcw45q4cqarboeme53lbx%29%29/main.aspx This id is unique with every request. Is it possible to test this site using a standard visual studio 2008/2010 webtest? How can I provide the test this data? I have to call a ...

Alternative to VSTS 2008 WEb tests to test JavaScript & Ajax

I've read repeatedly how VSTS 2008 Web testing can only test the post and post back between web pages and thus cannot test calling Java Script or Ajax. Is there an alternative so that I can test if my dynamically filled controls (javascript) and dynamically populated drop down list (AJAX) can are functioning correctly? ...

Dynamically building a URL in QTP

Hi, I've been taking a quick look at QTP with one of our test team. We've figured out some basics like recording a test, capturing text using output values, putting in check points, etc. However, I can't figure out how to do the following... We have a web form which a user fills in and submits. This will create an item and assign it...

Parsing dependent requests in an http web response

Hi, I want to simulate the behaviour of the WebTestRequest class (in Visual Studio's Test Tools framework) where it can invoke dependent requests based on resources that are referred to in the response that is obtained from the original request. For example, if I issue a web request and get the response by doing this: string url = "ht...

Unit Test configuration for ASP.NET application

This is my first test for Asp.Net Web Application. We have an Engine consisting of several modules. I need to test classes in Engine Module. Though these clases are part of Asp.Net App, they consists of only business logic. How can I test these classes in isolation other being part of WebApp ? because i am getting this error The Web r...

Is there a headless browser for .NET (for automated Web-UI-Tests)?

Is there a headless browser for .NET? I am looking for this in a testing context. Coming from Java I am thinking of something similar to HtmlUnit (http://htmlunit.sourceforge.net/) which itself is the base for different higher level tools like Canoo WebTest or Celerity. I would like to create automated UI tests for web applications in...

Fiddler recorded content-length vs WebTest result page bytes

Hi, I am new in visual studio 2008 Web test. I tried to record to fiddler my web site which deployed in IIS 6.0 and GZIP compression is enabled. I saved the session generated by fiddler to .webtest file extension. I attached the webtest file to vs 2008 and run the web test. I notice that the result of webtest page bytes is different fro...

Watin from TeamCity not running as a Windows Service

I'm trying to run Watin from within a TeamCity build, using nUnit. All tests run fine locally. I know you cannot run the full Watin tests (i.e. POST) from TeamCity if it is running as a Windows Service. You must start the build agent from a .bat file. But, I don't want to have to login to the server for it to start. I've tried getting...

Custom extraction rule in VS2008 doesn't work

I'm creating a Web Test in VS2008 and have extended ExtractionRule. Now when I run test where my extraction rule used it displays "Request failed: Could not load type 'TypeName, version, locale etc'. This happens even though I added my class in designer. ...

Visual Studio web tests: Can a coded webtest be run through the Web Test Editor run view?

Hello, Full disclosure, I'm new to Visual Studio Web Tests and coding for them. I've written a webtest; coded in VB; it runs great. Our QA engineer wants to use this script for performance testing; but he wants the nice GUI that comes when you build a WebTest with the VS WebTest Editor and run it. Is there a way to run a coded webtest...

Prevent Visual Studio Web Test from changing request details

I have a service that accepts Xmla queries for Analysis services, often times those queries themselves will have a string that contains a fragment that looks something like {{[Time].[Year].[All]}} Recording these requests works fine but when I try to re-run the test I get an error from the test runner... Request failed: Exception oc...

TFS webtest for SSRS reports issue

I am creating webtests in TFS and trying to test reports execution in SSRS. When I record the initial process, it includes Reserved.ReportViewerWebControl.axd files. These files are what is causing the problem. When I remove the files, the report does not display, however if I keep the AXD files in it works fine. The problem with keepi...

TFS Load Testing Web Tests

I am configuring a load test and am curious/confused on settings. I am testing an intranet website, that is expected to have 6000 concurrent users. My employer had some previous consultant tell them that the load test users does not matter and that we need to worry about requests/second. They have previously determined that those 6000 us...

Insert wait in VS2008 web test.

Hi everyone, How can I insert time wait value in web test in Visual Studio 2008 test edition? I have recorded a web test that I want to use in Load test. Now I need to put some time delay between pages in web test. Thanks a lot. ...

Unit testing authorization in a Pylons app fails; cookies aren't been correctly set or recorded

I'm having an issue running unit tests for authorization in a Pylons app. It appears as though certain cookies set in the test case may not be correctly written or parsed. Cookies work fine when hitting the app with a browser. Here is my test case inside a paste-generated TestController: def test_good_login(self): r = self.app.post...

Should I be relying on WebTests for data validation?

I have a suite of web tests created for a web service. I use it for testing a particular input method that updates a SQL Database. The web service doesn't have a way to retrieve the data, that's not its purpose, only to update it. I have a validator that validates the response XML that the web service generates for each request. All ...

Visual Studio Web Testing - Are there any good books/videos available?

Hello, I am trying to find a good resource on web and load testing. I'm using Visual Studio 2010 ultimate and, while i'm sure it is too early for much material to be released, i'm hoping there are some good resources for Visual Studio 2008 that are still relevant. While MSDN has some good information I'm looking for something more cohesi...

python webtest port configuration?

I am attempting to write some tests using webtest to test out my python GAE application. The problem I am running into is that the application is listening on port 8080 but I cannot configure webtest to hit that port. For example, I want to use app.get('/getreport') to hit http://localhost:8080/getreport. Obviously, it hits just thits...

How to Run Selenium code in webtest?

Hi, I am new to webtest and I read that it is possible to record script in selenium and then run it via webtest/fitnesse. I have got webtest and selenium installed and configured. Is there specific format of code that suites webtest? Any help regarding this will be appreciated ...

single web test for 3 diff roles.

I have created a web test in vs2010. which browse through the products. I have 3 roles in my site guest (non logged in ), logged in not verified, logged in verified. How I can use single test for all 3 roles? ...