Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Unit testing service rules

Updated on January 14, 2022

Unit test service rules such as, email, Java, MQ, SAP, and SOAP rules.

  • Providing test data when unit testing service rules

    When unit testing service rules, you can provide some representative data for the service rule either by typing or pasting in text, or by identifying an activity that will generate the test data.

  • Unit testing a Service EJB rule

    Use the unit testing feature to verify that the operations of a Service EJB rule function correctly before you add the external client to your testing process.

  • Unit testing a Service Email rule

    Use the unit testing feature to verify that the operations of a Service Email rule function correctly before you add an external component to your testing process.

  • Unit testing a Service File rule

    Use the unit testing feature to verify that the operations of a service file rule function correctly before you add an external component to your testing process.

  • Unit testing a Service HTTP rule

    Use the unit testing feature to verify that the operations of a Service HTTP rule function correctly before you add the external client to your testing process.

  • Unit testing a Service Java rule

    Use the unit testing feature to verify that the operations of a Service Java rule function correctly before you add the external client to your testing process.

  • Unit testing a Service JSR 94 rule

    Use the unit testing feature to verify that the operations of a Service JSR 94 rule function correctly before you add the external client to your testing process.

  • Unit testing a Service dotNet rule

    Use the unit testing feature to verify that the operations of a Service dotNet rule function correctly before you add the external client to your testing process.

  • Unit testing a Service MQ rule

    Use the unit testing feature to verify that the operations of a Service MQ rule function correctly before you add an external component to your testing process.

  • Unit testing a Service SAP Rule

    Services start their processing in response to a request from an external application. Before you add the external application to your testing process, use the Simulate SOAP Service Execution feature to verify that the service processes data appropriately. When using this feature, you manually provide some representative data to process. You specify a test page for the rule to use, provide sample data as the input, run the rule, and examine the results to see if they are what you expect.

  • Unit testing a Service SAPJCo rule

    Use the unit testing feature to verify that the operations of a Service SAPJCo rule function correctly before you add the external client to your testing process.

  • Unit testing a Service SOAP rule

    Services start their processing in response to a request from an external application. Before you add the external application to your testing process, use the Simulate SOAP Service Execution feature to verify that the service processes data appropriately. When using this feature, you manually provide some representative data to process. You specify a test page for the rule to use, provide sample data as the input, run the rule, and examine the results to see if they are what you expect.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us