Validate single catalog item transactions as well as requester and fulfiller flows in Service Catalog.

Activation of the Automated Test Framework for Service Catalog

These test steps require activation of the The Automated Test Framework Service Catalog (com.glide.automated_testing_impl.service_catalog) plugin, which is active by default on new instances. Administrators may need to activate the plugin on instances upgraded from earlier versions.

Support for parametrized tests

Service Catalog step configurations support parametrized tests. For more information on parametrized tests, refer to Parameterized tests.

Variable editor support

After opening a record that supports variable editor (requested item, catalog task, or incident), you can add step configurations to set variable values, or validate variable states or values. Use the step configurations in the following order to support variable editor.
  1. Step configurations to order a catalog item or record producer in the Service Catalog category.
  2. Open an Existing Record step configuration in the Form category.
  3. Set Variable Values, Validate Variable Values, or Variable State Validation step configuration in the Service Catalog category.
Note: Custom variables and custom variable with labels are not supported for Set Variable Values, Validate Variable Values, and Variable State Validation step configurations.

Open a Catalog Item

Open a catalog item.

Open a Record Producer

Open a record producer.

Set Variable Values

Set variable values for the current catalog item or the record producer.

For a catalog item, use this step after opening a catalog item page using the Open a Catalog Item step, and before using the Order Catalog Item step. For a record producer, use this step after opening a record producer page using the Open a Record Producer step, and before using the Submit Record Producer step.

Set Catalog Item Quantity

Set the quantity for the current catalog item.

Validate Variable Values

Validate variable values on the current catalog item or record producer.

For a catalog item, use this step after opening a catalog item page using the Open a Catalog Item step, and before using the Order Catalog Item step. For a record producer, use this step after opening a record producer page using the Open a Record Producer step, and before using the Submit Record Producer step.

Variable State Validation

Validate the state of variables. Possible variable states are mandatory, not mandatory, read only, not read only, visible, and not visible.

Validate Price and Recurring Price

Validate price and recurring price of a catalog item. Use this step after opening a catalog item page using the Open a Catalog Item step, and before using the Order Catalog Item step.

Add Item to Shopping Cart

Add a catalog item to the shopping cart. Use this step after opening a catalog item page using the Open a Catalog Item step. After this step, you cannot use any other steps on the catalog item.

Table 9. Outputs
Field Description
cart_item_id The sys_id of the added catalog item.

Order Catalog Item

Clicks Order Now for a catalog item. Use this step after opening a catalog item page using the Open a Catalog Item step.

After this step, you cannot use any other steps on the catalog item. If the two-step checkout is false, a request is generated for the catalog item. If the two-step checkout is true, you are redirected to the cart preview page.

Table 11. Outputs
Field Description
request_id The sys_id of the created catalog request.
cart the sys_id of the cart holding the catalog item.

Submit Record Producer

Submits the current record producer. Use this step after opening the record producer page using the Open a Record producer step. After this step, you cannot use any other steps on the catalog item.

Table 13. Outputs
Field Description
record_id The sys_id of target record of the record producer.