Posts

Showing posts with the label Runtime

Get and Compare Runtime URLs using QTP

This article will help you in getting the run-time URL of your website and comparing with user defined i.e from datatable, if that is correct it logs into the application otherwise exits the application When you are automating your application using QTP, you might have to deal with multiple URLs, i.e. if your application is deployed on multiple Servers / Environments, every time you run your script, it has to be configured with correct credentials. Here is a quick function that can be applicable in all such conditions. Make a VBS file. Open notepad, copy the below code and save the file with .vbs extension, Now provide login credentials, i.e. username and password in your datatable and Call the function we just made. '''''Function Declaration Public Function FunctionName()  '''''Gets the runtime URL and assign the value in the variable browserURL=Browser("title:=page title").Page("url:=page url").GetROProperty("URL...