Reduce repetition in java code with dynamic object naming? -


a testcase aims access array of machines via dynamic objects names, following possible?

    string[][] mysession = new string["win7"]["firefox"]; //mysessionwin7firefox     string[][] mysession = new string["win7"]["ie"]; //mysessionwin7ie     string[][] mysession = new string["win10"]["edge"]; //mysessionwin10edge      mysession[win7][firefox] = new remotewebdriver...;     mysession[win7][firefox].get(myurl);     mysession[win10][edge].dostuff(); 


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

Trouble making a JSON string -

sitecore - Resolve ISitecoreService using SimpleInjector -