Point Multiple Coded Steps to Single Method

4 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    2 posts
    Member since:
    Apr 2014

    Posted 06 Jan 2015 Link to this post

    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!

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 06 Jan 2015 Link to this post

    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
     
  3. Jeremy
    Jeremy avatar
    2 posts
    Member since:
    Apr 2014

    Posted 07 Jan 2015 Link to this post

    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
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 07 Jan 2015 Link to this post

    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
     
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!