title: Trouble Passing A User Name and Password Into Robot Framework Command Line Variable
body: <p>I want to run tests against a qa environment as well as production. At the moment these are hard coded URLS. But I want to set which environment to run in the command line. Our QA environment has a user name and password pop up when going to the URL. To get through this quickly I have hardcoded the values in the url like so.</p>
  <pre><code>https://username:password@qa.mywebsite.com
  </code></pre>
  <p>This works perfectly as is. Now I want to be able to run the tests against the QA or Production environment set from the command line. I have a variable called ${ENV} which I am passing the values into. So the URL now looks like this</p>
  <pre><code>https://${ENV}.mywebsite.com
  </code></pre>
  <p>I run the following command in the command line and it works well.</p>
  <pre><code>python -m robot --outputdir results -v ENV:prod Tests/mytests/
  </code></pre>
  <p>or</p>
  <pre><code>python -m robot --outputdir results -v ENV:qa Tests/mytests/ 
  </code></pre>
  <p>And this works and enters the correct URL when the browser opens. The problem I have is that it wont let me enter the username and password into the url the way I have been doing. So I have tried the following in the command line</p>
  <pre><code>python -m robot --outputdir results -v ENV:user:password@qa Tests/mytests/
  </code></pre>
  <p>It goes to the qa site, but the user name and password are not in the url and therefore do not fill in.</p>
  <p>Any ideas why its not passing my user and password into the URL and how I can fix it?</p>
  <p>All help greatly appreciated.</p>