Forum Discussion

Ivan_Trampedach's avatar
Ivan_Trampedach
Contributor
15 years ago

Using 'Get Data' in same project

Hi,
When testing using SoapUI, I prefere to move header information out in e.g an xml file. That will minimize rework when dev change information.

When I start an new servicetestcase, I create a step DataSource where header information are imported.
In the following steps I am using 'Get Data..' to retrive information.

Is it possible to reuse a DataSource step-properties between testcases in same project? Or do I need to create dataSource for each testcase?

Regards Ivan

2 Replies

  • Hi Ivan,

    You could create a Project Event script for the TestRunListener.beforeRun event that reads the file into properties at the TestCase level. The handler could check for a TestCase property containing the name of the file, which would allow you to use different files and also disable the handler when not needed!?

    Does that make sense?

    regards!

    /Ole
    eviware.com
  • Hi Ole,

    Thanks for indput.
    I will take a look into Eventhandler and see if it is possible for me to code it.
    It is not my best friend

    /Ivan