Forum Discussion
this is more of a procedural question related to how you are using Bamboo.
where you store your TestComplete files on your development machine is entirely unrelated to your test execution, since I'm assuming that you are using Git in order to have it as a part of your execution process so that you can pull the files as needed on your execution machines. the logic here is that you will pull the files as a part of a build in a CI framework later, on those other execution machines. The files are usually stored in a predefined workspace, or a build directory when you pull from SCM via a CI framework as a part of your build step.
a simple build without any triggers will look like this:
1. Bamboo pulls the TestComplete Project Suite you want to run from Git. (This is pulled to a default build directory).
2. you point to the TestComplete project suite you want to run, and this will always be using the same predefined dynamic variables (this is referring to the default build directory that Bamboo pull the files into in step 1.)
https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html
this is a list of all of the different predefined variables offered by atlassian bamboo. My intuition tells me that its most likely going to be
bamboo.agentWorkingDirectory |
so the path of the pjs that you point to will look something like bamboo.agentWorkingDirectory\myProject.pjs
If you are having trouble configuring this, I'd suggest looking into Atlassian support, or browsing their channels for anything related to dynamic predefined variables, agent based execution of SCM files, etc.
Hi hkim5,
Thanks for the reply.
A further question, if the Default project folder is set to a relative path as described, how does testComplete auto flow that path to other areas of the tests that might be using a different location.
For example I have Regions under the Stores, which contains images files at a location different to the default project folder, would I have to manually re-point all the images files to the new default project folder.
Cheers
- hiepwork085 years agoContributor
It turns out the based directory created by BAMBOO can be obtained using the get-base-directory() function.
I have embedded the testcomplete tests to be executed in BAMBOO build script which has defined the GIT root path:
<property name="root.dir" value="${project::get-base_directory()}"/>