4

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?

pnuts
  • 58,317
  • 11
  • 87
  • 139

1 Answers1

4

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

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Tarun Arora
  • 4,692
  • 4
  • 30
  • 40