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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -