Forum Discussion
ankitaT
16 years agoContributor
Hi,
Yes we can use test suite properties in a test case.
We just need soapUI pro 3.5.1 or higher to use the "Get data" option.
For that, click on test suite name and then on properties tab located in bottom left.
Now click on "test properties" tab in properties window.
Click on the plus (+) sign located in left most corner.
Add a property and assign a value to it.
Now, in the respective test cases, wherever this value is needed, right click in that field (or script)
You'll see "Get data" option. Hover the mouse on it, and the test suite as well as test case attributes will be displayed.
Click on the test suite, the properties will be displayed.
Now select the required property. It will look like ${#TestSuite#<prop name>}
you will need to repeat this for every test case in that tests suite.
This property will be shared throughout all the test cases of that test suite.
Hope it helps.
Regards,
-
Yes we can use test suite properties in a test case.
We just need soapUI pro 3.5.1 or higher to use the "Get data" option.
For that, click on test suite name and then on properties tab located in bottom left.
Now click on "test properties" tab in properties window.
Click on the plus (+) sign located in left most corner.
Add a property and assign a value to it.
Now, in the respective test cases, wherever this value is needed, right click in that field (or script)
You'll see "Get data" option. Hover the mouse on it, and the test suite as well as test case attributes will be displayed.
Click on the test suite, the properties will be displayed.
Now select the required property. It will look like ${#TestSuite#<prop name>}
you will need to repeat this for every test case in that tests suite.
This property will be shared throughout all the test cases of that test suite.
Hope it helps.
Regards,
-