This is a migrated thread and some comments may be shown as answers.

Add using in new Code Behind File

3 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Jun 2013, 09:25 AM
Is it possible, to create or edit a template for code beinf files(c#),

I would like to set an standard using to a Shared HelperClass in new Code-Behind-Files (sth. like using Shared_Class);
 So i dont have to write it manually in new code-behind files of a test.

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 25 Jun 2013, 12:09 PM
Hi Michael,

Thank you for contacting us.

I am not sure if I understand you correctly.

If you would like to create global variables or functions in Test Studio Standalone version that are accessible from all the tests within the test project, you can create a utility class. This class will contain the intended functions or variables.

If I am missing something please elaborate a bit more on your scenario.

Looking forward to hearing from you.
 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Michael
Top achievements
Rank 1
answered on 25 Jun 2013, 12:15 PM
Hello Boyan,

we are developping and hosting websites for different customers.
I have to create tests for every website in different test projects, but I want to use the same utility class in every project.
I found, that in the utility class i can set a common workspace and in every project where i want to use this class, i have to include it in the project (we always use a folder Shared), let it run once and restart the project.
Than i can use the utility class in my Code-Behind, but - mainly for extensions, i have to include a using for this namespace in every test.

This using i would like to be set automatically when i create a new test.
Thanks for your help
Michael
0
Boyan Boev
Telerik team
answered on 26 Jun 2013, 01:15 PM
Hello Michael,

There is already logged a feature request, which you can follow on our Feedback portal. 

We appreciate your feedback, which we rely on to improve our product. 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Michael
Top achievements
Rank 1
Share this question
or