[ptt-users] Multiple HTTPBody bug in 4.4.1

Frank Cohen fcohen at pushtotest.com
Mon Feb 26 18:57:29 PST 2007


Hi Aaron: Thanks for bugging me on this bug. I'll have some time to  
fix the problem and post an update this week. Thanks for pointing  
this out. -Frank




On Feb 23, 2007, at 3:25 PM, Aaron Romeo wrote:

> Hey Frank,
>
> I never heard anything back about this...
>
> Is anyone else having a similar problem or is work with 4.4.1 fine?
>
> Thanks,
> Aaron.
>
> -----Original Message-----
> From: users-bounces at lists.pushtotest.com
> [mailto:users-bounces at lists.pushtotest.com] On Behalf Of Aaron Romeo
> Sent: Friday, January 19, 2007 5:41 PM
> To: TestMaker users list
> Subject: RE: [ptt-users] TestMaker 4.4.1 now available for download
>
> Hey Frank,
>
> I only just attempted to use 4.4.1...
>
> I noticed a problem in the HTTPBody.java.  I believe you are adding  
> the
> parameters to the body twice.
>
> I could be wrong though.
>
>     /**
>      * Gets all of the keys and values and turns them into the  
> proper kind
> of
>      * string to be sent as a POST or a GET.
>      * @return The parameter string all made out.
>      */
>     protected String paramsAsString() {
>         if (params == null) {
>             return "";
>         }
>
>         StringBuffer buffer = new StringBuffer();
>         keyvalue nkv = null;
>
>         int size = params.size();
>         for (int i=0; i < size; i++) {
>             nkv = (keyvalue) params.elementAt( i );
>
>             String key = nkv.getKey();
>             String value = nkv.getValue();
>
>             // If no key values, then append the value by itself  
> (as in a
> REST call)
>             if (key.length()==0)
>             {
>                 buffer.append(value);
>             }
>             else
>             {
>                 buffer.append(key).append("=").append(value);
>             }
>
>             // HTTP Headers look like: "Name: value\n"
>             buffer.append(key).append("=").append(value);
>             if (i < size - 1) {
>                 buffer.append("&");
>             }
>         }
>
>         // buffer.append("\n");
>         return buffer.toString();
>     }
>
> Thanks,
> Aaron.
>
> -----Original Message-----
> From: users-bounces at lists.pushtotest.com
> [mailto:users-bounces at lists.pushtotest.com] On Behalf Of Frank Cohen
> Sent: Monday, January 15, 2007 2:43 PM
> To: TestMaker users list
> Subject: [ptt-users] TestMaker 4.4.1 now available for download
>
> TestMaker 4.4.1 is now available for download from the PushToTest Web
> site.
>
> http://www.pushtotest.com/Docs/vreleasenotes to view the release
> notes for the new software.
>
> http://downloads.pushtotest.com/TestMaker441.zip (24.5 Mbytes) to
> download the new software.
>
> TestMaker 4.4.1 is a minor bug-fix maintenance release. With this
> release TestMaker now requires Java 1.5 or greater. TestMaker
> provides a workaround for servers that do not correctly implement RFC
> 2116 for HTTP redirect commands. It solves a problem in the start-up
> script for Windows NT and 2000 users. It solves bugs in the
> agentbase.py support library for responses with no return parameters,
> invalid image tags, and now allows optional parameters to set the
> content-type of a POST. TestMaker 4.4.1 also solves a problem where
> XSTest runs out of memory on long running load tests.
>
> -Frank
>
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
>



--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA test automation tool





More information about the Users mailing list