Re: [Http-webtest-general] on_response problem
Brought to you by:
m_ilya,
richardanderson
From: archana <ar...@am...> - 2003-11-07 12:37:16
|
No this is also not working... More inputs please!! On Thu, 2003-11-06 at 19:23, William McKee wrote: > 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 > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Http-webtest-general mailing list > Htt...@li... > https://lists.sourceforge.net/lists/listinfo/http-webtest-general |