AutomatedQA: Award-winning tools for software testing and quality assurance

Home » Products » TestComplete » TestComplete - Integration With Microsoft Visual Studio Team System and MSBuild

Integration With Microsoft Visual Studio Team System and MSBuild

Microsoft Visual Studio Team System, part of Microsoft Visual Studio, includes tools and technologies for all members of software development teams: project architects, developers, managers and, of course, testers. TestComplete integrates with and supports these tools giving testers and Quality Assurance personnel the possibility to —

Furthermore, TestComplete integrates with MSBuild, which makes it possible to —

TestComplete integrates with the following Team System versions:

  • Microsoft Visual Studio 2005 Team System
  • Microsoft Visual Studio 2008 Team System

Extending Visual Studio Tests with TestComplete Test Projects

TestComplete includes a Visual Studio Team System integration package that adds a new test type - TestComplete6 test - to Visual Studio:

After you add a TestComplete test to your Visual Studio test project, you can modify the test property using a special dialog in Visual Studio:

In the Visual Studio editor, you can specify the TestComplete project suite with the desired tests and select the specific test items to be executed.

After you modify the TestComplete test properties, you can switch to the Test Manager panel and select the test for execution.

After Visual Studio finishes running the tests, you can view the results of the TestComplete test execution directly within Visual Studio:

Working With the Team System Issue-Tracking Database

In TestComplete Enterprise you can create issue-tracking templates that let you post items to, or modify items stored in the AQdevTeam or Team System issue-tracking databases.

The template settings can be easily set or changed in TestComplete’s Template Editor.
Once you have a prepared template, you can create issue reports visually from results shown in the test log:

- or by calling a single method:

Running MSTest Unit Tests From TestComplete

TestComplete includes a Unit Testing project item that lets you call unit tests created with MSTest directly from your TestComplete project. By using this functionality you can easily integrate Visual Studio unit tests into the collection of tests that you use to test your applications.

Add the Unit Testing item to your project.
Add the MSTest item to your project.
Modify test properties using the special editor.
Specify the path to MSTest.exe in TestComplete's settings.

Calling TestComplete Tests From MSBuild Projects

TestComplete Enterprise edition contains the MSBuild Integration package which allows you to perform actions, recorded as TestComplete tests, during the build process initiated by MSBuild.
Below is a typical example of executing a TestComplete project suite from an MSBuild project:

File: MSBUILD.proj   
<!-- Root element of the MSBuild project -->
<Project DefaultTargets="Build"
  xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 
  <!-- Declares the task type, ExecuteSolution, that will be used to run TestComplete projects
  (TC6 is a namespace).
--> 
  <UsingTask TaskName="TC6.ExecuteSolution" AssemblyName="msbuildtc6task, Version=1.1.0.0,
Culture=neutral, PublicKeyToken=5a74e076ecc789f9"/>
 
  <!-- Target -->
  <Target Name="Build">
 
  <!-- Executes the task.
   Note that the tag name, ExecuteSolution, coincides with the registered task name. 
  -->
    <ExecuteSolution
      SolutionFile="C:\MyProjects\MyProjectSuite.pjs"
      StopIfFail="true"
      AdditionalOptions="/project:MyProject"
      GUIInteractive="true"
      LogFile="c:\MyProjects\MyResults.mht"
    />
  </Target>
</Project>

By using this method you can achieve all of the benefits from TestComplete scripts in your MSBuild projects: work with applications via the user interface, access the internal structure of "open" applications, perform unit testing and a lot more!

 
For more information on TestComplete and other Quality Assurance products from AutomatedQA, write to us at sales@automatedqa.com.

Copyright © 1999-2008, AutomatedQA, Corp. All Rights Reserved.
Home | Legal | About | Contact | Site Map | Print