Seapine Labs
Personal tools

TestTrack TCM TestComplete Script Agent

From Seapine Labs

Jump to: navigation, search

Posted by Rcohen

Works with TestTrack TCM 2008 and higher

Contents

[edit] About

This script agent enables TestComplete scripts to be executed from a test case or test run in TestTrack TCM, and provides the ability to attach the results following the run.
The TestComplete script agent is written in VB Script and is based on the QA Wizard Pro script agent source code mentioned in the TestTrack TCM Script Agents article. It executes the TCProject.tcbat file, a batch file that executes the project and sets the error code based on the returned result.

[edit] Installation

Download and unzip the TestCompleteScriptAgent.zip file and place the TCBatAgent.bat and TCBatAgent.vbs files in the ScriptAgents folder of TestTrack ("C:\Program Files\Seapine\TestTrack Pro\ScriptAgents”.)
Choose Tools > Local Options then select the View File category. Add the .tcbat file extension, and set the ‘Open files with:’ drop-down to Selected Application. Browse to the location of the script agent and click on “TCBatAgent.bat”, then click OK. This will run the actual script agent.

To view the results from test runs add the .pjs file extension, and set the ‘Open files with:’ drop-down to Selected Application. Browse to the location where TestComplete is installed (“C:\Program Files\Automated QA\TestComplete 6\Bin”), and click on TestComplete.exe, then click OK.
Modify the TCProject.tcbat file to set the %PROJPATH% variable to the location of the TestComplete project suite. You may also want to rename the file to reflect the name of the project (i.e., MSOffice.tcbat to test the MSOffice.pjs project suite), since that will be the name given to the report file.

If the TestComplete script files are attached to the testcase as source code files, you can modify the .tcbat file to use the source control CLI to place the files in the %PROJPATH% folder.
Add the .tcbat file to the testcase as an attachment, and mark it as a script (Refer to the TestTrack TCM documentation for more information.)

[edit] Running

TestComplete scripts can be launched from either a test case or a test run. (Refer to the TestTrack TCM documentation for more information.)

The test results are kept in TestComplete log files that can be viewed from the test case or test run they are associated with.

[edit] Downloads

TestCompleteScriptAgent.zip Download

[edit] Known Issues

Prior to executing the .tcbat file the %PROJPATH% directory must contain the appropriate project suite file (*.pjs), project file (.mds), and script files (Script.tcscript and .scpp/.scs/.sd/.sj/.svb)



Note: Seapine does not provide support for sample scripts.














Issue Management Software | Source Code Control Software | Test Case Management | Requirements Management Software