Forum Discussion
- Hi,
Please try setting the source-file property of the properties teststep in your second testcase to the name of the properties file created by the first testcase.
regards!
/Ole
SmartBear Software - SoapUser2012Occasional ContributorHi ,
you mean i set the property transfer step's source value to "test case 1" propertyfile name and target to property step in test case 2 ?
Even then i don't see test case 1 steps listed in test case2 property transfer and vice versa.
I saw in property step property , it doen't have a option to get the value directly from source file unless property tranfer is used.
In property transfer i see only the steps of that test case only along with global and testsuite names .when clicked on test suite in source file drop down ,property drop down becomes empty. pls help.
Other thing i wanted to know is can we have something like Global data so that all test cases use it .
thanks, - Hi,
the Properties TestStep has both "Load From" and "Save To" fields at the top of the properties table - set the "Save To" field of your first Properties TestStep to some fileName - and set the "Load From" field in your second Properties TestStep to the same - soapUI will write the property values to the file in the first step, and read the same file into the Properties Step in the second.
Hope this helps!
/Ole
SmartBear Software - SoapUser2012Occasional ContributorThat did work .It serves the purpose when u want to have the result of one test case to be used in other .
I'm thinking if we can have one data sheet for all test cases .
when all the test cases should use the data as in the data sheet ,instead of including all the "property file "(data file) in each test case ,its better we can have a global data set?
How can we cahive this?
thanks - Hi,
I would suggest creating a TestRunListener.beforeRun event handler that reads the property file into the properties of the current TestCase - you could specify the name of the file with a custom property at the project level.
regards,
/Ole
SmartBear Software