Hi Siba,

*Script to delete cookies: -*
*
*
*Im using QTP11.0 .*
*
*
*Browser()**.DeleteCookies*
*Browser().Refreh*
*
*
*
*
Thanks & Regards
Sedhu


On Wed, Oct 9, 2013 at 5:24 PM, Akhalesh Yadav
<[email protected]>wrote:

> 1.Write a script to only download pdf's if there are 20 links on a 
> page.*(identify
> first that specific link with the help of child object and click on that
> and flow the process.)*
> 2.What are the three challenges you faced during automation testing of
> your application.(General Qs)
> 3.What is the difference between Client/Server application and Web
> application ?(General Qs)
> 5.How can we check whether a particular sheet loaded (existed) or not in
> Data Table. (onjExl.fileExist() is the method to check the file loaded or
> not)
> 6.Script to delete cookies. (Send you later)
>
> 7.Write script for finding number of broken links in web page
> SCENARIO NAME :Check all broken links
> 'DESCRIPTION :This code Check all links in any web page
> 'PRECONDITIONS :This Assume that when click on Link the new page will
> open on current window but not in new window
> 'AUTHOR :  Akhalesh
> '*****************************
> ******************************************
> systemutil.run "iexplore","http://www.google.com";
> Set oDesc = Description.Create()
> ' Retrieve HTML tag
> oDesc("html tag").Value = "A"
> Set rc = Browser("title:=.*").Page("title:=.*").ChildObjects(oDesc)
> num = rc.Count()       'get the number of link in a page
> For i=0 to num-1
> Set rc = Browser("title:=.*").Page("title:=.*").ChildObjects(oDesc)
> ref = rc(i).GetROProperty("href")      'get the “href”propety of the i th
> link
> names=rc(i).getroproperty("name")
> Browser("title:=.*").Page("title:=.*").link("text:=.*","index:="&i).click
> 'click on i th link
> Browser("title:=.*").sync
> title1=Browser("title:=.*").getRoproperty("title")      'get the tile
> of the target page
> MsgBox title1
> Browser("title:=.*").navigate(ref)  'Navigates to the url taken from
> “href” property
> Browser("title:=.*").sync
> title2=Browser("title:=.*").getRoproperty("title") 'get the tile of
> the tNavigated page
> MsgBox title2
> If title1=title2 Then   'condition to check for the targetted page and
> Navigated page
> Reporter.ReportEvent 0, "Navigated To Correct Page",""&title1
> 'Reports if correct
> Print "Link navigated to correct page..." &names
> else
> 'Reporter.ReportEvent 1,"hhh",&title1,"",&title2
> print "Link did't navigated to correct page......." & names
> msgbox "hi"
> End If
> Browser("title:=.*").navigate "www.google.com"   'Navigates back to main
> page
> Browser("title:=.*").Sync
> next
> 8.Where do you maintain qtp scripts in your company.(General Qs)
> 9.What is the entry and exit point of automation testing.(General Qs)
>
>
> Thanks....
> Akhalesh
>
>
> On Wed, Oct 9, 2013 at 1:28 AM, <[email protected]> wrote:
>
>> Hi ,
>> I have posted some questions.If u have answer, plz do not hesitate to
>> post it.
>>
>> *1.Write a script to only download pdf's if there are 20 links on a page.
>> 2.What are the three challenges you faced during automation testing of
>> your application.
>> 3.What is the difference between Client/Server application and Web
>> application ?
>> 5.How can we check whether a particular sheet loaded (existed) or not in
>> Data Table.
>> 6.Script to delete cookies.
>> 7.Write script for finding number of broken links in web page
>> 8.Where do you maintain qtp scripts in your company
>> 9.What is the entry and exit point of automation testing*.
>>
>> Smiles,
>> Siba.
>>
>> --
>> --
>> 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
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Akhalesh yadav
> +919555717928
> +919310680659
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to