SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2004
    Location
    Boston
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    can\'t recognize pop up while testing eclipse application with XDE tester

    Hello,
    I am new to the XDE tester and have following problem now:
    I am testing eclipse plugin with XDE Tester. Everything works fine (GUI objects are recognized and ver. points can be set) up to the point when the plugin I am testing pops up an error message (MessageBox from the package eclipse.swt) and XDE can't "see" this messagebox.
    I thought I can just record pressing "Enter" when the MessageBox appears, but my "Enter" click is not recorded (I assume the GUI object has to be visable by XDE Tester to perform keybord input.

    Anyone had this problem or have an idea how to work around/fix this problem?


    Thanks in advance.

  2. #2
    Member
    Join Date
    Oct 2001
    Location
    New York, NY
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: can\'t recognize pop up while testing eclipse application with XDE tester

    I just tried recording against an SWT dialog box and experienced the same as you.

    If you can identify the window by its caption and all you need to do is close it, you can use the IWindow interface. In this example, I'm using a combination of the class name and caption to identify the message box.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">String messageBoxClass = &quot;#32270&quot;;
    String messageBoxCaption = &quot;SWT Dialog&quot;;

    IWindow[] allWins = getTopWindows();
    for (int i = 0; i &lt; allWins.length; i++) {
    if( allWins[i].getWindowClassName().equals(messageBoxClass ) ) {
    if( allWins[i].getText().equals(messageBoxCaption )) {
    allWins[i].close();
    break;
    }

    }
    }</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.69%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:32 AM.

Copyright BetaSoft Inc.