Hi Michael,

thanks for your suggestion. But I compare the text in the PDF with a
property:

<pdfVerifyText text="${myProperty}" regex="true">

So I can't include any regex symbols such as *. 

Stefan


Michael Habbert-3 wrote:
> 
> Hi Stefan,
> 
> usually I try:
> <pdfVerifyText text="myText.*-ID" regex="true">
> 
> probably there is a much better expression.
> 
> mfg
> 
> Michael Habbert
> 
> 
> Stefan Seger schrieb:
>> Hello,
>> 
>> In our application you can generate PDF reports on tables and forms and I
>> want to check if the field names of the PDFs are correct.
>> 
>> My test is working so far, but I have a problem when the text is wrapped
>> to
>> the next line. For example I check for the field content "User-ID", in
>> the
>> PDF it's called
>> User
>>  -ID
>> 
>> So it can happen that there is a blank more in the PDF text as in the
>> text I
>> want to compare with.
>> <pdfVerifyText> does not find the text and the test fails.
>> 
>> Is there are a to ignore all blanks ?
>> 
>> Thanks,
>> Stefan
>> 
>> 
>> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-to-verity-text-in-a-PDF-tp20736161p20791347.html
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to