# Document Type Test

Test all pages using a specific Document Type with this test. Select the Document Type(s) you want to test and Umbraco Engage makes sure the correct CSS and JavaScript is inserted to the correct pages.

The test type **Content Type** can be started in the [Engage section](/umbraco-engage/marketers-and-editors/introduction/the-umbraco-engage-section.md) and in the [Content App](/umbraco-engage/marketers-and-editors/introduction/content-apps.md). The type is selected in the **Test setup** section.

![Setup Test](/files/XzF7C0E1DI6iCsKj35Bp)

The test allows you to select one or more Document Types within Umbraco. On all pages using the selected Document Type(s) the A/B Test will render the additional CSS and JavaScript you will enter. The CSS and JavaScript must not create any side effects on these pages. This is a manual task.

Once you have selected the pages you want to test, you can specify one or more variants. For each variant, it is possible to click the Edit button. This will bring up a popup that allows you to write JavaScript or CSS:

![Edit variant using CSS or JavaScript](/files/iTWLUtXc39mpVRwY6mnJ)

In this example, some JavaScript changes the page's background color.

You can check if your code works by clicking **Preview**.

After creating all variants, start your A/B testing as written in the [Setting up the A/B test](/umbraco-engage/marketers-and-editors/ab-testing/setting-up-the-ab-test.md) article.


---

# 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.umbraco.com/umbraco-engage/marketers-and-editors/ab-testing/types-of-ab-tests/document-type-test.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.
