## Package: dw.campaign

# Class ABTest

## Inheritance Hierarchy

- Object
  - dw.object.PersistentObject
  - dw.campaign.ABTest

## Description

Object representing an AB-test in Commerce Cloud Digital. AB-tests provide the merchant the ability to compare one set of storefront "experiences" - promotions, sorting rules, and slot configurations in particular - against another set. The merchant configures different AB-test segments which define the sets of experiences that the merchant wishes to test. AB-tests run for a configured period of time, and customers are randomly assigned by the platform to the test segments according to allocation percentages defined by the merchant.

## Properties

### ID

**Type:** String (Read Only)

Get the test ID for this AB-test.

## Constructor Summary

## Method Summary

### getID

**Signature:** `getID() : String`

Get the test ID for this AB-test.

## Method Detail

## Method Details

### getID

**Signature:** `getID() : String`

**Description:** Get the test ID for this AB-test.

**Returns:**

the test ID for this AB-test.

---