Menu ▾ ▴

#229 TCPProxy is not recording correctly

3.12
open
nobody
TCP Proxy (1)
5
2014-08-16
2012-12-17
Ravi Joshi
No

I am using TCPProxy to record some scripts. However sometimes it is not creating the script properly.

Since token_isc_metaDataPrefix is not instantiated before, I am getting an error with the recorded script. Below is error snippet-

2-12-12 15:51:36,341 ERROR internal-0 thread-0 [ run-0 ]: aborted run - Jython exception, <type 'exceptions.attributeerror'="">: TestRunner instance has no attribute 'token_isc_metaDataPrefix' [calling TestRunner]
net.grinder.scriptengine.jython.JythonScriptExecutionException: <type 'exceptions.attributeerror'="">: TestRunner instance has no attribute 'token_isc_metaDataPrefix'
result = request4701.GET('/home/services/addFriend/sendReq' +
File "/opt/grinderAgent/temp/../recordedScripts/sendRequest.py", line 1455, in page47
self.page47() # GET sendReq (request 4701)
File "/opt/grinderAgent/temp/../recordedScripts/sendRequest.py", line 2292, in call
</type></type>

I am putting the recorded code corresponding to the above error below-

def page47(self):
"""GET sendReq (request 4701)."""
self.token__operationType = \
'fetch'
self.token__startRow = \
'0'
self.token__endRow = \
'75'
self.token__textMatchStyle = \
'exact'
self.token__componentId = \
'isc_JobMonitorGrid_0'
result = request4701.GET('/home/services/addFriend/sendReq' +
'?_operationType=' +
self.token__operationType +
'&_startRow=' +
self.token__startRow +
'&_endRow=' +
self.token__endRow +
'&_textMatchStyle=' +
self.token__textMatchStyle +
'&_componentId=' +
self.token__componentId +
'&_dataSource=' +
self.token__dataSource +
'&isc_metaDataPrefix=' +
self.token_isc_metaDataPrefix +
'&isc_dataFormat=' +
self.token_isc_dataFormat, None,
( NVPair('If-Modified-Since', 'Thu, 01 Jan 1970 00:00:00 GMT'), ))

return result

token_isc_metaDataPrefix is instantiated after this page in page48.

-
Thanks
Ravi

Discussion


Log in to post a comment.