BloggingAbout.NET
Thoughts of developers
WCF Test Harness: Creating a New Test Case

The following steps describes how to Create a new Test Case:

  1. Perform the steps described in WCF Test Harness: Add Proxy via URL
  2. Launch the WCF Test Harness by double-clicking on the Spike.TestHarness.exe and select the New Test Case menu item under the File menu: 
    New Test Case 
  3. In the New Test Case dialogue, enter a meaningful name for the Test Case and select the contract created in Step 1:

      Test Case Dialog

  4. A Test Case page will be added to the tool and will contain two sections: Request Section and Response Section.  In the Request Section, the editable text box contains a serialized version of the request message.  For this example, change the Customer Name to "Sally" as shown below:

    image

  5. Select the Execute Single button to submit the request:

    image 

  6. Depending on your IE security settings, you might be presented with the following dialogue.  If so, add the Test Harness as a trusted site so you will not see the error message in the future:

     Trusted Site

  7. If the message was submitted to the host successful and a fault was not returned, the response will be displayed and the response bar will turn green:

    Completed 

    Overview


Posted Tue, Nov 11 2008 8:24 PM by chilberto
Filed under: ,

Comments

WCF Test Harness: Adding a New Proxy via URL - Jeffrey Chilberto - BloggingAbout.NET wrote WCF Test Harness: Adding a New Proxy via URL - Jeffrey Chilberto - BloggingAbout.NET
on Fri, Nov 14 2008 3:17 AM

Pingback from  WCF Test Harness: Adding a New Proxy via URL - Jeffrey Chilberto - BloggingAbout.NET

WCF Test Harness: Overview - Jeffrey Chilberto - BloggingAbout.NET wrote WCF Test Harness: Overview - Jeffrey Chilberto - BloggingAbout.NET
on Fri, Nov 14 2008 3:21 AM

Pingback from  WCF Test Harness: Overview - Jeffrey Chilberto - BloggingAbout.NET

Jeffrey Chilberto wrote WCF Test Harness: Adding a new Proxy via Assembly
on Sun, Nov 16 2008 9:50 PM

The following steps will create a new Proxy by referencing an already defined client proxy: To illustrate

Jeffrey Chilberto wrote WCF Test Harness: New Release
on Tue, Dec 9 2008 1:23 AM

I've created a new version of the WCF Test Harness including some bug fixes and the ability to create

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Please add 8 and 6 and type the answer here:
Copyright © 2003-2010 BloggingAbout.NET