Answered MTM - Custom Parameters

  • Friday, May 11, 2012 8:13 AM
     
     
    I have a question regarding a manual Test Case in Microsoft Test Manager. Is there a way to define 'custom' parameters?

    Normally, you can define whatever parameter you want, like @FirstName. This parameter will automatically be added to the list of parameters of your testcase.

    But I was wondering if there is something like '@Date'.. which replaces itself in a -DateTime.Now- equivalent?

    Thanks!

All Replies

  • Friday, May 11, 2012 8:43 AM
     
     Answered

    Hi Liskanet99,

    Unfortunately that is not supported out of the box. The parameter parser does not understand special parameters. So, @date will not give you DateTime.Now

    You can however, convert the test to a coded UI test and overwrite the parameter value to pass DateTime.Now when @date is passed. 

    However, i like your suggestion and would recommend that you raise it on the user voice site here => http://visualstudio.uservoice.com/forums/121579-visual-studio 

    HTH
    Cheers, Tarun


    Please remember to mark the replies as answers if they help.

    Tarun Arora

    Blog: http://geekswithblogs.net/TarunArora  Subscribe in a reader

    • Marked As Answer by Liskanet99 Wednesday, May 16, 2012 10:55 AM
    •  
  • Monday, May 14, 2012 1:32 AM
    Moderator
     
     

    Hi Liskanet,

    Thank you for your post.

    MTM is mainly used to manage test. And, MTM do not expose any method to edit settings or add paramaters. You'd better change manual test to Coded UI test to support parameters customization. Then associate the test method with a test case in MTM, that you can manage the test in MTM.

    Some articles for you to refer:
     
    http://msdn.microsoft.com/en-us/library/dd286681.aspx
     
    http://msdn.microsoft.com/en-us/library/dd380755

    If anything is unclear, please free feel to let me know.

    Best regards,


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

  • Monday, May 14, 2012 8:38 AM
     
     

    Liskanet99, 

    Does this reply answer your question? 

    Feel free to contact us if you have any follow up questions.

    HTH
    Cheers, Tarun


    Please remember to mark the replies as answers if they help.

    Tarun Arora

    Blog: http://geekswithblogs.net/TarunArora  Subscribe in a reader

  • Wednesday, May 16, 2012 10:55 AM
     
     

    Yes, thanks for response. I know about manage this as CUI but I was curious if there is possibility also for manual test for our QA.

    Thanks