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.

View solution in original post

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.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Check out the new challenge!

Create a script to generate a request body based on data from Datasource
for the TechCorner tag.
Your input is appreciated!


Scripts created this month:
- A scriptd to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors