This project is read-only.

Using the IpfsWebtestAutoFixer Tool

IpfsWebtestAutoFixer is a console application that can be run on a webtest saved from Fiddler. It automatically adds the appropriate extraction rules to the invocation request and postback requests. It also automatically substitutes context parameters in postback bodys. This tool requires that a version of Visual Studio 2008 with webtesting capabilities is installed on your machine.

Steps to write an InfoPath web test with the IpfsWebtestAutoFixer Tool

  1. Use Fiddler to capture HTTP requests
  2. Save the session as Visual Studio Web Test
  3. Use IpfsWebtestAutoFixer tool on the .webtest file

Use Fiddler to capture HTTP requests

Use the same process described on the Home page.

Save the session as Visual Studio web test

  1. Select the requests you want in your webtest
  2. File | Save | Session(s) | as Visual Studio Web Test...

Use IpfsWebtestAutoFixer tool on the .webtest file

The syntax is as follows:
IpfsWebtestAutoFixer.exe [webTest] [fixedWebTest] [invocationPath]

Arguments Description
webTest Path to the web test file to fix up. In this example, the web test that was saved from Fiddler.
fixedWebTest File path for the fixed up web test to save. Overwrites an existing file or creates a new file.
invocationPath Optional. String used to identify the invocation request of an InfoPath form. A request matches if its URL contains invocationPath. The default value is "/_layouts/FormServer.aspx" You will need to use this argument when the InfoPath form is in an XmlFormView control.


A file selection dialog for webTest and fixedWebTest will appear if no arguments are given. However, the only way to use the invocationPath option is by using its command line argument.

Examples

A session of fiddler was saved to webTestSavedFromFiddler.webtest. Fix the webtest and save it to myFixedWebTest.webtest.
IpfsWebtestAutoFixer.exe webTestSavedFromFiddler.webtest myFixedWebTest.webtest

A session of fiddler was saved to webTestSavedFromFiddler.webtest. Fix the webtest and save it to myFixedWebTest.webtest. The InfoPath form was in an XmlFormView control which was on the page MyPageWithFormViewControl.aspx.
IpfsWebtestAutoFixer.exe webTestSavedFromFiddler.webtest myFixedWebTest.webtest MyPageWithFormViewControl.aspx

Last edited Jun 4, 2008 at 7:22 PM by JBooze, version 2

Comments

DSF Sep 17, 2010 at 6:03 AM 
The dll for VS2010 does not work. I get 'Operation not supported' errors when I reference the dll and attemp to open any extraction rule ?