kwiegandt's avatar
kwiegandt
Occasional Contributor
10 years ago
Status:
Accepted for Discussion

Call shared steps within a test and at execution, include the detail of the shared steps.

We need a method by which a step or series of steps can be written once and called from multiple tests. For example, I want to write a login procedure and then call it from other tests. Specifically, I want to have a test step something like “Call ‘Login’”. At execution, this step would be replaced by the steps in the test called “Login”. I do not want to copy the steps (as we do now), because then I have to maintain those steps in many places.

10 Comments

  • tlabl's avatar
    tlabl
    Contributor

    In a previous tool that my team used this was possible and very useful.  QAC needs to include this capability.  I agree with OP that it creates a lot of places to maintain the same steps.

  • Is this already a feature (RE-USE/SHARED STEPS) in the latest release of the Tool? This is very useful in maintaining the automation test suite, by just editing those SHARED STEPS being accessed by multiple test cases in multiple test suites. This will also save a lot of time.

  • vvg's avatar
    vvg
    Occasional Contributor

    Why doesn't this feature have the status "implemented" yet?

    To me it feels like the ability to add a keyword or script routine to the test you are working on, is already the solution for the question here.

  • JNowak's avatar
    JNowak
    Regular Visitor

    Yes, this is a needed feature within QA Complete. 

  • Novari-QA's avatar
    Novari-QA
    Frequent Contributor

    This would be amazing. Currently our team is presented with a major issue, and this would solve it.

  • Dan_Gawarecki's avatar
    Dan_Gawarecki
    Occasional Contributor

    I'm surprised this isn't in the product already.  I have used this capability in Microsoft's TFS -very useful, for it saves a lot of time writing tests, *and* maintaining them.

     

    Would ideally be accompanied by a tracing feature of "Here's the list of test cases that use this 'shared steps' component.".  This one allow evaluation of an update to the shared steps (that is, does the update break any of the tests that reference/use the shared steps).

  • Novari-QA's avatar
    Novari-QA
    Frequent Contributor

    The tracing feature would be awesome aswell. Id also like to have the ability to parameterize the data in the steps defined by another test case.

  • Dan_Gawarecki's avatar
    Dan_Gawarecki
    Occasional Contributor

    Ooohhhh - parameterize the data - great idea Novari-QA!  Perhaps not absolutely required at first release - so as to get "shared steps" out for use/feedback - but definitely in release after that. 

    EXAMPLE Usage:  "parent" test case calls the shared steps "Login" with parameter of "Admin" for first run of test, then next run could be Login as "typical user", and 3rd run as "Support".