Forum Discussion

jbuttimer's avatar
jbuttimer
Contributor
10 years ago

How can I get Environment using only the DataSink step?

We have multiple environments and are using the Environments tab to store them. 

 

Is there any way to get the environment from the Environments tab? I can get the Custom Properties, but I cannot get the associated environment. I don't want to have to add a Custom Property of Environment because I should be able to get it from somewhere. 

 

Any help? Trying to just use DataSink rather than a Groovy script. 

 

Thanks

3 Replies

  • Hi Jbuttimer,

     

    As far as I know it’s impossible. If you desire to see this functionality in Ready! API, you can submit a product improvement idea here. If your idea gets many votes, our team could consider implementing it.

     

    • jbuttimer's avatar
      jbuttimer
      Contributor

      nmrao - 

       

      Well, I may not be thinking of using DataSink the way it's designed, but here's my thoughts.

       

      We have 6 different environments and they are set up in the Environments tab. 

       

      We run the scripts through MS Task Schedular through a PowerShell script for multiple environments every night. 

       

      The Environment variable is passed in through the call to testrunner

       

      What I was hoping for is to use DataSink to create an Excel spreadsheet with one of the fields being the environment that is passed in.

       

      Jena