[Http-webtest-general] on_response problem
Brought to you by:
m_ilya,
richardanderson
From: archana <ar...@am...> - 2003-11-06 10:26:49
|
Hi, I have perl script with webtest object created from HTTP:WebTest. Logging in to a page and trying to get value of a variable. When i am using the following command, i am unable to get correct value of variable. Rather content file is not showing the correct contents of the page. Text require gets the expected value from teh page but on_response fails. Can anyone help me with this problem? test case looks somewhat like this, $webtest->run_test( [ url = http://192.168.1.10 text_require => 'showtime', on_response => { $up = $webtest->current_response->content =~ /Upstream Rate \(fast mode\)\D*(\d+) Kbps/ } ] ); thanks and regards, Archana |