Creating new test categories, test sets, and object types
You can create new test categories, new test sets in an existing category, and new subsets in an existing test set. You can also define new object types for which you want to create tests.
About this task
All of the tests that are supplied with IBM® MQ Explorer are grouped in the Queue manager tests category. In the Queue manager tests category, each test is associated with a specific test set; for example, Queues or Channels. The test sets are used to make the default selections in the Run Tests dialog, which is based on the type of folder or object in the Navigator view from which you opened the Run Tests dialog. The test sets are also used to specify which tests are run in the default set of tests.
You can see these categories and test sets if you open the Run Tests dialog (right-click a folder in the Navigator view, then click ) and look at one of the test configurations on the Tests page of the dialog.
You can create new categories (like the Queue manager tests category). You can also create new test sets (like the Queues test set) in a category, and even new subsets in an existing test set.
If you create new object types and folders to display in the Navigator view of IBM MQ Explorer and you want to create tests that verify definitions of the new object types, you can define the new object types so that they are displayed as options on the Objects page of the Run Tests dialog.
- Creating a new test
set in an existing category (
com.ibm.mq.explorer.tests.Testset
) - Creating a new category
and test set (
com.ibm.mq.explorer.tests.TestCategorys
) - Defining a new object
type to be tested (
com.ibm.mq.explorer.tests.ContextGroup
)
Do the following tasks in the Plug-in Development perspective.
Creating a new test set in an existing category (com.ibm.mq.explorer.tests.Testset
)
About this task
To create a new test set in an existing category (a category that you did not create; for example the Queue manager tests category):
Procedure
Results
You have created a new test set in an existing category.
Creating a new category and test set (com.ibm.mq.explorer.tests.TestCategorys
)
About this task
If you are creating a new category, you can create test sets in that category by using a single extension; that is, you do not need to use the separate com.ibm.mq.explorer.tests.Testset extension as well.
To create a new category:
Procedure
Results
You have created a new category.
What to do next
To create a new test set in this category:
- Right-click the category, then click All Extensions pane. to add a new test set to the
- Configure the new test set according to the details in the table in Creating a new test set in an existing category. Notice that you do not set a categoryID attribute because you are creating the test set in the category that you just created.
- Save the plugin.xml file.
You have created a new test set in the new category.
Defining a new object type to be tested (com.ibm.mq.explorer.tests.ContextGroup
)
About this task
If you have created new types of objects to be displayed in the Navigator view of IBM MQ Explorer and you want to create tests to check definitions of
the new object types, you must define the object types by using an
com.ibm.mq.explorer.tests.ContextGroup
extension. This extension displays a new
high-level group in the Run Tests dialog on the Objects page at the level of
the supplied Queue Managers, Clusters, and
Queue Sharing Groups groups.
To define a new object type:
Procedure
Results
You have defined the new group of objects for which you can run tests.