Forum Discussion

claventure's avatar
claventure
Occasional Contributor
10 years ago

Passing Credentials to a Page Navigated


I can go to my site manually,
http://myweb10/MyWebApp


I can add a user/password in my other (Selenium) Tests
(for "headless" operations)
http://myuser:mypass@myweb10/MyWebApp

In TestComplete I have tested successfully using Keyword Test line:
Navigate | Internet explorer | http://myweb10/MyWebApp

Now I need to add that username/password as shown with my selenium version.
How do I do this?
Thanks, Chris

  • Hi Chris,



    You can edit parameters of keyword test operations. To change the URL, double-click it and then enter the new URL with the login and password embedded.

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Chris,



    You can edit parameters of keyword test operations. To change the URL, double-click it and then enter the new URL with the login and password embedded.

  • claventure's avatar
    claventure
    Occasional Contributor
    Helen,



    Thank you.  I had tried that, but was not sure if it was working (something else may have gone wrong).  So thanks for that response I will put the credentials back in that line and try it again.  I am trying to get the test(s) that I created with TestComplete to run "Headless", that is, from another system I am remote executing a command on the VM where the test and TestExecute resides.  I have the Registry Entry for SuppressedWhenMinimized set to 2 as specified.  I can log onto the VM and execute the test using TestExecute successfully, and place the command in a .bat file there and this works as well.  But when I send a command (using psexec) from another system to execute the bat file, I get an error return code 3 (no more clues).  Anyway you DID answer my question but if there is any other advice about running "headless" and launching remotely please feel free to advise :) .  Thanks for responding.
  • claventure's avatar
    claventure
    Occasional Contributor


    Thanks,



    I had read through one of those articles/help sections, but not the "on Locked Computers" one.  I will revisit that.