Sunday, August 9, 2009

Creating an ASMX web service web test with VSTS 2008

Right click on the test project and select Add > Web Test…

IE will be opened with the Web Test Recorder available on the left side.

Click the stop button.

Right Click on the webtest node and select Add Web Service Request.clip_image002

Fill out the properties in the properties window.image

If you include the full path to the web method under test, the web method query variable will be extracted and created for you.

(example: http://localhost/VSTSLoadTest/VstsLoadTestWebService.asmx?op=ReverseTheString).image

Assemble the soap request (I suggest using Internet Explorer to browse the web service and capture a sample soap request.

image

Drill down into the web request to fill out the String Body properties.

image

Set the content type to text/XML.

Click the ellipses button on the string body.

Paste the soap request into the popup – make sure and modify the placeholders with actual values.

image

1 comment:

  1. Ola, gostei muito de seu blog, sou do brasil também tenho o blog que fala mas de humor,
    ate mas breve, Muito grato.

    Alisson Ferreira
    Site: www.streetand.com.br

    ReplyDelete