Basic authentication dialog appear again even after entering the correct username and password.
We are running several tests using Batch file and task scheduler on our VM machines where TestExecute is installed.
All out Application require basic authentication .
I am seeing on one of the test -basic authentication dialog appear again even after entering the correct username and password. This do not happen everytime.
Any idea why it happens ?
We need more clues here.
Is it always happening on the same test?
Is it always on the same VM or will that test fail on any VM?
Is it always with one username/password or for any valid combo?
Does this happen if the test is not running on a VM?
1. Not all the time. It happens sometimes.
2. one thing is sure tests fail on that machine. I need to check on other VM machine whether it happen with other tests running on other VM machine.
3. only with one username/password . There is one more thing - on that VM whenever basic authentication dialog appears we saw the username and password is prefilled - not sure why those text boxes for username /password is not empty.
4. Since this issue is not reproducible . So cannot say whether it happens when running on physical machine. I am using my physical machine to develop the Testcomplete tests and ran but not able to reproduce .
Let me know if you need more information.
Having the username/password filled in automatically may be another clue. What I would do at this point is install TestComplete on that particular VM and run the same test in Debug mode so you can step through it and watch what is happening instead of just seeing the end result.
Actually, it sounds like at some point in time, someone "saved" the username/password in your browser so you may not get the dialog if the browser authenticates in the background. Try deleting all saved passwords on that browser on that machine and try again.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
What @tristaanogre suggested may work. If not, it really doesn't take very long to install TC on that machine. It's a big help in troubleshooting if you can see the UI and the logs. It's not a licensing issue either. You can install TC anywhere. The licenses just control how many people can use it at once.
When the script run , it launche the firefox brower and type the URL in browser.
authentication pop up dialog come which is expected . But i am confused why we the username and password in authentication dialog is already prefilled. however in the script we are passing the username and password to those username and password textfields.
Let me know if you need more information
Go into Firefox where the failure is happening and delete any saved logins you find and then try the test again.
This really could be it, thanks for the team effort Marsha, Robert!
@nisgupta did this work?
Community and Education Specialist