HTTPGotoRequest cannot use a vector in the %Params% map correctly

Bug #597732 reported by Tatjana
6
This bug affects 1 person
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?

http://app01.com:8080/sysadmin/jobs.jsp?daofactoryid=dao-1-maint&job_id=&status=failed&no_of_jobs=100&customerid=&job_class=&jobid=48298&jobid=56538&kill=++++++++Kill+++++

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.HTTPGotoRequest with
 %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://192.168.42.23:8080/sysadmin/jobs.jsp HTTP/1.1

Accept-Language: en-gb

Authorization: Basic ZGVidWc6cHJvbTFkdmE=

User-Agent: Jakarta Commons-HttpClient/3.1

Host: 192.168.42.23:8080

Proxy-Connection: Keep-Alive

Content-Length: 90

Content-Type: application/x-www-form-urlencoded; charset=utf-8

kill=kill&status=failed&no_of_jobs=999&daofactoryid=dao-1-maint&jobid=%5B31362%2C+31367%5D
HTTP/1.1 200 OK

Date: Wed, 23 Jun 2010 14:02:02 GMT

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=ISO-8859-1

Via: 1.1 build.com:8080

Transfer-Encoding: chunked

Many thanks!

Revision history for this message
edA-qa (eda-qa) wrote :

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.

Changed in testplan:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.