Somesh Sasalatti a écrit :
sometimes when i can't find a widget, i activate the shell that i know will have that widget, for example, if you're looking for buttons on a wizard page, its helpful to just activate the shell before you say bot.button(...)

Good practice. I will use it

as for waits...
there are methods like bot.wainuntil(...) that will help you. I found a problem with these waits, i.e. they consume exceptions generated from the test() methods and ulitmately only fail with a timeout exception. Therefore if any code you put in the test condition throws an exception, you won't see it but will only see a timeout exception hence I wrote my own waits. I don't know if its fixed in the latest release. if not, i could file a patch. But m not using the latest trunk right now.

thank you for speaking about such functions. I wrote "while" loops by hands with exception catching so there will be useful for me :-)


hth



On Thu, Sep 25, 2008 at 8:09 AM, Vincent Mahe <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hello

    I wrote an automated test for an Eclipse update site installation.
    My code realizes as needed all operations an user will do to install
    some feature from our update site.

    But sometimes, the bot does not find an item (button, table item, tab
    item,...) with no differences with previous executions (or incoming
    ones). I put many "bot.sleep(1000)" (which is ugly I know) in order to
    let time to Eclipse to realize each action, but the execution
    sometimes
    fails.

    As I relaunch immediately, the conditions are same.

    REM: I use an Ant file which unzip a new Eclipse SDK for each
    test, as I
    want to test install within a clean fresh Eclipse.



--
Cordialement

Vincent MAHÉ

Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to