Code to see if I\'m connected to network
We're writing our tests, preliminarily, on our laptop against HTML pages saved from the server. Since the pages are saved on my laptop hard drive, when I use the GetROProperty("URL"), I get a different path from when I connect the laptop to the network. In that case, I get the server path ("http://.....").
So, the question I have is: Is there a way for QTP to recognize IP addresses? Is there a call to access the OS information? I would want to check:
IF the IP address = the hard coded one THEN
the laptop is not connected
ELSE if the IP address <> the hard coded one THEN
the laptop is connected to the network.
Unless there's another way to do determine this?
Thank you in advance.
Re: Code to see if I\'m connected to network
Give this link a shot, may not be exactly what you want but it is a start.
P.S. It is amazing what you can find on MSDN.