Hi Immo,
this is not working too.
I had a look into the webtest sources and your are right - found no
documentation about that - the slashes are the indicator for the
webtest-task to handle the text as regex. I think for all of them.
But I do not see how.
this line (with not newline - made be the mailprogramm).
<excelVerifyCellValue cell="H2" text="/Hochrechnung ${ags.standard.test.season.label}
vom .* (Standardkurven-Hochrechnung)/"/>
is not working ;-/
yours
Michael
Hueneke, Immo schrieb:
Hi Michael,
What about:
<invoke url="https://url-to-excelfile"
username="${portalUserTest}"
password="${portalUserPasswordTest}"/>
<excelVerifyCellValue cell="D2" text="Ergebnis Werbemittelhochrechnung"/>
<excelVerifyCellValue cell="H2" text="/Hochrechnung
${ags.standard.test.season.label} vom .* (Standardkurven-Hochrechnung)/"/>
Note the addition of "/" delimiters to the text - how else is WebTest supposed
to know that it's matching a regex?
I wonder also whether the whole regex has to be on one line.
That's the limit of my knowledge here! Please report back to the mailing list
if either of my above suggestions work.
Best regards,
Immo.
-----Original Message-----
From: webtest-ad...@lists.canoo.com [mailto:webtest-ad...@lists.canoo.com] On
Behalf Of Michael Habbert
Sent: 16 January 2009 11:42
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Strange Excel-Value-Test
Hi Immo,
your right:
------------------------- corrected version
---------------------------------
<invoke url="https://url-to-excelfile"
username="${portalUserTest}"
password="${portalUserPasswordTest}"/>
<excelVerifyCellValue cell="D2" text="Ergebnis Werbemittelhochrechnung"/>
<excelVerifyCellValue cell="H2" text="Hochrechnung
${ags.standard.test.season.label} vom .* (Standardkurven-Hochrechnung)"/>
so for now the Excel gets downloaded and the first check succeeds but
the second not.
Details
expected value Hochrechnung HW2008 vom .* (Standardkurven-Hochrechnung)
actual value Hochrechnung HW2008 vom 13.01.2009
(Standardkurven-Hochrechnung)
-----------------------------------------------
I also tried: "\d{1,2}\.\d{1,2}\.2009" but it also failed
btw. I'm using: R_1724
yours
Michael Habbert
[...]
Michael Habbert
Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www.key-work.de
Fon: +49-721-78203-269 | E-Mail: michael.habb...@key-work.de | Fax:
+49-721-78203-10
Key-Work Consulting GmbH Karlsruhe, HRB 108695, HRG Mannheim
Geschäftsführer: Andreas Stappert, Tobin Wotring
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest