I have 3 modules in my Project and 3 testng files for which different tests should invoke. I want to choose testng_ModuleName.xml as per Bamboo variable (bamboo.module=ModuleName) value while running the customized plan in Bamboo. In pom.xml , ${bambooModule} is used as below:
<suiteXmlFiles>
<suiteXmlFile>${bambooModule}</suiteXmlFile>
</suiteXmlFiles>
Maven goal in Bamboo job:
test -DbambooModule=testng_${bamboo.module}.xml
It gives below error:
\bamboo-home\xml-data\build-dir\JOB1\ProjectName\testng_${bamboo.module}.xml is not a valid file
Not sure where i'm wrong. Can anyone please help.