How to create a Batch Queue Item Creator Plug-in
Test Script Runner is developed using the Component Object Model (COM) which allows you to develop your own software and add it to the batch queue system. Your plug-in could enable you to add a build file to the batch queue and for your plug-in to install this software prior to running test scripts on the new software. You can develop you plug-in using any language that supports COM.
There are two COM interfaces that you need to implement in order to add a batch queue item plug-in to the system:-
An object implementing this interface provides the system with the actual plug-in code that performs the required task on the file added to the batch queue. When a file is added to the batch queue matching this batch queue item its filename is supplied via the FileName property. This should be stored for use when the Execute method is called. The Execute method should set the status to BatchQueueItemRunning and launch a thread to perform the work. Once the thread has completed its task it should set the status to BatchQueueItemPassed, if successful or BatchQueueItemFailed if unsuccessful.
An object implementing this interface provides the system with the details of what file extension types are accepted for the Batch Queue Items that can be created via this plug-in. This object must be registered in the system registry in order to allow the system to create it given its class identifier (CLSID) or program identifier.
The batch queue item creator provides a list of file extensions that it supports and a create method that returns a new Batch Queue Item that handles the corresponding file extension. Please note the same Batch Queue Item can be coded to handle multiple file extensions should this be required.
The following links show how to create a Batch Queue Item plug-in that pretends to install software with a file extension of .bqdemo.