question

gsivasam avatar image
gsivasam asked gsivasam posted

How to login web session of a device using different credentials

Hi,

 

I have to automate a GUI scenario where, I need to login to web session of a device using default credentials and after succesful login, I will create another user and password. Logout from the session and will close the device session. Then I am opening a new web session of a same device and trying to login to the device with new username/password which I created, but the login happens using previous credentials and not via newly created one. I have set the HTTP credentials of newly created User/Password at the step level properties but its still taking the old credentials. How to resolve this issue ? Is clear browser cache solution works for this problem? If so how to proceed it.

 

 

Thanks,

Gnans.

iTestGUI Testing(Web-Java Swing-etc)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted

This is because the web client is storing the previous login information in cookies. I am assuming that your web application has a login page where you log in. Such applications generally store this information in form of a cookie in the client's browser cache so that user does not have to log in next time. There are two solutions to this problem:

 

1. If your web application supports HTTP credentials, you can put them in your session profile. But if your web application has a login page, this would not be the case.

2. You can visit about:config page in iTest and disable the cookies - but this will most likely break your web app.

 

Let us research this and figure out what a recommended solution for this is.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.