[OpenSTA-devel] Re: Codemax
Brought to you by:
dansut
|
From: Daniel S. <da...@Op...> - 2006-01-10 20:23:37
|
Olaf Kock wrote:
> I'd like to request a slightly different feature (if I understand
> you correctly): Saving a page should be explicitly triggered by
> the script whenever the script would like to save a response - not
> on HTTP errors in general: I believe that load tests can easily
> and correctly test that state 404 is returned by the application.
> On the other hand if the page is returned with http-state 200 but
> contains unexpected content (e.g. an application error message) the
> script should be able to save this unexpected content.
Your description makes me think of one worthwhile change that could
probably be made fairly easily and is unlikely to upset any existing
users:
If after doing a GET/POST you try to pull something from the BODY
content returned using:
LOAD RESPONSE_INFO BODY ON ConId INTO VarName, WITH DomIdentifier
And the DomIdentifier does not match the structure of the content
returned, then perhaps it would be nicer (rather than falling on its
face with "unresolved variable" as it does now) if the whole BODY
could be logged somewhere or placed in a variable.
Of Course you can do something like this now by saying:
LOAD RESPONSE_INFO BODY ON ConId INTO VarName, &
WITH DomIdentifier, RETURNING STATUS RetStat
IF (RetStat < 0) THEN
LOAD RESPONSE_INFO BODY ON ConId INTO VarName
LOG VarName
ENDIF
but perhaps something more elegant and automatic would be much more
useful.
Just thinking out loud,
/dan
--
Daniel Sutcliffe <Da...@Op...>
OpenSTA part-time caretaker - http://OpenSTA.org/
|