cancel
Showing results for 
Search instead for 
Did you mean: 

DataSink to different files when switching between Environment

SOLVED
Occasional Contributor

DataSink to different files when switching between Environment

Is it possible to export data via DataSink to different files when switching between Environment?

 

For example:

 

Environment

Environment 1
Environment 2
Environment 3

 

TestCase

Soap Request
DataSink
dataEnvironment1.txt->when executing in Environment 1
dataEnvironment2.txt->when executing in Environment 2
dataEnvironment3.txt->when executing in Environment 3

etc.

 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super Contributor

Re: DataSink to different files when switching between Environment

You can add a Project Level custom property to your project, and then this property can be set per environment via the Environments editor.

 

Then in your DataSink test step you can refer to the project property via a property expansion. The easiest way to do this is to right click in the "File" text box in the DataSink test step and use the "Get Data" menu option to select your newly created project property.

1 REPLY 1
Highlighted
Super Contributor

Re: DataSink to different files when switching between Environment

You can add a Project Level custom property to your project, and then this property can be set per environment via the Environments editor.

 

Then in your DataSink test step you can refer to the project property via a property expansion. The easiest way to do this is to right click in the "File" text box in the DataSink test step and use the "Get Data" menu option to select your newly created project property.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors