Create test profiles create-test-profiles

Test profiles are required when using the test mode in a journey, and to preview and test your content.

NOTE
Journey Optimizer allows testing different variants of your content by previewing it and sending proofs using sample input data uploaded from a CSV or JSON file, or added manually. Learn how to test your content using sample input data

You can create test profiles by uploading a CSV file or using API calls. Adobe Journey Optimizer also provides a specific in-product use case to facilitate test profile creation.

You can upload a JSON file into an existing dataset. For more information, refer to the Data Ingestion documentation.

Note that creating a test profile is similar to creating regular profiles in Adobe Experience Platform. For more information, refer to the Real-time Customer Profile documentation.

➡️ Learn how to create test profiles in this video

Prerequisites test-profile-prerequisites

To create profiles, you first need to create a schema and a dataset in Adobe Journey Optimizer.

Create a schema

To create a schema, follow these steps:

  1. In the DATA MANAGEMENT menu section, click Schemas and select the Create schema button.

    Schemas menu with Create schema button

  2. Select Standard as the schema creation option.

  3. Select a schema type, for example Individual Profile, and click Next.
    Schema type selection showing Individual Profile option

  4. Enter a name for your schema and click Finish.
    Name and save schema dialog

  5. In the Field groups section, on the left, click Add and select the appropriate field groups. Make sure you add the Profile test details field group.
    Field groups section with Add button
    Once done, click Add field groups: the list of field groups is displayed on the schema overview screen.
    Schema overview with field groups list

    note note
    NOTE
    Click the name of the schema to update its properties.
  6. In the list of fields, click the field that you want to define as the primary identity.
    Schema fields list for selecting primary identity

  7. In the Field properties right pane, check the Identity and Primary Identity options and select a namespace. If you want the primary identity to be an email address, choose the Email namespace. Click Apply.
    Field properties panel with Identity and Primary Identity options

  8. Select the schema and enable the Profile option in the Schema properties pane.
    Schema properties pane with Profile option enabled

  9. Click Save.

NOTE
For more information on schema creation, refer to the XDM documentation.

Create a dataset

Then you need to create the dataset in which the profiles will be imported. Follow these steps:

  1. Browse to Datasets, then click Create dataset.
    Datasets menu with Create dataset button
  2. Choose Create dataset from schema.
    Create dataset from schema option
  3. Select the previously created schema then click Next.
    Schema selection screen for dataset creation
  4. Choose a name then click Finish.
    Name and finish dataset dialog
  5. Enable the Profile option.
    Dataset settings with Profile option enabled
NOTE
For more information on dataset creation, refer to the Catalog Service documentation.

In-product use case use-case-1

From Adobe Journey Optimizer home page, you can leverage the test profiles in-product use case. This use case facilitates the creation of test profiles used for testing journeys before publishing.

Test profiles use case card on home page

Click the Begin button to start the use case.

The following information is required:

  1. Identity namespace: The identity namespace used to uniquely identify the test profiles. For example, if email is used to identify the test profiles, the identity namespace Email should be selected. If the unique identifier is the phone number, then the identity namespace Phone should be selected.

  2. CSV file: A comma separated file containing the list of test profiles to create. The use case expects a predefined format for the CSV file that contains the list of test profiles to create. Each row in the file should include the following fields in the correct order as follows:

    1. Person Id: Unique identifier of the test profile. The values of this field should reflect the identity namespace that was selected. (As an example, if Phone is selected for the identity namespace, then the values of this field should be phone numbers. Similarly if Email is selected, then the values of this field should be emails)
    2. Email Address: Test profile email address. (The Person Id field and the Email Address field could potentially contain the same values if Email is selected as the identity namespace)
    3. First Name: Test profile first name.
    4. Last Name: Test profile last name.
    5. City: Test profile city of residence
    6. Country: Test profile country of residence
    7. Gender: Test profile gender. Available values are male, female and non_specified

After selecting the identity namespace and providing the CSV file based on the format above, select the Run button at the top right. The use case might take a few minutes to complete. Once the use case completes processing and creating the test profiles, a notification will be sent to notify the user.

NOTE
Test profiles may override existing profiles. Before executing the use case make sure the CSV contains test profiles only and that it is executed against the correct sandbox.

Create a test profile using a csv file create-test-profiles-csv

In Adobe Experience Platform, you can create profiles by uploading a csv file containing the different profile fields into your dataset. This is the easiest method.

  1. Create a simple csv file using a spreadsheet software.
  2. Add one column for each required field. Make sure you add the primary identity field (“personID” in our example above) and the “testProfile” field set to “true”.
    CSV file with column headers including personID and testProfile
  3. Add one line per profile and fill in the values for each field.
    CSV file with sample test profile data
  4. Save the spreadsheet as a csv file. Make sure commas are used as separators.
  5. Browse to Adobe Experience Platform Workflows.
    Workflows menu in Adobe Experience Platform
  6. Choose Map CSV to XDM schema, then click Launch.
    Map CSV to XDM schema workflow option
  7. Select the dataset you want to import the profiles into. Click Next.
    Dataset selection screen for CSV import
  8. Click Choose files and select your csv file. When the file is uploaded, click Next.
    File upload screen with Choose files button
  9. Map the source csv fields to the schema fields, then click Finish.
    CSV field mapping interface showing source and target fields
  10. The data import begins. The status will move from Processing to Success. Click Preview dataset, in the top right.
    Import status showing Success with Preview dataset button
  11. Check that the test profiles have been correctly added.
    Dataset preview showing imported test profiles

Your test profiles are added and can now be used when testing a journey. Refer to this section.

NOTE
For more information on csv imports, refer to the Data Ingestion documentation.

Create test profiles using API calls create-test-profiles-api

You can also create test profiles via API calls. Learn more in Adobe Experience Platform documentation.

You must use a Profile schema that contains the “Profile test details” field group. The testProfile flag is part of this field group.
When creating a profile, make sure you pass the value: testProfile = true.

Note that you can also update an existing profile to change its testProfile flag to “true”.

Here is an example of an API call to create a test profile:

curl -X POST \
'https://dcs.adobedc.net/collection/xxxxxxxxxxxxxx' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: xxxxx' \
-H 'cache-control: no-cache' \
-H 'x-api-key: xxxxx' \
-H 'x-gw-ims-org-id: xxxxx' \
-d '{
"header": {
"msgType": "xdmEntityCreate",
"msgId": "xxxxx",
"msgVersion": "xxxxx",
"xactionid":"xxxxx",
"datasetId": "xxxxx",
"imsOrgId": "xxxxx",
"source": {
"name": "Postman"
},
"schemaRef": {
"id": "https://example.adobe.com/mobile/schemas/xxxxx",
"contentType": "application/vnd.adobe.xed-full+json;version=1"
}
},
"body": {
"xdmMeta": {
"schemaRef": {
"contentType": "application/vnd.adobe.xed-full+json;version=1"
}
},
"xdmEntity": {
"_id": "xxxxx",
"_mobile":{
"ECID": "xxxxx"
},
"testProfile":true
}
}
}'

How-to video video

Learn how to create test profiles.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76