[OpenSTA-users] empty strings passed as parameters cause all parameters to be ignored.
Brought to you by:
dansut
|
From: Stephen K. <Ste...@on...> - 2007-08-14 11:43:51
|
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.
|