Completed
Last Updated: 07 May 2014 14:22 by ADMIN
sitefinitysteve
Created on: 30 Aug 2013 18:43
Type: Feature Request
1
Extensions/helper coded functions
I want the ability to create my own test extensions...like a reusable library of custom coded functions I can use on any test.

I don't want external tests and link them in with "test as step"...I want my own dropdown in the ribbon bar, or put them under "More".

Example:
Assert.IsTrue(ActiveBrowser.Url.Contains("site=cs6"), "Site isn't in the querystring");

I'd like to create a method that's called "ValidateQueryString(string key)"
...then wrap that code into there...then if I ever need to change the logic I'm not having to open 40 tests.

Or whatever right...
1 comment
ADMIN
Konstantin Petkov
Posted on: 02 Sep 2013 12:24
Hi,

I slightly modified the title here to clarify it's about code.

We currently recommend the approach described here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/utility-in-standalone.aspx

Which doesn't require test as steps. However I have to admit Test Studio is currently limited to code dependent on other tests, e.g. you need a test hosting your helper code.

Thanks for the feedback!