cancel
Showing results for 
Search instead for 
Did you mean: 

DataSink to different files when switching between Environment

SOLVED
Highlighted
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
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
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
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script 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