Description in OpenTap.TestPlan and OpenTap.TestStep?

Seems that testplan description is not exposed in OpenTap.Testplan?
Same for teststep description in OpenTap.TestStep. (16.2 Beta)
What am I missing?

Hi @GoranJohnsson,

You mean as a property? It is a kind of dynamically attached property.

You can get/set it using reflection, e.g:

// get
TypeData.GetTypeData(plan).GetMember("OpenTap.Description").GetValue(plan)
//set
TypeData.GetTypeData(plan).GetMember("OpenTap.Description").SetValue(plan, value)
2 Likes

Okey. How come these properties are so non-intuitive to access?

Got it to work now. So to get a TestStep Description you have to:
TypeData.GetTypeData(stepItem).GetMember(“OpenTap.Description”).GetValue(stepItem);

4 Likes