Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AA7C10360 for ; Wed, 10 Jul 2013 15:21:13 +0000 (UTC) Received: (qmail 82502 invoked by uid 500); 10 Jul 2013 15:21:12 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 82450 invoked by uid 500); 10 Jul 2013 15:21:08 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 82440 invoked by uid 99); 10 Jul 2013 15:21:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 15:21:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-we0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 15:21:02 +0000 Received: by mail-we0-f172.google.com with SMTP id q56so5971906wes.17 for ; Wed, 10 Jul 2013 08:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=pu0zG8KTc7Ybv+tCRFoE+7BqsId7gLv4cxHD3BTbETs=; b=RTTxQjuxpUi+7cS4+/BQPQxasdzyvApLr299R6V/t/P8eGdcaN6a2NQ0VTYtQpMYCs dx/Y7sQehTDwBPpzLLtfeNoChpKtqyyOUQr7soCq//8f0+KnLM7cROB19v27dtHdVKgl 1pAvOi4QFyQH+jfUp5E6JUplhc+8TngGsf2ijwCeWEHOaPgogcEMEmF0fE6mnFAyeld7 OPmxEqVaXGVLnXLd4kCent23ZbZNZSQhz656qaAEHhbmVaxUM+zpV2lbwSoTMteHJGb3 K14f4oaLt11EBMPdF3vn0pdqPOAdvx9dUWzwakcgTQvgvtohlzYUrbGTYspDcYaF6I7i GZaQ== MIME-Version: 1.0 X-Received: by 10.194.170.168 with SMTP id an8mr18207069wjc.72.1373469641217; Wed, 10 Jul 2013 08:20:41 -0700 (PDT) Received: by 10.194.152.103 with HTTP; Wed, 10 Jul 2013 08:20:41 -0700 (PDT) In-Reply-To: <51DD5B7C.3070002@apache.org> References: <51DBF9B7.4050104@apache.org> <51DC170E.5050600@apache.org> <51DC2A58.2000003@apache.org> <51DD5B7C.3070002@apache.org> Date: Wed, 10 Jul 2013 16:20:41 +0100 Message-ID: Subject: Re: New from Template silently overwrites files From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 10 July 2013 14:02, Milamber wrote: > > Le 09/07/2013 22:31, sebb a ecrit : > >> OK, done - I hope! > > > Thanks, I made some tests with succes. > > > The templates seems a very good feature to JMeter, bring a lot of new > opportunities. > Yes. I was initially sceptical, but having seen it in use, I can see it is useful for getting started. > > >> >> On 9 July 2013 16:20, Milamber wrote: >>> >>> Le 09/07/2013 14:58, sebb a ecrit : >>> >>>> On 9 July 2013 14:58, Milamber wrote: >>>>> >>>>> Le 09/07/2013 13:20, sebb a ecrit : >>>>> >>>>>> On 9 July 2013 13:01, sebb wrote: >>>>>>> >>>>>>> On 9 July 2013 12:53, Milamber wrote: >>>>>>>> >>>>>>>> Le 09/07/2013 11:46, sebb a ecrit : >>>>>>>> >>>>>>>>> Just noticed that the "New From Template" feature creates a file = in >>>>>>>>> the current working directory. >>>>>>>>> >>>>>>>>> It silently overwrites any file with the same name as the templat= e. >>>>>>>>> >>>>>>>>> It would be easy to lose a valuable test plan. >>>>>>>>> >>>>>>>>> I'm not sure why the code does not just load the content from the >>>>>>>>> template, and leave to the user to save the test plan where they >>>>>>>>> wish. >>>>>>>> >>>>>>>> >>>>>>>> +1, I would be better to make like "merge" (or use the merge >>>>>>>> functionalty) >>>>>>>> to open the template. >>>>>>>> >>>>>>> Yes - would need to clear any existing plan first though. >>>>>>> >>>>>> Just occurs to me that one might want to use templates for partial >>>>>> test >>>>>> plans? >>>>> >>>>> >>>>> Yes, I think it's natural to use the template as partial test plans >>>>> (like >>>>> "add my favorite listener") >>>>> >>>>> >>>>>> If so, then it would be useful not to clear the existing plan first. >>>>> >>>>> >>>>> Yes. Perhaps a checkbox "Replace (and remove) current test plan" or >>>>> "Merge >>>>> with current test plans". >>>>> >>>> If the template is a comple test plan, I'm not sure it makes sense to >>>> Merge it. >>>> Likewise snippets must be Merged. >>>> >>>> Maybe the "Create" button at the bottom needs to change according to >>>> the template type - either "Create" or "Merge" ? >>> >>> >>> +1 seems the good deal. >>> >>> >>>>>> Maybe the templates.xml file could include a flag to say whether the >>>>>> template was a complete test plan or just a snippet? >>>>>> That would allow the dialog box to easily distinguish the two types. >>>>> >>>>> >>>>> +1 >>>>> >>>>> >>>>>> The Menu item would need to be changed to "Templates..." >>>>> >>>>> >>>>> Philippe has already do this for french translation ("Mod=E8les..." n= ot >>>>> "Nouveau depuis mod=E8les") >>>>> I agree "Templates..." seems better. >>>>> >>>>> >>>>>>>>> After all, unless they change the template, they can just refetch >>>>>>>>> it. >>>>>>>>> >>>>>>>>> Thoughts? >>>>>>>>> >