# Step 2: Configuring ServiceNow connection

> Configure, edit, or delete a ServiceNow connection in Test Manager to synchronize requirements and defects.

A ServiceNow connection synchronizes requirements and defects between Test Manager and ServiceNow.

## Setting up a ServiceNow connection

The connection is created from Project Settings > Integration with the credentials of the integration user, and its API Key is then copied into the UiPath Test Suite Integration settings in ServiceNow.

### Context

The following remain fully managed within Test Manager and are not synchronized with ServiceNow:

* Test cases
* Test steps
* Test sets
* Test results

### Prerequisites

* A Test Manager administrator account.
* The integration user account that you created in [Step 1: Creating an integration user account in ServiceNow](https://docs.uipath.com/test-manager/automation-cloud/latest/user-guide/step-1-creating-an-integration-user-account-in-servicenow).

### Steps

1. Log in to Test Manager as an administrator.
2. Open your project.
3. Navigate to **Project Settings** &gt; **Integration**.
4. Select **New Connection** and select **ServiceNow** from the dropdown.
5. Configure the following connection settings:
   * **Name**: Enter a name for your ServiceNow™ connection.
   * **Description** (Optional): Add a description for reference.
   * **Server URL**: Add the ServiceNow™ server URL. For example: `https://environment.service-now.com/`.
   * **User**: Enter the User ID you have configured for your integration user account.
   * **Password**: Enter the associated password.
   * **Defect Type**: Select a defect type from the dropdown. For now, you can only choose **Defect**.

   ![ServiceNow connection settings form in Test Manager](https://dev-assets.cms.uipath.com/assets/images/test-manager/test-manager-docs-image-125746-f1e88725-d0946d67.webp)
6. Select the connection to expand the panel and copy the **API Key** for later use.
7. Open the **Application Navigator** in ServiceNow™ and use the search function to find **UiPath® Test Suite Integration**. If prompted to switch the application scope, select the one you are currently working with.
8. Configure the following integration settings:
   * **Integration URL**: Add the UiPath® Test Manager URL.
   * **API Key**: Paste the API key.
   * **Logging level**: Select **info** from the dropdown. The default value is **debug**.
   * **ServiceNow integration user for UiPath® Test Manager**: Enter the User ID you have configured for your integration user account.

   ![UiPath Test Integration settings in ServiceNow](https://dev-assets.cms.uipath.com/assets/images/test-manager/test-manager-docs-image-125794-7fd49a93-d30da562.webp)
9. Select **Save**.

### Result

The ServiceNow integration user account and connection are configured. Requirements and defects are synchronized between Test Manager and ServiceNow according to the configured integration settings.

## Editing a ServiceNow connection

Editing a connection changes the settings of an existing ServiceNow connection.

### Prerequisites

An existing ServiceNow connection.

### Steps

1. Log in to Test Manager as an administrator.
2. Open your project.
3. Select the **Settings** button to open Project Settings.
4. In the Integration list, select a ServiceNow connection to expand the panel.
5. Select **Edit** to configure the connection.
6. Select **Save** to confirm.

### Result

The ServiceNow connection is updated with the new settings you configured.

## Deleting a ServiceNow connection

Deleting a connection removes the selected connection together with its associated requirements.

### Prerequisites

An existing ServiceNow connection.

### Steps

1. Log in to Test Manager as an administrator.
2. Open your project.
3. Select the **Settings** button to open Project Settings.
4. In the Integration list, select a ServiceNow connection to expand the panel.
5. Select **Delete** to remove the connection.
6. Select **OK** to confirm.

### Result

The ServiceNow connection and its associated requirements are deleted.
