HTTPGotoRequest cannot use a vector in the %Params% map correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TestPlan |
Invalid
|
Undecided
|
Unassigned |
Bug Description
e'd like to run a http request (see an example below) in order to be able to kill several jobs all at once. But I doesn't work. Is it a bug?
When executing such a test where the param %jobid% declared as a vector, the request does not look as expected. Please see the request below.
call unit.web.
%Web.Session.User% %Web.Task.User%
%Web.Session.Pass% %Web.Task.Pass%
%PathAbs% %Web.Job.URL%
%Params% with
%daofactoryid% %Task.DataSource%
%status% failed
%no_of_jobs% 999
%jobid% withvector
31362
31367
end
%kill% kill
end
end
############## REQUEST ##############
POST http://
Accept-Language: en-gb
Authorization: Basic ZGVidWc6cHJvbTF
User-Agent: Jakarta Commons-
Host: 192.168.42.23:8080
Proxy-Connection: Keep-Alive
Content-Length: 90
Content-Type: application/
kill=kill&
HTTP/1.1 200 OK
Date: Wed, 23 Jun 2010 14:02:02 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;
Via: 1.1 build.com:8080
Transfer-Encoding: chunked
Many thanks!
HTTPGotoRequest /CreateRequest will not do any type conversion any than to convert to a string. Vectors have no default conversion to strings (as it would not be certain what is desired). You'll have to manually enter the format that the server is expecting for the jobid parameter.