Creating a vNext Build Containing TestComplete Tests (Running TestComplete Tests as Part of Release Deployment)

Applies to TestComplete 12.60, last modified on September 17, 2018

To run TestComplete tests during the release deployment, create a build that will include your test project and place your TestComplete test files to the needed output folder.

Requirements

The computer, where you create a build definition, must have access to your team project:

  • You can access the project from Visual Studio Team Explorer. To do this, you must have Microsoft Visual Studio 2015 - 2017 (Community, Enterprise or Professional) with the Team Explorer component.

– or –

  • On the computer, where Visual Studio is not installed, you can access the project directly from your web browser by using Team Web Access:

    For On-Premises Team Foundation Server

    http://<Your_Server_Name>:8080/tfs/<Collection_Name>/<Project_Name>

    For Team Foundation Services

    https://<Your_VSO_Account_Name>.visualstudio.com/<Project_Name>

    You can find information on Web Access in the Work in the TFS Web Portal article of the MSDN Library.

Configuring a Build Definition

  1. Open the web portal of your team project. You can navigate to it directly in your web browser, or you can open it from Team Explorer in Visual Studio.

  2. Navigate to the Builds page of the Build & Release hub:

    TestComplete integration with Visual Studio: Build hub in Team Web Portal

    Click the image to enlarge it.

  3. Open an existing build definition or click New to create a new build definition:

    TestComplete integration with Visual Studio: Creating a new build definition or opening an exisitng one

    Click the image to enlarge it.

    In the Create new build definition wizard, configure the definition to be created:

    TestComplete integration with Visual Studio: Configuring a new build definition in the Create New Build Definition Wizard (Team Foundation Server 2017)

    Click the image to enlarge it.

    • Select the needed definition type.

    • On the Settings page of the wizard, specify the build source.

    • Select the queue for the build and click Create.

  4. On the Repository page of the definition, configure your build definition to get the needed files from your source control:

    If You Use Team Foundation Version Control

    Map the source control directories that store your Visual Studio test project and TestComplete projects to the appropriate local directories on the build computer:

    TestComplete integration with Visual Studio: Mapping Team Foundation Version Control folders to local folders

    Click the image to enlarge it.

    If You Use Git or Subversion

    Specify the repository and the branches that store your team project files:

    TestComplete integration with Visual Studio: Repository (Git) Page of the Build Definition

    Click the image to enlarge it.

    Keep in mind that the test project stores the relative path to TestComplete tests. When mapping the TestComplete source control path, make sure to select a local folder to keep the relative path specified in the test project valid.
  5. On the Build page of the definition, specify the details of the build process (what functions the team build will perform):

    • Add a task that will build your Visual Studio test project containing TestComplete tests:

      TestComplete integration with Visual Studio: Adding a task that will build a Visual Studio test project

      Click the image to enlarge it.

    • Add a task that will copy test files to an artifact staging folder on your build computer:

      TestComplete integration with Visual Studio: Copying test files to an artifact staging folder

      Click the image to enlarge it.

    • Add a task that will publish your artifacts to a needed location:

      TestComplete integration with Visual Studio: Publishing artifacts to a drop location

      Click the image to enlarge it.

    You can find information about tasks in the Build and release tasks article in the MSDN Library.

  6. If needed, specify other build properties. To learn more, see the Continuous integration and deployment section in the MSDN Library.

  7. Save the changes.

Creating a Build Instance

Run the created build definition to create a build that you will release:

  1. On the Builds page of the Build & Release hub, click the ellipsis button of the created build definition and then click Queue new build.

  2. In the Queue Build dialog, configure the build run and click OK.

After the build is complete, create a release for it.

Prev     Next

See Also

Creating a Build Containing TestComplete Tests
Defining a Release Process

Highlight search results