Test NetSuite Suitelet Forms with Assertology

You can now test NetSuite Suitelet forms with assertology. In this example, we're going to test a Suitelet that transforms a quote into a sales order.

In our demo account, we have a Suitelet that allows the user to select a quote and convert it to a sales order:

To test this Suitelet, we're going to record a test case where we create a quote and then use the Suitelet to convert it into a sales order. Let's get started!

Starting the Recording

To start the recording:

  1. Navigate to Assertology > Scenarios > Test Cases > New

  2. Specify a name for the new test case

  3. Select Quote as the record type

  4. Click Start Recording

Step #1: Enter the Quote

While recording, enter the quote into NetSuite, just as you normally would in your standard business process.

Step #2: Add a Custom Test Step for the Suitelet

After saving the quote, click the "Custom Test Step" link to add a new test step for testing the Suitelet. Select "Suitelet Script" as the step type and the desired Suitelet in the SCRIPT SELECT field and click "Save & Run."

Your Suitelet will then appear on the screen. Interact with the Suitelet as you normally would as part of your business process.

Ending the Recording

After submitting the Suitelet, click "Stop Recording" to end the recording and click "Run Test Case" to complete the recording. Once finished, you will see a green success message indicating that the test case is ready to use.

You will notice that Assertology automatically appended a final step to validate data on the sales order record that was created by the Suitelet in the background.

And that's it - Assertology will now verify that the Suitelet runs successfully and creates the sales order as expected every time the test is run.

Getting started with Assertology

To learn more about how to automate testing of scripts, workflows, integrations, and more in just 5 minutes, request your free trial of Assertology Automated Testing for NetSuite today!

#netsuite #automatedtesting #suitelet

Featured Posts
Recent Posts
Archive
Search By Tags
No tags yet.