[Webtest] Is there any way to verify popup PDFs

Marc Guillemot webtest@lists.canoo.com
Wed, 25 Feb 2004 18:49:18 +0100


Hi Lisa,

what is your criterium to determine "whether [I] got the correct PDF"?

Marc.

lisa.crispin@att.net wrote:
> I noticed the 'previousresponse' element.  I'm able to clicklink on the PDF file link, and use previousreponse to go back to the actual page and I can click more PDF links or click to move off the page.  If the PDF doesn't come up, I do get an error, so this is a useful test. And, I can look at the result files to verify that I got the correct PDFs. But I still can't test within my WebTest test whether I got the correct PDF.  If there is any way to do this, I would love to know!
> Thanks,
> Lisa
> 
>>Hi Lisa,
>>
>>what about just using a <verifylinks/> ? Or do you need a more precise check, 
>>like content-type, or something else, on the pdf files?
>>
>>Marc.
>>
>>lisa.crispin@att.net wrote:
>>
>>>Hi Marc,
>>>I'm not sure if this is what you need, but this is the code around the 
>>
>>relevant links in the html source.  Thank you!
>>
>>>-- Lisa
>>>
>>><span class="tblLabelText3">Plan Documents (Print, Sign and 
>>
>>Return)</span></th>
>>
>>></tr>
>>><tr class="tblCellBox3" align="left" colSpan="2"><td colspan="2"><hr 
>>
>>class="tblSeparator"></td></tr>
>>
>>><tr class="tblCellBox3">
>>><td valign="top" class="tblCellBox3" align="left" width="50%">
>>><ul>
>>><li class="body"><a class="bodyLink" target="_blank" 
>>
>>href="/pdfsend?type=4103&ts=90792">Program Agreement</a></li>
>>
>>><li class="body"><a class="bodyLink" target="_blank" 
>>
>>href="/pdfsend?type=4105&ts=90792">Services Agreement</a></li>
>>
>>><li class="body"><a class="bodyLink" target="_blank" 
>>
>>href="/pdfsend?type=4102&ts=90792">Plan Adoption Agreement</a></li>
>>
>>><li class="body"><a class="bodyLink" target="_blank" 
>>
>>href="/pdfsend?type=4113&ts=90792">Group Trust Adoption Agreement</a></li>
>>
>>></ul>
>>></td>
>>></tr>
>>><tr class="tblCellBox3" align="left" colSpan="2"><td colspan="2"><hr 
>>
>>class="tblSeparator"></td></tr>
>>
>>><tr class="tblHeadBox3">
>>><th colSpan="2"  class="tblCellBox3" align="left">
>>>
>>>>Can you give an extract of the html + javascript code?
>>>>
>>>>Marc.
>>>>
>>>>lisa.crispin@att.net wrote:
>>>>
>>>>
>>>>>I saw a posting on this ("Newbie needs help") from January but no final 
>>>>
>>>>answer.
>>>>
>>>>
>>>>>The application I'm testing has a lot of links to let the user view PDF 
>>
>>files.  
>>
>>>>I can bring up the PDF files by clicking the link in a WebTest file, but I 
>>
>>don't 
>>
>>>>know how to verify that the PDF file actually popped up?  Is there any way?  
>>>>This is an area where we have a lot of errors, so I would like to test this in 
>>>>my regression tests.
>>>>
>>>>
>>>>>Thank you,
>>>>>Lisa
>>>>>_______________________________________________
>>>>>WebTest mailing list
>>>>>WebTest@lists.canoo.com
>>>>>http://lists.canoo.com/mailman/listinfo/webtest
>>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>WebTest mailing list
>>>>WebTest@lists.canoo.com
>>>>http://lists.canoo.com/mailman/listinfo/webtest
>>>
>>>_______________________________________________
>>>WebTest mailing list
>>>WebTest@lists.canoo.com
>>>http://lists.canoo.com/mailman/listinfo/webtest
>>>
>>
>>
>>_______________________________________________
>>WebTest mailing list
>>WebTest@lists.canoo.com
>>http://lists.canoo.com/mailman/listinfo/webtest
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>