Window security on opening a IE
When I open a URL from the IE .Window security dialog opens asking to enter the User name and password .
How to overcome this Using QTP .
DO I need to go to the Traditional way of adding objects to repository and setting username and password .Anyother way we achieve this ?
Is it a firewall issue or some other type of popup?
If it's just a popup, you can add code to take care of it.
Screenshots would help.
Ameehl how to do run as ie from qtp. In that I can give user name and password and try out
I'm using QTP 11. In Record and Run Settings you can use the Web tab. Select Open the follwing address when a record or run session begins. Enter the URL that you want to go to.
You can also open IE from your script:
SystemUtil.Run "IE.exe","","","" <-- I need to look up how to do this. Unfortunately QTP is only showing an example of how to open notepad.
' Navigate to where you want to go.
I think this is the syntax:
SystemUtil.Run"C:\Program Files\Internet Explorer\IExplore.exe"
I believe the issue is :
1. Open the url
2. pop up ----Issue
3. enter username and password ----Issue
4. actual application
If points 2 and 3 are consistent in every flow, on every machine then it is better to handle them using OR only..
in case, it is an intemittent issue, you can use recovery scenario as well.
But since we know the actual place where we are expecting the pop up; it is better to handle in the code itself.