# UFT

First, go into a test case and click on Automation. Here you can add a UFT script. The script must be done in UFT itself. Aqua allows you to import the UFT solution with its data table and action. Have a look at the system requirements to see which versions are supported.

<figure><img src="/files/u5624N1r4xEIVPts5OMo" alt=""><figcaption></figcaption></figure>

After adding the script, you have the option to import your existing UFT solution.

<figure><img src="/files/mnzhQVi3EAutlRQTlxnj" alt=""><figcaption></figcaption></figure>

In order to run the test, you need to create the agent accordingly. Then you can start the execution via the Run button. The possible agents for the executions will be selectable in the dropdown. The UFT results will be attached to the execution.

## Configure agent

Extract the UFTAgent-\*.zip and open aquaAgentUFTGui.exe.config. Here you have to set the Agent Code and the ServiceUrl.&#x20;

In the following, you will find an example:

##

```xml
<configuration>
     <appSettings>
          <add key="agentCode" value="26vmu3aw5etcvuxmop9m"/>
          <add key="aquaServiceUrl" value="http://localhost/aquaAPI/aquaAgentWebService.asmx"/>
          <add key="keepAliveSendingFrequencyMs" value="30000"/>
          <add key="proxyHost" value=""/>
          <add key="proxyPort" value=""/>
          <add key="proxyUsername" value=""/>
          <add key="proxyPassword" value=""/>
          <add key="maxGUILogEntries" value="30"/>
     <add key="tempDirectory" value="temp"/>
     </appSettings>
     <startup>
          <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
     </startup>
     <system.web>
          <membership defaultProvider="ClientAuthenticationMembershipProvider">
               <providers>
                    <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
               </providers>
          </membership>
          <roleManager defaultProvider="ClientRoleProvider" enabled="true">
               <providers>
                    <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
               </providers>
          </roleManager>
     </system.web>
</configuration>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aqua-cloud.io/documentation/automation/desktop-client/uft.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
