Test step name is not updated when we use {UI_PROPERTYNAME} in Test Step Name

Hi Team,

We have a Test step having Two Properties to be Displayed in UI,
Second property is Enabled (EnabledIF) based on the value of first property.
So we have Three properties in Test Step, two will be only shown in the UI at the same Time.

Problem we face is when we say Test Step name as {SecondUIProperty} , it always shows value of the second property, when condition is changed also value is not updated.

With an Example:

If I have two properties

  1. Param 2
  2. Value

image

Param 2 is a combo box that can select two options. User input and variable
image

When we select User Input then a edit button will appear,
If we select Variable then a combo box will appear.

Problem: When I say Test name as Test {Value} it always shows Edit Button value. never shows combobox value.

image

image

My concern:
Test name with {} is working fine for normal properties (With out EnabledIF), but not for Enabled IF Properties.

Please help or suggest the changes.

Regards
Jestin CI

Hi @justin_c_i, I sometimes like to make an additional unique property that is only used for the test step name. Something like this:

public string NameTag
{
get
{
if (enabledMode1)
{
return “test name 1”
}
else if (enabledMode2)
{
return “test name 2”
}
else
{
return “”;
}
}
}

2 Likes

Hi @david-wsd ,

Sure I will try this method.

So you meant to say to use EnabledIF property to displayed in Test step name we need to add an UI additional property?

1 Like

Hi @justin_c_i Sorry for the very late reply! :anguished:

Were you able to achieve the intended functionality?

For what it’s worth, I wasn’t saying anyone needs to do it a certain way, just that I tend to create separate properties just to be used by EnabledIf, and it seems to work well.

1 Like

Sorry for the late reply too. I missed out the message.

Actually it worked. But we rolled up this method and using hardcoded value now.

Thanks for the suggestion.

2 Likes