Won't Fix
Last Updated: 12 May 2020 14:48 by ADMIN
ADMIN
Cody
Created on: 20 May 2013 19:37
Type: Feature Request
4
Need method of global parameters for data driven tests
It would be useful to have a method where you could specify global/environmental variables/parameters that is separate and independent from the data driven feature. These global parameters would be avalaible to all tests using the Data Driven interface of binding values to test steps, but would not be mingled in the data source itself. This way you can create a data driven test that runs iterations but keep the environmental static data e.g. userid's to login as, separate from the data itself.
5 comments
ADMIN
Elena
Posted on: 12 May 2020 14:48

Hi Ray,

The Execution extension is actually a custom dll you can build for your needs - this is a class library you develop in Visual Studio as a separate project. Then, the built dll should be placed in the Test Studio installation plugin folder in order to be used when running tests.

Please, take the time to review the details in the Execution extension article and the samples listed in it to get an overview of how you can create one as per the needs you have. In addition to this, there is an ongoing forum post you recently submitted, which also refers the same topic. Thus I suggest we continue the discussion on the case and implementing such custom solution in that mentioned thread.

Since Test Studio provides different options to operate with custom environmental variables in code (standalone class file in the project or implement Execution extension), the feature request item was assessed internally and at this point we will not take further actions on it. Thus, the item is moved to 'Won't fix' state. 

Regards,
Elena
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Ray
Posted on: 08 May 2020 20:33
A custom execution extension might work. But I use TestStudio and not the Dev product. Is there a way to do this that uses TestStudio?
ADMIN
Elena
Posted on: 29 Aug 2019 12:38
Hello Ray,

You may have missed the post in this item, which recommends to review the options you have in using the Execution Extension. As of today's perspective, I can propose to explore the option to implement a standalone helper class file in a Test Studio project and then reuse its variables and methods in the coded steps across the tests in the project.

Here is also an example of a helper class file, which you can refer to. 

Regards,
Elena
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!

Ray
Posted on: 26 Aug 2019 20:34

Hm. Six years and nothing on this suggestion? The suggestion below does not help me, unless I can create these using the Test Studio IDE only.

I can see a workaround for some of these issues.

Can we have some accessibility of environment variables in code? For example, if my code could access the following values, then I could do anything I wanted:

BASE_URL

WEB_USERNAME

WEB_PASSWORD

CURRENT_TEST_LIST - the name or NULL, if not running a test list.

CURRENT_TEST - the name

CURRENT_STEP - the name or NULL, if not in a step.

BROWSER - the name

BROWSER_VERSION - the name and the version.

OS_VERSION - the name and the version.

HOST - the name

HOST_IP - the active network interface

anything else? Perhaps.

 

 

 

ADMIN
Konstantin Petkov
Posted on: 09 Jul 2013 11:12
Hello,

I'm not sure I understand that request. I assume this is about passing custom values in a data-driven execution, is that correct?

A custom execution extension may help in such a case -- one can pass whatever data is needed based on custom conditions:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/execution-extensions.aspx

I hope this helps!