Contact Us 1-800-596-4880

Lab 5: Test the Composer Flow

Overview:

We have completed all the development for this Module. Now, it’s time to perform an end to end test.

module4 lab05 flow

Step 1: Prepare Salesforce Test Data

  1. Login into the Salesforce Developer ORG and make sure you have the Sales app opened. If not, search the Sales app from the App Launcher.

    module4 lab05 app lau sales console
  2. Click on the Accounts tab:

    module4 lab05 acc tab
  3. Click the New button to create a new account.

    module4 lab05 new acc btn

    If you’re requested to select the Account type record, make sure to select the Account one.

  4. Enter <your initials>-Northern Trail Outfitters as the account name and click Save.

    module4 lab05 new acc wiz

Step 2: Start Test Execution

  1. Go back to MuleSoft Composer console and open the <your initials> - Sync Salesforce with Financial System flow. Click Test to start the test.

    module4 lab05 start test btn
  2. Wait for the test to start and the message Awaiting trigger event to appear.

    module4 lab05 test started

Step 3: Create a New Invoice on Salesforce

  1. Back in Salesforce, on the <your initials> - Northen Trail Outfitters account detail page from the Invoices Summary related list on the right click the New button to create a new invoice.

    module4 lab05 new inv btn
  2. Enter the following information and click Save.

    Field Value

    Purchase Order

    <your initials>-<any string>

    Date

    <any date>

    Due Date

    <any date>

    Invoice Total

    <any number>

    module4 lab05 new inv wiz

Remember to use the right prefix in the Purchase Order field. You are filtering the invoices based on this in the Composer trigger

Step 4: Check Composer Test Execution Results

  1. Now that you have saved the new invoice quickly go back to composer and wait for the event to be processed. A "Processing" message with a spinner should appear.

    module4 lab05 processing
  2. Once the test is completed we can expand the test output for each step part of the composer flow. Next we have the Trigger event test output:

    module4 lab05 trg tst out
  3. Next an example for the RPA Invoke Process action test output.

    module4 lab05 rpa tst out
  4. And an example for the Update Invoice Record action test output.

    module4 lab05 upd inv tst out

Step 5: Check RPA Process Execution on RPA Manager

  1. Login into the MuleSoft RPA Manager and reach out the Process detail page.

    Here you should see in the Run Results section an execution completed successfully.

    module4 lab05 run results
  2. Click on the number in the Success column to get more information on the runs.

    module4 lab05 prc run results

Step 6: Check Invoice Record on Salesforce

As last step of the composer flow the invoice record in Salesforce should be updated setting the Last Synched Date field with the output provided by the RPA Process Execution (result attribute).

  1. Click on the just created Invoice Summary record:.

    module4 lab05 ref inv tab
  2. Confirm the Sync Result and Last Synched Date fields have been correctly updated:

    module4 lab05 inv det