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 - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -