Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 45428 invoked by uid 99); 1 Aug 2008 16:33:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 09:33:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.244.190.66] (HELO mail.OrbisUK.com) (62.244.190.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 16:32:39 +0000 Received: from zibal.orbis ([10.194.9.11]) by mail.OrbisUK.com with esmtp (Exim 4.50) id 1KOxYv-0001s4-Kc for cactus-user@jakarta.apache.org; Fri, 01 Aug 2008 17:33:05 +0100 Message-ID: <48933AC1.2020705@OrbisUK.com> Date: Fri, 01 Aug 2008 17:33:05 +0100 From: Paul Kiruvanayagam User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: cactus-user@jakarta.apache.org Subject: executing test methods more than once. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi I would like to submit the same request to the server more than once (i.e. execute the same test), however it is only returning a partial xml response which is causing me an issue in the endXXX method as I am doing validation there. Currently I am just executing the following code try { for(int i=1; i<=3; i++) { Servlet servlet = new Servlet(); servlet.doPost(request, response); System.out.println("Done testStayGameRequest " + i); } How can I achieve the what I want without creating 3 separate test methods to execute the same request against the server multiple times? I am really only interested in the final reponse. thanks Paul