Testing Siebel eBusiness Applications > Automating Functional Tests >

Setting Up Your Functional Testing Environment


You must perform the following steps to set up your Siebel Test Automation environment.

  • Install your functional test tool and any necessary add-ins.

    For more information, see the documentation that accompanies your test tool.

  • Activate test automation on your Siebel Server.

    To activate test automation on the server, open the .CFG file for the applications you are testing and set the EnableAutomation and AllowAnonUsers switches to TRUE in the [SWE] section.

    [SWE]
    ...
    EnableAutomation = TRUE
    AllowAnonUsers = TRUE
    ...

    After you have updated the CFG file, you must restart the Siebel Server. This prepares the server for test automation.

  • Request test automation information in the URL.

    To perform functional test automation on your Siebel application, you must tell the SWE to generate test automation information using a SWE command. To do so, append the SWECommand=AutoOn token to the URL. For example:

    http://hostname/callcenter/start.swe?SWECmd=AutoOn

    This tells the Siebel Web Engine (SWE) to generate test automation information for Siebel applications.

Secure Access to the Siebel Test Automation Framework

The Siebel Test Automation framework allows you to implement secure access to test automation, in which the SWE requires a password to generate test automation information. This is useful for real-time testing in a production environment, and can be integrated with system monitoring tools, such as Topaz from Mercury Interactive.

In addition to the steps described above, you must also perform the following steps to activate secure access to Siebel Test Automation.

  • Define a Password on your Siebel Server.

    To define a password for test automation on the server, open the .CFG file for the applications you are testing and set the AutoToken switch in the [SWE] section to the test automation password.

    [SWE]
    ...
    EnableAutomation = TRUE
    AllowAnonUsers = TRUE
    AutoToken = mYtestPassword
    ...

    The password is case-sensitive and can only contain alphanumeric characters. After you have updated the CFG file, you must restart the Siebel Server. This prepares the server for secure access to test automation.

  • Send the Password in the URL.

    When you have defined a password on your Siebel Server for secure access to test automation, you must indicate that password in the URL. The URL token is in the format AutoToken=password. For example:

    http://hostname/callcenter/start.swe?SWECmd=AutoOn&AutoToken=mYtestPassword

    If a password is defined in the CFG file and you do not indicate the password in the URL, the SWE does not generate test automation information.

Testing Siebel eBusiness Applications