Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    What kind of "news" are you looking for? This is a 5 year old thread where people are claiming issues with an ancient version of the product, but without a test case. It's likely that if there was an actual bug, it's long since been fixed.

    Start by reading the Automated Testing and Selenium overviews in the docs. If you believe you've found a bug, create a new thread for it, and make sure to include all of the necessary details to allow the problem to be reproduced - see the Debugging overview for assistance with this.

    Leave a comment:


  • eziosoma
    replied
    Hello, I'd like to know if there are news regarding test automation with Smart Client (not GWT) and Selenium. Any news from 2010?

    Leave a comment:


  • Isomorphic
    replied
    Originally posted by ttubbs
    I really hate that every time I post here it turns off email notifications!!!!
    Ack. We actually enabled automatic email notifications for all forum users by default, but this bug was preventing that from being visible.

    This should be fixed as of now.

    Leave a comment:


  • ttubbs
    replied
    Originally posted by Isomorphic
    If you're not running the latest nightly (eg maybe you are working with 7.0), you need to be running the latest nightly.

    If you are running the latest nightly, we need a runnable test case.
    FYI:

    I updated to 5/18 build, in prep to work on this some today. The problems I was having have gone away. I had previously tried the 4/13 and 4/22 builds, both had the same problems.

    Leave a comment:


  • ttubbs
    replied
    Sorry!

    Originally posted by karl_garcia
    ttubbs, the pioneering spirit.. how did it go? :)
    I really hate that every time I post here it turns off email notifications!!!!

    Anyway, I updated and am getting the same problems. I only get to play with automated testing between official assignments, so it's a slow process for me. I can't send in the app I have, and stripping it down to a test app is not something I've had the time to get done so far.

    Leave a comment:


  • mike_mac
    replied
    Well we've gone back and setIds on all of our widgets and windows but we've encountered a problem with context menus (in smartGwt)

    We are creating context menus dynamically based on the datasource associated with the window.

    Code:
    Menu menu = new Menu();
    menu.setID(listGrid.getID()+"ContextMenu");
    It seems that when we create the Menu and call setContextMenu the Menu is created but somehow attached to the root canvas (as can be seen in the developer console). But if we delete the Window and the hence the associated ListGrid, the attached ContextMenu seems to be still hanging around (again as can be seen in the Developer Console). If we then try to reopen the window and dynamically create a new menu (with the same Id as before - as its being created off the same window) it fails during the setId as there is a menu with that Id already created.

    We found a work around doing this ...
    Code:
    listGrid.setContextMenu(menu);
    listGrid.addChild(menu);
    menu.setVisible(false);
    But it seems like it might be a bit of a hack, is there a way to get access to these context menus ? How come they are not associated with ListGrid object ?

    Thanks for the help in advance ...

    Leave a comment:


  • abhisec
    replied
    setID doesn't take effect

    I tried using setId but it still generates random id's. I am running nightly build. Any ideas what am i missing.

    Leave a comment:


  • elopio
    replied
    thanks devonkoh.

    Leave a comment:


  • devonkoh
    replied
    Originally posted by elopio
    I'm sorry, I couldn't find the latest nightly.
    Where can I get it?

    thanks.

    You can get the nightly builds from http://www.smartclient.com/builds/

    Leave a comment:


  • elopio
    replied
    Originally posted by Isomorphic
    If you're not running the latest nightly (eg maybe you are working with 7.0), you need to be running the latest nightly.
    I'm sorry, I couldn't find the latest nightly.
    Where can I get it?

    thanks.

    Leave a comment:


  • Isomorphic
    replied
    The auto-generated IDs are stable from run to run unless you do something like create components from a series of network requests that can complete in any order. In this case obviously it's not possible for the framework to guarantee stable, auto-generated IDs, so you need to either ensure your requests are ordered, or add your own IDs.

    Leave a comment:


  • karl_garcia
    replied
    so am I reading this right.. without access to edit the UI's SmartClient code.. we cannot test this since the IDs are an issue?

    Currently I can't modify the code to the UI, so I'm SOL 'til the IDs can be done the right way where it does not change, using setID ?

    Leave a comment:


  • mike_mac
    replied
    Originally posted by Isomorphic
    You can setID() to create stable IDs, and if you are using the AutoChild pattern, often a single ID is enough for the whole application to take on unique IDs.
    Mea Culpa ... I got confused with by this post
    http://forums.smartclient.com/showpost.php?p=24264&postcount=11
    Need to speed read at slightly less speed :-)

    Thanks, I'll give it a go. I'm not entirely certain what the AutoChild pattern is but I see from one of your other posts that you'll be adding it to SmartGWT soon so I'll keep an eye open. In the meantime we'll try and come up with a our own naming scheme that makes sense.

    Thanks !

    Leave a comment:


  • Isomorphic
    replied
    You can setID() to create stable IDs, and if you are using the AutoChild pattern, often a single ID is enough for the whole application to take on unique IDs.

    Leave a comment:


  • mike_mac
    replied
    Originally posted by mike_mac

    But if I close the browser instance and launch it again the ids of some of the windows change.
    Just to be clear ... I mean if I close the browser application and relaunch (which is what selenium RC does) the ids change.

    Leave a comment:

Working...
X