LennSar
3 years agoContributor
Test Case global assertions
Hi there,
I'd like to test a bunch of bad requests and expect the same return code for all of them. By default my "Valid Http Status Codes" Assertion is configured to only allow 200. For my bad requests however I'd like to change that within a test case to i.e. 502 or 405 or whatever. Having to edit every single request manually is very cumbersome and I was wondering whether there is any way to ease that process.
Thanks,
Lennart
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()}"/>