Smart Folder Condition not reading correct value from global parameter

Ask general questions here.
bwood
Posts: 16
Joined: Mon Jan 28, 2019 2:52 pm

Smart Folder Condition not reading correct value from global parameter

Post by bwood » Mon Mar 18, 2019 1:56 pm

Hi,

I have a global parameter in my Test Suite called "11installstatus". At the beginning of my suite, a code module runs that then sets the value of status using
TestSuite.Current.Parameters["11installstatus"] = "C";
I then check the value using
Report.Info("Value", TestSuite.Current.Parameters["11InstallStatus"].ToString());
to ensure that the value was set correctly.

I then have smart folders that run conditionally if the parameter is a certain value. However, the folders always state that the rule wasn't matched. Even when I set the default value to the one that is needed to run the folder, the folder does not run.

What am I missing here?

bwood
Posts: 16
Joined: Mon Jan 28, 2019 2:52 pm

Re: Smart Folder Condition not reading correct value from global parameter

Post by bwood » Mon Mar 18, 2019 2:00 pm

Not sure if answering my own post is ok, but if anyone else is having this problem I solved it by realizing that I had two parameters with the same name in different scopes. Tricky to solve because they are both referenced the same way.