Get custom field value using ITestCase interface
-
23 марта 2011 г. 11:58
Hello,
I'm trying to get 3 custom fields values by using ITestCase interface.
2 of the custom values are booleans (True / False) and one is free text field.
The Booleans value I get using
testCase.CustomFields["Known Dev Defect"].Value.ToString()
is the default value ("False") , and for the free text I get empty string , which is incorrect
The custom fields XML definition:
<FIELD reportable="detail" refname="Microsoft.SSDQS.KnownDefectComments" name="Known Defect Comments" type="String">
<HELPTEXT>Known Defect Comments</HELPTEXT>
</FIELD>
<FIELD reportable="dimension" refname="Microsoft.SSDQS.KnownDevDefect" name="Known Dev Defect" type="String">
<ALLOWEDVALUES>
<LISTITEM value="True" />
<LISTITEM value="False" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="False" />
<HELPTEXT>Is test case has a known dev defect</HELPTEXT>
</FIELD>
<FIELD refname="Microsoft.SSDQS.KnownTestDefect" name="Known Test Defect" type="String">
<ALLOWEDVALUES>
<LISTITEM value="True" />
<LISTITEM value="False" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="False" />
</FIELD>Is there any solution for this problem ?
Thanks, Ayelet
- Перемещено Cathy KongMicrosoft Contingent Staff 29 марта 2011 г. 6:21 related with Test Manager (From:Team Foundation Server - General)
Все ответы
-
29 марта 2011 г. 6:21
Hi Ayelet,
Thanks for posting the issue here and sorry for the delayed response!
I think this issue is more related with Test Manager, so I am moving this thread to Testing with Visual Studio Test Manager (MTM) for better response.
Hope it helps!
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


