Hi,

on one side this is an xml issue. You can probably use sonthing like

 or have newlines within the attribute value.

On the other side, WebTest should allow to specify the text attribute as
nested text of the step. Can you open an issue for that?

Cheers,
Marc.

Roger Waldner wrote:
> I am using WebTest r1685 and I am trying to verify a multiline text (eg
> a server certificate) within a texteara. The multiline data within the
> textarea contains - of course - a newline character for each line. If I
> now try to verify the data with something like:
> 
> <verifyTextarea name="certificate" text=" -----BEGIN CERTIFICATE-----
> MIIFETCCA/mgAwIBAgIBEjANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCQ0gx
> DzANBgNVBAgTBlp1cmljaDEgMB4GCSqGSIb3DQEJARYRY2FAc2VjbHV0aW9ucy5j
> ...
> -----END CERTIFICATE-----"
> 
> I get an error in the resulting report saying that the test has failed.
> The expected string then contains just blanks instead of the linebreaks.
> Using '\n' or '\r\n' as line delimiters did not help.
> 
> What is the key I am missing?
> 
> Roger

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

Reply via email to