Testplan does not provide the content of the POST request when using HTTPGotoRequest

Bug #425247 reported by Stephane Mikaty (eCircle AG)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TestPlan
Confirmed
Wishlist
Unassigned

Bug Description

When using the HTTPUnit backend:

GotoURLAbs %ConfirmationURL% with
        %Web.SessionType% HTTPUnit
end

I get the following helpful output in the web log:

-->URL( POST http://cust6.com/data/view_export.jsp )
---Date( Sat Sep 05 21:14:38 CEST 2009 )
---DebugStepID( :171019: )
-->Param( <email address hidden> )
-->Param( session.lifetime=30 )
-->Param( psw=password )
-->Param( redirectURL=data/view_export.jsp )
-->Param( action=login )
-->Param( loadbalanced=1 )
-->Param( errorPage=/index.jsp )
-->Param( exportid=47428 )
-->Param( queryStr=loadbalanced=1&redirectURL=data/view_export.jsp&exportid=47428 )

But when using HTTPGotoRequest:

call unit.web.HTTPGotoRequest with
        %Web.Session.User% %Web.Task.User%
        %Web.Session.Pass% %Web.Task.Pass%
        #%Web.BaseURL% %Web.XMLReport.URL%
        %Path% /automated/xmlreport.jsp
        %Params% with
                %report% MessageStatus
                %custid% %Customer.ID%
                %messageid% %Cmds:MessageID%
                %sincedate% 2001-01-01
                %eventtrackingdetails% true
                %executorid% %App.CurrentUser:UID%
                %uemail% %App.CurrentUser:Email%
                %psw% %App.CurrentUser:Password%
        end
end

I get no information about the POST request parameters:

#### 20090905202514 URLModeResponse
=>URL http://cust6.com//automated/xmlreport.jsp
=>HTTP-STATUS 200
=>HTTP/1.1 200 OK
=>Date: Sat, 05 Sep 2009 18:25:08 GMT
=>Server: Apache-Coyote/1.1
=>Content-Type: text/xml;charset=UTF-8
=>Content-Length: 2222
=>Via: 1.1 cust6.com
=>CONTENT-START

I presume whatever granularity of logging applies to HTTPUnit should also apply to HTTPGotoRequest.
These two tests where run with the same TestPlan process so the logging parameter that requests the
POST information to be written to the logs should be interpreted by HTTPGotoRequest.

The parameters i use are:

Debug.Web.Response=true
Debug.Web.Verbose=true

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

These use different backend providers. The urlmode provide apparently doesn't show post parameters or the post body. I agree it should show something, but the actual parameters may not be available (the whole post body might be there though)

Changed in testplan:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Stephane Mikaty (eCircle AG) (s-mikaty) wrote : Re: [Bug 425247] Re: Testplan does not provide the content of the POST request when using HTTPGotoRequest

What does the URL mode use as a backend? the JDK URL Connection handler?

edA-qa wrote:
> These use different backend providers. The urlmode provide apparently
> doesn't show post parameters or the post body. I agree it should show
> something, but the actual parameters may not be available (the whole
> post body might be there though)
>
> ** Changed in: testplan
> Importance: Undecided => Wishlist
>
> ** Changed in: testplan
> Status: New => Confirmed
>

edA-qa (eda-qa)
Changed in testplan:
milestone: none → 1-0-r1
Revision history for this message
edA-qa (eda-qa) wrote :

HTMLUnit is also missing post information.

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

Given how the HTTPClient works it is not simple to just dump a copy of the body without having unknown side-effects or problems. There is also a significant encoded problem since the body will by byte[] and it needs to be written as a string somehow.

For now I've added at least protocol headers and GET request debug information.

The milestone has been removed.

Changed in testplan:
milestone: 1-0-r2 → none
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.