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

Point Multiple Coded Steps to Single Method

3 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeremy
Top achievements
Rank 1
Jeremy asked on 06 Jan 2015, 05:01 PM
Hi,

I'm trying to point multiple coded steps to a single method.  Is this possible?  Right now, I have multiple coded steps pointing to their own method.  Those methods are then pointing to a different coded method.  If it's possible, I'd like to link the test steps in VS2012 to the single method.  Below is an example of what I have and am looking to do.

Currently:
Step 01: Do stuff
...
...
Step 26: Validate Grids Step 1  
     (points to the codedStep1 method)
     codedStep1 points to another method named validateGrids
...
...
Step 41: Validate Grids Step 2
     (points to the codedStep2 method)
     codedStep2 points to another method named validateGrids

I would like to have stpes 26 and 41 point directly to validateGrids.

Is this possible?

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 06 Jan 2015, 09:52 PM
Hello Jeremy,

The method you have already implemented is about the best there is. The only alternative would be to put the one coded step into a subtest then call the sub test via test-as-a-step. You can call the same subtest as many times as you like from the parent test.


Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Jeremy
Top achievements
Rank 1
answered on 07 Jan 2015, 03:25 PM
Thanks for the response, Cody.  I was hoping to clean up the code a bit, but if this is the only way to do it without creating a sub-test, it is what it is.  Thanks again.

-Jeremy
0
Cody
Telerik team
answered on 07 Jan 2015, 05:34 PM
Hi Jeremy,

Yes you understand correct it's not possible today. I created this feature request for you. Hopefully we can find a way of implementing this in the UI in a future release.

Closing as resolved.

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