Saturday, February 6, 2010

Installation of Microsoft ACT

Source: http://www.egilh.com/blog/archive/2004/11/08/305.aspx

  1. Copy the directory C:\Program Files\Microsoft ACT to the same directory on the test machine
  2. Change the path of the Microsoft ACT directory in the registry file (act.reg)

    clip_image001

    Please use here the name of the Program files folder (in german programme).

  3. Execute Register.cmd
  4. Create a local user: ACTUser with the "User" rights
  5. Set the Identify of the following COM objects to ACTUser (using dcomcnfg):
    • Application Center Test Broker
    • Application Center Test Controller

    clip_image002

    clip_image003

    Right click on and select the properties for

  6. Application Center Test Broker
  7. Application Center Test Controller

    clip_image004

    Change in the tab Identity to the option "this user " and type in the ACTUser account

    clip_image005

  8. Give full control to ACTUser on the following WMI namespace using "Computer Management": Root/CIMV2/Application/MicrosoftACT

    Run wmimgmt.msc

    clip_image006

    clip_image007

    Right click an select the properties for WMI

    clip_image008

    SelectMicrosoftACT and click on the security button

    clip_image009

Use ACT for Tests

http://msdn.microsoft.com/en-us/library/ms979202.aspx

    Important: To record a test it is necessary to activate basic authentication for this web server.

    clip_image010

    Go to the directory security tab

    clip_image011

    Edit the Authitication settings

    clip_image012

    and activate the basic authentication

Authentication

ACT supports anonymous, Integrated Windows, basic, digest, and Passport authentication mechanisms for test execution. If you use the record test feature to create test scripts, you need to modify the test scripts to support Integrated Windows and passport authentication. The discussion that follows describes how to do so.

Windows Authentication

ACT supports Integrated Windows authentication while testing, but you cannot record tests for a Web application that has the Integrated Authentication option enabled within Internet Information Services (IIS). The following steps show you how to work around this problem.

To record by using an application that uses Windows authentication

  1. Enable basic authentication, in addition to Integrated Windows authentication, on your IIS server.
  2. Record the ACT test script for testing your application. Provide the appropriate domain, user name, and passwords for your Web application when prompted by the tool.
  3. Change the Web application configuration back to Integrated Windows authentication.
  4. Comment out or delete the following line of each request in the test script, which was recorded in Step 2.

clip_image013

Copy Code

oHeaders.Add "Authorization", "Basic XYZ"

  1. Set up the ACT users (using a separate user group if needed) with the proper domains, user names, and passwords that you want to simulate.
  2. For each request, change the following line in the script:

clip_image013[1]

Copy Code

oRequest.HTTPVersion = "HTTP/1.0"
to:
oRequest.HTTPVersion = "HTTP/1.1"

  1. Run the ACT test script.

Source <http://msdn.microsoft.com/en-us/library/ms979202.aspx>

No comments: