Add using in new Code Behind File

4 posts, 0 answers
  1. Michael
    Michael avatar
    21 posts
    Member since:
    Apr 2013

    Posted 25 Jun 2013 Link to this post

    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.

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 25 Jun 2013 Link to this post

    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
  3. Michael
    Michael avatar
    21 posts
    Member since:
    Apr 2013

    Posted 25 Jun 2013 Link to this post

    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
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 26 Jun 2013 Link to this post

    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
Back to Top