Skip to main content

Table of Contents

Attachment control support in scenario testing


Only available versions of this content are shown in the dropdown

Scenario tests now support the attach content control, pxAttachContent, during recording. This allows you to attach images or files directly into your case and record it for testing and playback.

  1. Launch App Studio or Dev Studio, based on where you want to perform the test.

  2. Do one of the following to open the automation recorder:

    • In App Studio, on the lower-left side of the screen, click the Test icon.
    • In Dev Studio, on the lower-right side of the screen, toggle the run-time toolbar, and then click the Toggle Automation Recorder icon.
  3. In the Scenario tests pane, click Create test case, and then select the test type:

    • To record a test for a portal, select Portal.
    • To record a test for a case, select Case type, and then select the type of case for which you want to record the test.
      When you select the case type, a new case of that type is created.
  4. Record the steps for the test by clicking the UI elements.

    When you hover over a testable element, an orange highlight box appears. When you click an element, you record an implicit assertion and add the interaction to the list of test steps.
  5. Click on Upload file to open the attachment dialogue page.

    1. Navigate to the file you want to upload and select it.

    2. Enter a name for the attachment in the Enter name field.

    3. Enter a description for the attachment in the Enter description field.

    4. Click Publish.

  6. Continue recording as many steps as necessary. When you finish adding steps, in the Test case pane, click Stop and save test case.

    The test case appears on the Scenario testing landing page.
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us