ApexTestSuite

Represents a suite of Apex classes to include in a test run. A TestSuiteMembership object associates each class with the suite.

Introduced in API version 36.0.

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

  • In API version 49.0 and later, users must have the View Setup and Configuration permission to access this object.
  • Type: string

  • Properties: Create, Filter, Group, Sort, Update

  • Description:

    The name of the Apex test suite. This label appears in the user interface.

    This value is case-sensitive and must be unique.

Insert a TestSuiteMembership object using an API call to associate an Apex class with an ApexTestSuite object. (ApexTestSuite and TestSuiteMembership aren’t editable through Apex DML.) To remove the class from the test suite, delete the TestSuiteMembership object. If you delete an Apex test class or test suite, all TestSuiteMembership objects that contain that class or suite are deleted.

The following SOQL query returns the membership object that relates this Apex class to this test suite.