[OpenSTA-users] Problems with DOM address variables and Apache Server
Brought to you by:
dansut
|
From: Luis B. <lui...@gm...> - 2007-03-01 08:06:48
|
Hello,
I'm working with OpenSTA over Apache Server to simulate a user login
and a bidding. The SCL code has a "jsessionid" and i want it change
the next time i will run the script, so i did:
Load Response_Info Header on 1 &
Into VAR_UID &
,WITH "Set-Cookie,JSESSIONID"
Also i changed all static "jsessionid=xxxxx...xx" by my VAR_UID.
Finally, i loaded two DOM address variables ( "last bid" & "new bid"
) and put them in the POST:
LOAD RESPONSE_INFO BODY ON 6 &
INTO lastBid &
,WITH "HTML(0)/BODY(1)/DIV(1)/DIV(0)/DIV(1)/DIV(1)/DIV(1)/DIV(0)/FORM
(0)/DIV(0)/INPUT(0):ATTRIBUT" & "E:value(2)"
LOAD RESPONSE_INFO BODY ON 6 &
INTO newBid &
,WITH "HTML(0)/BODY(1)/DIV(1)/DIV(0)/DIV(1)/DIV(1)/DIV(1)/DIV(0)/FORM(0)/DIV(0)/INPUT(0):ATTRIBUT"
& "E:value(3)"
...............
...............
...............
PRIMARY POST URI " http : // trxxxxxxxxxxxxxxxxxxxxx " &
"HTTP/1.1" ON 6 &
HEADER DEFAULT_HEADERS &
,WITH {"Accept: " &
.................
.................
,BODY "idC=327&page=1&lastBid="+lastBid+"&newBid="+newBid+""
This work fine!. My problem is this, now i have three Apache
servers and my script don't already work!. When i load a DOM address
variable i get some like this:
1-1 :[1881]:HTTPRESPONSE: Name: LASTBID Identity:
HTML(0)/BODY(1)/DIV(1)/DIV(0)/DIV(1)/DIV(1)/DIV(1)/DIV(0)/FORM(0)/DIV(2)/INPUT(0):ATTRIBUTE:value(2)
Value: TModeller_Web.exe|1556|1-1|BIDDING_2|1881|E* HTTPRESPONSE (HTML
parser): unresolved variable for connection (6)
TModeller_Web.exe|1556|1-1|BIDDING_2|1881|E* TScript::run: ERROR
in TOF execution; resuming...
...............
...............
Apache servers add to my "jsessionid" a new parameter:
"jvmroute", which let me know which server get the request. So, the
new jsessionid is something like this:
jsessionid=24436523465465873614zgsfhtsawrt4.web1 or .web2
Please, Can anyone help?
Thanks in advance.
|