Forum Discussion

kotelius's avatar
15 years ago

How to use TestSuit Properties?

Hello All.
I have following question: How can I use TestSuit Properties in TestCase?
And is it possible at all?
I need it because of TestSuit contains about 30 TestCases and for each TestCase i should create properties which for some Test Cases are the same. I don't want to duplicate such information.

And one more question. Properties which were defined in Global Properties will be available for all projects?



Thank you in advance.
  • 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,
    -