title: How to implement a multiple user login for tests that are extracting login details from a file that holds the user ids
body: <p>I have a web application which I am testing with Selenium and Maven running parallel tests. At the moment, I am defining the login ids for every test. What I need is a solution where I will have a pool of users available to the tests. While the execution runs the tests will pick user ids to login from this pool. Once a parallel test is done the user Id should be released and become available to the next tests. The pool should be monitored and tests should be executed only when one or more users are available so I will avoid failures due to users unavailability. </p>
  
  <p>I am new to this, so I am looking for some ideas / advises how I can implement the above. I am using Java.</p>