Re: [OpenSTA-users] empty strings passed as parameters cause all parameters to be ignored.
Brought to you by:
dansut
|
From: Bernie V. <Ber...@iP...> - 2007-08-14 12:50:25
|
Hi Stephen, Its a bug. I tried a simple subroutine with 4 string args. As soon as one (counting from left to right) is set to "", then all remaining arguments are set to "" or 0 if numeric. Looks like the code that parses arguments passed to subroutines quits when it see's a null. I would definitely report it on sourceforge. If you need an urgent resolution, please read more at http://www.iperformax.com/services.html and http://www.iperformax.com/downloads/OpenSTA%20Support%20Subscriptions%20Brochure.pdf All the best, Bernie Velivis www.iPerformax.com ----- Original Message ----- From: "Stephen Kay" <Ste...@on...> To: <ope...@li...> Sent: Tuesday, August 14, 2007 7:45 AM Subject: [OpenSTA-users] empty strings passed as parameters cause all parameters to be ignored. > Hello all, > > With the Modeler that ships with OpenSTA 1.4.3.20, if you pass an empty > string, i.e. "" as a parameter to a subroutine, all parameters are > ignored. > > There is an example script below. > The first time CHECKRESPONSE is called with all 3 parameters populated, it > works fine. The second time CHECKRESPONSE is called with the first > parameter set to "", it ignores all the parameters and uses the parameters > passed the first time. > > This seems like a bug to me (and has given us quite a headache), has > anyone > else seen this? Should I raise a bug on sourceforge? > > Thanks, > Steve > > > ============ EXAMPLE SCRIPT ================== > !Browser:IE5 > !Date : 14/08/2007 > Environment > Description "" > Mode HTTP > Wait UNIT MILLISECONDS > > Definitions > ! Standard Defines > Include "RESPONSE_CODES.INC" > Include "GLOBAL_VARIABLES.INC" > Include "PHASE8_FUNCTION_VARIABLES.INC" > > CHARACTER*512 USER_AGENT > Integer USE_PAGE_TIMERS > CHARACTER*256 MESSAGE > > CHARACTER*256 p1 > CHARACTER*256 p2 > CHARACTER*256 p3 > > Timer T_QQQQ > > CONSTANT DEFAULT_HEADERS = "" > > Code > !Read in the default browser user agent field > Entry[USER_AGENT,USE_PAGE_TIMERS] > > Start Timer T_QQQQ > > CALL CHECKRESPONSE["1param1","1param2","1param3"] > > CALL CHECKRESPONSE["","2param2","2param3"] > > SYNCHRONIZE REQUESTS > > End Timer T_QQQQ > > SUBROUTINE CHECKRESPONSE[p1,p2,p3] > Log "Parameter 1:", p1 > Log "Parameter 2:", p2 > Log "Parameter 3:", p3 > END SUBROUTINE > > Exit > > ERR_LABEL: > > If (MESSAGE <> "") Then > Report MESSAGE > Endif > > Exit > > > > For the latest data on the economy and society consult National Statistics > at http://www.statistics.gov.uk > > ********************************************************************************* > > > Please Note: Incoming and outgoing email messages are routinely monitored > for compliance with our policy on the use of electronic communications > ********************************************************************************* > > > Legal Disclaimer : Any views expressed by the sender of this message are > not necessarily those of the Office for National Statistics > ********************************************************************************* > > > The original of this email was scanned for viruses by the Government > Secure Intranet Anti-Virus service supplied by Cable&Wireless in > partnership with MessageLabs. (CCTM Certificate Number 2006/04/0007.) On > leaving the GSi this email was certified virus free. > Communications via the GSi may be automatically logged, monitored and/or > recorded for legal purposes. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > -- > OpenSTA-users mailing list Ope...@li... > Subscribe/Unsubscribe/Options: > http://lists.sf.net/lists/listinfo/opensta-users > Posting Guidelines: > http://portal.opensta.org/faq.php?topic=UserMailingList |