Use Shared Step's Parameters in multiple Test Cases Not working

問題 Use Shared Step's Parameters in multiple Test Cases Not working

  • 2012年2月28日 下午 04:30
     
     

    In the "re-use parameters over several Test cases" thread, it was indicated by Okacha Abed

    From "adding parameters to your shared steps": "If you do not provide data for the shared steps parameters in the test cases that include these shared steps, the data in the parameters of your shared steps will be used when you run your test. "

    This doesn't work for me.  If I don't add data to the parameters in the test case, I get an error message when I try to run the automated test tha the table in the test case is empty.

    Any help would be appreciated!


    laurie l clos

所有回覆

  • 2012年3月1日 上午 09:33
    版主
     
     

    Hi clos,

    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Best Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

  • 2012年3月5日 上午 09:23
     
     

    Hi Closl,

    How can I repro the issue?

    Thanks!


    Sophia Lu [MSFT]

  • 2012年3月8日 下午 05:41
     
     

    Hi Sophia,

    I got frustrated with it and decided to use an XML file for parameter values.

    These are the steps I was using before I did that.

    Create a Test Case with parameters

    Enter values into Parameters of test case

    Create shared steps with same parameters.

    Enter values into Parameters of shared step

    Remove values from parameters in Test Case

    Run test


    laurie l clos