How to create function/method globally so user can use it in many test script in same project

6 posts, 1 answers
  1. Priyanka
    Priyanka avatar
    21 posts
    Member since:
    Jan 2013

    Posted 22 Aug 2013 Link to this post

    Hi Telerik team,
    I want to call same function/method in many of the web test in same project.
    So is it possible to create then function/method globally and call it in many of the web test in same project????
    And where should i write that function/method???

    Thanks,
    Priyanka
  2. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 27 Aug 2013 Link to this post

    Hi Priyanka,

    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.

    Let me know if this helps.
     

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Priyanka
    Priyanka avatar
    21 posts
    Member since:
    Jan 2013

    Posted 27 Aug 2013 Link to this post

    Hi Boyan,

    Yes, this is work for me as i want.
    Thank you so much for your valuable guidance.

  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 30 Aug 2013 Link to this post

    Hi Priyanka,

    Glad to hear that!

    If you need additional assistance, please do not hesitate to contact us. 

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Priyanka
    Priyanka avatar
    21 posts
    Member since:
    Jan 2013

    Posted 30 Aug 2013 Link to this post

    Hi Boyan,

    I had written another forum but didn't get replay yet.
    Can you please help me out to solve that problem, its urgent.
    Please check out the following forum.
    http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/how-to-pass-excel-worksheet-name-path-as-string.aspx

    Thanks
  6. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 04 Sep 2013 Link to this post

    Hi Priyanka,

    I replied to your other forum question and I hope it resolves your problem.

    Let me know if you need additional assistance
     
    Regards,
    Velin Koychev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top