Azure Pipeline - Variables Not passed to my test
Hi all,
So I have a project suite in which I have defined a variable 'AppPath' which points to the directory where my exe is located.
In my pipeline I follow (i believe) all the steps required from Run TestComplete Tests as Part of a Pipeline | TestComplete Documentation (smartbear.com)
So I do pass the variable to the testexecute.
However for some reason it doesn't seem to work.
and get an error: Unable to run "SESFFT"
Please note that I have verified that the path injected to TestExecute is correct and the exe is at the expected location.
When i hardcode the expected path in the TestComplete variable, the test works on the build server.
What i weird is that during my trial i managed to make it work and was working fine. Obviously i must have change something which broke it.
I do have multiple questions:
1 - Anyone knows what can be wrong? It seems like passing the Variable in the TestComplete adapter is not working
2 - Is there a way to improve the debug message output from TestExecute. Current I the error shown is something like 'Path not found' but i dont see what is the path that it tried. It is very hard to debug when you cant see what values are being tried.
Also i have tried using a project variable instead of a project suite variable. No luck.
Thank you for the help.
I figured it out! 😀
TestExecute was opened on the build server which was failing.
Therefore my pipeline was using the opened instance to run the tests (which was opened i guess with no params).
By closing it, the pipeline would open a new instance with the correct parameters.
I would suggest to have a option on the 'Enable support for testcomplete test' task to 'Force new instance' that would auto-reload the tool to ensure that the correct param are used.Thank you!