[Http-webtest-general] using regex matches in later regexes
Brought to you by:
m_ilya,
richardanderson
From: Schwarz, W. <sc...@am...> - 2004-05-05 09:21:49
|
Hi,=20 I am new to Webtest and I couldn't find an answer to my question in the = archives, yet. I need to take a regex match from one test and make it part of the next = regex required on the same page=20 and use it in a post on the following page.=20 Its an easy task in perl storeing the match in the $1 variable, done in = various scripts, but webtest doesn't seem to like me doing it. I tried it like this: 'regex_require' =3D> [ 'order\.(\d+:\d+)',=09 'order\.'.$1 ] although the first regex is successful the match is not stored and the = variable is empty. REQUIRED REGEX order\.(\d+:\d+) SUCCEED order\. SUCCEED (BAD b/c I am expecting the = regex to look like "order\.123:123456789" ) what am I doing wrong here ? -wolle ---------- Modern elevators are strange and complex entities. The ancient electric winch and "maximum-capacity-eight-persons" jobs bear as much relation to a Sirius Cybernetics Corporation Happy Vertical People Transporter as a packet of mixed nuts does to the entire west wing of the Sirian State Mental Hospital. =20 |