I am trying to create a generic paramaters “form” at the start of my test. These selected parameters will be used to build a JSON file for passing into my software package, and also ultimately for sending commands to the DUT as part of the Testing.
The challenge is that I have a hierarchical set of selections, for example:
1.) First Select Test Standard
2.) This will then limit the selection of DUT Types
3.) The DUT Type will then limit the selection of Modulation Formats
4.) The Modulation formats will then limit the selection of Data Rates.
I have tried this with Lists using Dictionary entries, and with enums. At least with enums, I can get the displayed lists to change based on the scenario above, and have no luck figuring out how to do that using lists.
With the enums, however, it is possible that the data rates could be the same for different DUT Types and modulation formats, thus my trying to use multiple conditions in the EnableIf statement, but that does not seem to be working. Here is an example of the Display code I used for one of the Data Rate choices:
[Display(“54”, “Shows the use of available values attribute.”, Order: 2.312, Group: “Data Rate”)]
[EnabledIf(“DutType2G”, DUTType2G.WLAN2_4GHz, “DutType5G”, DUTType5G.WLAN_5GHz_20MHz, HideIfDisabled = true)]
[EnabledIf(“Standard”, StandardVersion.EN_300_328, “Standard”, StandardVersion.EN_301_893, HideIfDisabled = true)]
[EnabledIf(“ModulationWiFi5G20”, ModulationWiFi5G20._11a20_Band1_2, “ModulationWiFi5G20”, ModulationWiFi5G20._11a20_Band3,
“ModulationWiFi5G20”, ModulationWiFi5G20._11a20_Band4, “ModulationWiFi2G”, ModulationWiFi2G._11g, HideIfDisabled = true)]
public bool DataRate54 { get; set; }
That does not seem to be working.
Does anyone have examples of how to enable hierarchical drop down lists?