Hi Sachin,
     As for my understanding you need to test some list of URLs  whether
they are working or not .

    In order to make ur script URL independent u need to do two things
  1) Click on Record button and select the Radio button -> Run on any open
browser
  2) In the begining of the script, Include

               SystemUtil.Run "iexplore",http://www.sample.com";
             I am not sure whether it is SystemUtil or SysUtil , check that
one in QTP help
    and configure the URL in the datasheet
  then use
                        SystemUtil.Run "iexplore",URL
           where URL is the variable which holds the address
      and take the screen shot of the page using the following code
       Browser("").Page("").captureBitmap "C:\sample\sample.bmp",true
     and use Browser("").close

so By seeing all the screenshots u can know whether URLs are working or not

Let me know whether this code help ur requirement or not
Reply to my ID [email protected]



On Mon, Sep 14, 2009 at 11:32 AM, sachin singhal <[email protected]>wrote:

>
> Hello everyone
>
> I am new to qtp and i has been asked to test the url though
> qtp...please tell me how to test the urls either they are working or
> not with the help of qtp....
> its urgent please let me know as soon as possible
>
> sachin
>
> >
>


-- 
Thanks and Regards
  M.Manoj Kumar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to