Getting started with the Automated Test Framework

If you are new to the Automated Test Framework, read this overview to learn what the framework can do. Next, follow the tutorial to create and run a test that uses the most basic of ATF features. After you feel comfortable with the basics, explore more advanced features provided by the ATF.

ATF features provide flexibility in how you test your instance.
  • With a form test, you can create simple tests that mimic user actions with no scripting, such as
    • Open a form
    • Set field values
    • Validate field values and attributes (such as read-only)
    • Submit the form
  • With a server-side scripting test, you can perform more complex operations, including
    • Perform unit tests using JavaScript, including tests using the Jasmine test framework.
    • Test business rules, script includes, and other scripts.
    • Create tests that operate on data that you define.
  • With a REST test, you can create and send an Inbound REST request and verify the response.
    • Test any REST endpoint on the instance.
    • Use a REST request to create records as well as retrieve, update, or delete records created in a previous test step or that existed on the instance.
    • Verify the response status code, response headers, response time, and response payload.
  • With a Service Catalog test, you can perform end-to-end testing for a catalog item.
    • Open a catalog item or a record producer.
    • Search for a catalog item.
    • Set variables values and catalog item quantity.
    • Validate variable states, values, and price.
    • Add item to a shopping cart.
    • Order a catalog item and submit a record producer.
  • Many test steps return output variables whose values you can use as inputs to a later step. For example, you can use output variables to accomplish the following tasks:
    • Perform a server-side assert on a record you previously inserted.
    • Create a record as one user, then reopen its form as a different user.
  • In addition to the steps built into the Automated Test Framework, you can create custom test step configurations. These custom steps can take input variables and return output variables that you define. You can only define custom test steps that run on the server. The Automated Test Framework does not support creating custom step configurations that run in the browser.
  • The test framework automatically tracks and deletes any data created by running tests, automatically taking care of rolling back changes after testing.
  • Test suites enable you to execute a batch of tests in a specified order. In addition, test suites can be hierarchical, with suites nested within other suites. You can associate test suites with schedules that determine when the system runs the test suites.