Micro Focus QTP (UFT) Forums
Automatically login Why? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Automatically login Why? (/Thread-Automatically-login-Why)



Automatically login Why? - Uma - 10-25-2011

Hi,
I have dialog box for userid and password,but i asked to use inputbox to get userid and password
[After click the login link it needs to show dialogbox and input boxes..i gave wait(40) ,but no use....],immediately,it goes to the result page,

Eventhough not having useris and password ,automatically my application goes to the result page. after cliclk the login link...I deleted the cookies(C drive and from IE) and I tried it but again it is automatically login.
How to stop this.
Any help?
Thank You
Uma


RE: Automatically login Why? - ravi.gajul - 10-26-2011

Hi Uma,

Try this.

choose under "Tools"(Internet Explorer)
Internet Options
Security
Internet
Custom Level: the User
Authentication
Logon choice must be set to "Prompt for user name and password", and not "Anonymous logon".

Regards,
Ravi


RE: Automatically login Why? - Uma - 11-01-2011

Hi Ravi,
I tried the followings,but still it is automatically login.
Thank you
Uma


RE: Automatically login Why? - ravi.gajul - 11-01-2011

Hi,

This is not a problem by our procedure, but is caused by a setting in Browser( internet explorer).Check if you could see the Login prompt when you Login manually if not, then Check if it is displayed in any other browsers(mozialla, chrome, etc) manually. If you could see the prompt, then it should definitely be a setting issue else its an application issue.

Regards,
Ravi


RE: Automatically login Why? - Uma - 11-02-2011

Hi Ravi,
I checked it with Firefox.[The very first time I am able to see login prompt and I gave userid and password and I logged out]
If I Login next time It is automatically Login.
I think it may relate to application issue.

Thank you
Uma


RE: Automatically login Why? - sram24 - 11-02-2011

Hi,
Can you try the steps that ravi has explained previously in Local Intranet instead of Internet.

Regards,
Ram.


RE: Automatically login Why? - vIns - 11-03-2011

Hi Uma,
Can u plz include this and try? (it will close the browser by killing the process). I had a similar issue and i tried this and it started working fine for me.


Code:
SystemUtil.CloseProcessByName("iexplore.exe")



RE: Automatically login Why? - Uma - 11-08-2011

Hi VIns

It is working,but I have a doubt[Why the login prompt is related to browser]


Thank you
Uma


RE: Automatically login Why? - vIns - 11-09-2011

Hi Uma...gr8 to see that it is working...
See..it is related to browser session. even if u close the browser, the session is not killed. so, when u open next time, it did not ask for user id and password.
It happens when you invoke the browser thro script. If you do manually, this prob may not arise.