Re: [Http-webtest-general] on_response problem
Brought to you by:
m_ilya,
richardanderson
From: William M. <wi...@kn...> - 2003-11-06 13:54:06
|
On Thu, Nov 06, 2003 at 04:00:18PM +0530, archana wrote: > 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. It sounds like you are saying there are three problems: 1) response page is not correct ("Rather content file is not showing the correct contents of the page") 2) $up does not get a value 3) text_require works If 1 is really a problem, then you should turn on debugging. I use the following: terse = failed_only show_html = yes show_cookies = yes show_headers = yes > Can anyone help me with this problem? Try changing the on_response to the following (I added parens around the $up variable): on_response => { ($up) = $webtest->current_response->content =~ /Upstream Rate\(fast mode\)\D*(\d+) Kbps/ } William -- Knowmad Services Inc. http://www.knowmad.com |