Ask a Question

Basic authentication dialog appear again even after entering the correct username and password.

nisgupta
Valued Contributor

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 ?

-Nishchal

 

 

 

 

 

10 REPLIES 10
Marsha_R
Community Hero

Re: Basic authentication dialog appear again even after entering the correct username and password.

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?

 

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
nisgupta
Valued Contributor

Re: Basic authentication dialog appear again even after entering the correct username and password.

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.

 

-Nishchal

Marsha_R
Community Hero

Re: Basic authentication dialog appear again even after entering the correct username and password.

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.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
nisgupta
Valued Contributor

Re: Basic authentication dialog appear again even after entering the correct username and password.

@Marsha_R 

we are running our tests on that VM using TestExecute .Is there any other way we can figure out . 

tristaanogre
Community Hero

Re: Basic authentication dialog appear again even after entering the correct username and password.

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.


Robert Martin
[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
Extensions available
Marsha_R
Community Hero

Re: Basic authentication dialog appear again even after entering the correct username and password.

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.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
nisgupta
Valued Contributor

Re: Basic authentication dialog appear again even after entering the correct username and password.

@tristaanogre 

 

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 

Marsha_R
Community Hero

Re: Basic authentication dialog appear again even after entering the correct username and password.

Go into Firefox where the failure is happening and delete any saved logins you find and then try the test again.

 

https://support.mozilla.org/en-US/kb/password-manager-remember-delete-edit-logins

 

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
sonya_m
Community Manager

Re: Basic authentication dialog appear again even after entering the correct username and password.

This really could be it, thanks for the team effort Marsha, Robert!

 

@nisgupta did this work?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: