Computer_Resear
17 years agoOccasional Contributor
Property Expansion replaced with actual values on exit from soapUI
In a project, we have a testsuite and few data driven testcases . Each of the testcase uses the same excel file for input data. We decided to use the property expansion to set the input file name. I setup the project property Resource Root to ${projectDir}. Then in the custom properties for the project, I added a new property called inputFile and gave it a relative value from the resource root like ..\input\testInput.xls
Next, in my Datasource steps, I set the File value to ${#Project#inputFile}. I am able to successfully run the testcases. Next, I exit soapUI (after saving), and I reopen soapui. In all the testcases and datasource teststeps where I set the File value to ${#Project#inputFile}, soapui has resolved and replaced the property expansion to the actual value (absolute path like c:\soapuiprojects\tests\input\testInput.xls).
I have tested this in both 2.5 and 2.5.1 versions of soapUI pro. How do I make soapui to not replace the property expansions with actual values.
Thanks,
Srini
Next, in my Datasource steps, I set the File value to ${#Project#inputFile}. I am able to successfully run the testcases. Next, I exit soapUI (after saving), and I reopen soapui. In all the testcases and datasource teststeps where I set the File value to ${#Project#inputFile}, soapui has resolved and replaced the property expansion to the actual value (absolute path like c:\soapuiprojects\tests\input\testInput.xls).
I have tested this in both 2.5 and 2.5.1 versions of soapUI pro. How do I make soapui to not replace the property expansions with actual values.
Thanks,
Srini