webtest

Webtest for binary content, how to ?

Assume a web page that returns binary content: http://localhost/website/Default.aspx?FileId=value and we have some files with known Ids and checksums (i.e. MD5). How it's possible to extract whole response and calculate it's check-sum via some visual studio webtest ? ...

Passing parameter to SOAP Web Service Requests Using Visual Studio Team System 2008

How can I pass in the current datetime parameter to a SOAP request? I know you can pass in parameters by adding a datasource to the web test project and reference it like this {{DataSource.TableName.FieldName}}. But I want to pass in current datetime parameter as a dynamic value (something like DateTime.Now). How do I go about doing thi...

Initiate Button click action using Watir Ruby library

Watir::Browser.default = "firefox" ie = Watir::Browser.start("http://cars.com") ie.select_list(:id, 'make_1').set('Chevrolet') ie.select_list(:id, 'model_1').set('Cobalt') ie.select_list(:id, 'pricehighnew').set('No Max') ie.select_list(:id, 'rdnew').set('30 miles') ie.text_field(:name, "zc").set "44109" ie.form(:method, ...

LR: VUgen web_set_timeout function unrealistic?

I understand that VUGen's web_set_timeout function allows me to set a timeout value higher than the usual value (which seems to be 120 seconds). What I do not understand: Doesn't this imply that all users would have to set their browser http POST timeout config value to a new, higher value? Don't I then test with a (simulated/virtual) u...

Display time for webtest plugin in playback UI window

I have written a Visual Studio (2008) Webtest plugin, and need to display the time it takes to run in the playback ui window. I've tried: e.WebTest.BeginTransaction("B2BValidate"); // then call my plugin e.WebTest.EndTransaction("B2BValidate"); This indeed adds a "B2BValidate" transaction to the playback window, but the "Total Time...

Performance issue with webtest and grails

Hello I have read the documentation for Grails and Webtest in this site: http://www.grails.org/plugin/webtest And it's very unupdated. Most of the scripts listed there doesn't work. I am looking a way to run a working alternative of -nostart listed there. This is because it's very slow to rerun tests. Or maybe a way to run webtests ...

How do I use pylons (paste) webtest with multiple checkboxes with the same name?

Suppose I have a form like this: <form id='myform'> Favorite colors? <input type='checkbox' name='color' value='Green'>Green <input type='checkbox' name='color' value='Blue'>Blue <input type='checkbox' name='color' value='Red'>Red <input type='submit' value='Submit'> </form> How do I use webtest's form library to t...

Running webtests without Microsoft Visual Studio Testing edition/Team Suite

Is there any way I can run Microsoft webtest not having Microsoft Visual Studio Testing edition/Team Suite? Any third-party tool or a way to run it through command line? I have MS VS Professional Edition 2008 installed. Thanks! ...

Need help resolving a java.net.ConnectException using webtest-plugin for grails

I'm trying to setup a webtest plugin with an existing grails app that's already pretty far along... I'm using grails 1.2.2, groovy version 1.6.4, webtest-plugin 2.0.4 I have one functional web test, which has a single call to invoke("http://localhost:8080/myApp/") I've overridden the existing URLMappings.groovy file so that "/" map...

WebTest: Testing with decorators + datastore calls

Hello, I have a Google App Engine application and my request hadnler has a decorator that does authentication. With WebTest I found out yesterday how you can set a logged in user and administrator. Now today my authentication decorator got a little more complex. It's also checking if a user has a profile in the database and if he doesn...

Problem in Webtest - while running test containing file upload.

Hi, We've web application developed using MVC2. I am recording webtests for all views in our web app. I'm using VS2008 test edition installed on separate machine for these webtests. My problem is - my recorded webtests fail for a view. THis particular view contains 2 upload controls. Common errors are - 1. Request failed: Empty path na...

HOw to change web test run settings?

Hello, I am using VS2008 Test Edition to record my web tests. THese webtest are now connected with excel workbooks. There is one workbook(containing single worksheet) for every webtests. I've grouped all these web tests into single webtest. And I want to run these webtests in single go. My problem is - All my webtests run for single rec...

Waiting for ajax request to finish before getting the resposne

I'm extremely new to mvc and webtest so please bear wtih me here. I have a customer view. The customer view calls a javascript function on document.ready. This javascript call performs an ajax post to an action in the customer controller which returns json to the original javascript which in turn updates the customer view. In my webtes...

Geb functional web tests + cookies

I've been having issues with testing my Grails application's authentication. It appears that the browser won't accept cookies, so I created a simple grails application as a test. <html> <head> <title>Welcome to Grails</title> </head> <body> <g:each in="${request.cookies}"> <h1>${it.name} = <span class="value">${it.value}<...

.NET WebTest - Get Response Bytes for ValidationRule

I need to create a ValidationRule to test response bytes including responses for dependent requests. It is easy task to get response bytes for main requests, but I can not access responses for dependent requests. I have no idea how to do that. public class WebTest1Coded : WebTest { public WebTest1Coded() { this.PreAuthe...

Visual Studio 2008 SP1 freezes while running webtests in windows R2 2008

I have installed Visual studio 2008 with SP1 on Windows R2 2008. When I try to run webtests (which previously ran in VS2008 on Windows 7) I get an error message saying "Test Not Executed with a warning message". After this error message is displayed Visual studio just freezes. I am unable to click and open any other tests. The only way ...

Capturing popups with Visual Studio Team webtests

We have a number of popups (generated using Javascript) that are displayed during page navigation. When we record the webtest, the script doesn't capture all of them. If there a way around this? ...