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

How can we create user defined functions and function library for a test

2 Answers 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishal
Top achievements
Rank 1
Vishal asked on 06 Sep 2013, 11:35 AM
I want to create a user defined function and a function library for a test. So that i can associate the function library with the test and can call the functions.

2 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 2
answered on 06 Sep 2013, 11:59 AM
The following is what helped me get started, and now I've written quite a few classes with methods:

Utility Class in Test Studio Standalone:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/utility-in-standalone.aspx

Hopefully that will help you as well.

Thanks,

Dan
0
Boyan Boev
Telerik team
answered on 09 Sep 2013, 02:04 PM
Hi,

@Daniel - Thank you for your input and helping others.

@Vishal -  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
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Vishal
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or