From dev-return-28754-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Mon Aug 13 19:14:27 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 70331 invoked from network); 13 Aug 2007 19:14:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 19:14:26 -0000 Received: (qmail 13149 invoked by uid 500); 13 Aug 2007 19:14:23 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 13124 invoked by uid 500); 13 Aug 2007 19:14:23 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 13115 invoked by uid 99); 13 Aug 2007 19:14:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 12:14:23 -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: domain of vstrigun@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 19:14:16 +0000 Received: by nf-out-0910.google.com with SMTP id k4so688276nfd for ; Mon, 13 Aug 2007 12:13:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CbdtCSDAfKknwfErkoJ+KVG1z/jSg+RHu5UEttJ3pRNzFT/CqaCk4K2tBuaCqdUGL9af79JIIjPb4iOaQjT7LZOcq46V7ZzQR7T9PJNV6skpiomyBmQJhQos9RbYVXyT3pPv3YIEQSU+pBHZzM/9kg5uMF+UwgkOjcbJY3f1ua8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lNuABLDOeUlqvMCyI8At2XcI+iDKAvBKpNAtGlvST1/By9TWdZZocG6gpg6dyUvr8D6JfFKFF4WJk/41vJbPJ7GaxJ4kqmJghHthmXmZjkuXjFONWc/6L1CS2aSrhfSyJF5cFBvskwCnEl+vucv0q2LmfEGFiHJBA6vqKSGxqxg= Received: by 10.86.65.11 with SMTP id n11mr4567496fga.1187032434227; Mon, 13 Aug 2007 12:13:54 -0700 (PDT) Received: by 10.86.23.4 with HTTP; Mon, 13 Aug 2007 12:13:53 -0700 (PDT) Message-ID: Date: Mon, 13 Aug 2007 23:13:54 +0400 From: "Vladimir Strigun" To: dev@harmony.apache.org Subject: Re: [buildtest] netbeans scenario test with autoit v3 In-Reply-To: <94d710af0708130255w6f213d4dibb11bc0d987ffdec@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <94d710af0708130255w6f213d4dibb11bc0d987ffdec@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Sean, On 8/13/07, Sean Qiu wrote: > I am trying using Autoit v3 to write a scenario test for netbeans as we have > done for eclipse. Why you try using Autoit for testing Netbeans? Is there any strong reason for that? AFAIK, netbeans project have special module for UI tests development : Jemmy [1] > We can get eclipse component's name with the tool "AutoIt Window Info". > Then send signal to it to control its behavior by their name. > > But i am encountered with a problem for netbeans: Autoit cannot get netbeans > control's info by its tool "AutoIt Window Info". > (I guess it is because netbeans is developed by swing) > So i have to control the scenario according to its component's absolute > location rather than its name. Right, Netbeans is developed by swing, so IMO the most elegant way is jemmy usage. There are a set of operators for each swing type, and if I remember correctly from my previous experience, window searching is very effective and fast. > This solution works, but it is bug-prone. > End-user must comly with the exact idnetical configuration (like same > resolution of monitor) > and carry out no other operations during the test. > > Are there any more elegant solutions to address this issue? Or any comments, > suggestions? Unfortunately, jemmy is under SPL license, so possibly we can't use it. Thanks. Vladimir. > -- > Best regards > Sean Qiu > [1] http://jemmy.netbeans.org/