Forum Discussion

mercyadewoye's avatar
mercyadewoye
Occasional Contributor
3 years ago
Solved

TFS Azure: How to configure testcomplete to take the build path, instead of specifying in script

Hi,  I am trying to run automated tests on our nightly builds and I have specified the path in the command line script, however, the build path is bound to change sometimes. Is there a way testcompl...
  • npaisley's avatar
    3 years ago

    Hello,

     

    We have a TestComplete Test Adapter than can be implemented into Azure Pipelines projects, this allows you to specify a Search Folder and Test filter criteria to find/run applicable tests. This would be one way to avoid having baked in locations in scripts that launch TC/TE. With this adapter installed it can interact directly with either tool without the need for CLI scripts as well. Below is a link to setup of this adapter. I hope this would be relevant to your use case. 

     

    https://support.smartbear.com/testcomplete/docs/working-with/integration/azure/test-adapter/index.html

  • hkim5's avatar
    3 years ago

    you could use the azure devops plugins as npaisley mentioned. (which will actually work as a COM server, not CLI)

    you can also continue to use the CLI instead as you are doing. 

    Im assuming you are doing something like

    <path to testcomplete or testexecute exe> <path to project suite file> <a set of runtime arguments like /r /p /e etc.>

    where you are asking about how to make that highlighted path to the pjs to run more dependable.

    Since you are using pipelines, im going to assume that you are actually pulling the code from a SCM like github etc. (whatever your org uses).

    Then, this path can be referred to using Azure's predefined variables such as :

       $(Build.Repository.LocalPath)
    and you can browse the full list of variables available to you here
  • mercyadewoye's avatar
    mercyadewoye
    3 years ago

    Thank you.