After registering the example custom test type, it is now ready for use.
Note: It is not recommended to use the station on which the custom test was compiled to run the client with the custom tests. If it is necessary to do so, delete all mentions of MyScriptViewer, MyTestType, and MyRunAgent from the system registry before running the client on the machine.
On the client machine, log off ALM.
In the sample test type, the batch file is created on the client before being transferred to the server. Ensure that the directory used by "CreateScriptTemplate" exists. In the example as provided, the directory is C:\temp.
Open a browser and enter the URL http://<server:port>/qcbin/start_a.htm
. Click the HP ALM link.
In the Test Plan module in the test plan tree, create a test of type My-TEST
. Note that the icon to the left of the test name, in the test grid, indicating the test type, is a question mark (the default).
In the Test Plan module in the test plan tree, select the test you added. Click the Test Script tab to display the test's text inside the MyScriptViewer
control you created earlier.
In the Test Lab module, select and add your test. Run the test. A minimized console window opens, the script commands are run, and the status field of the test is updated to Completed. Press Enter from the console window to close it.