|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Simulator - qxTableClick after changing the windowHi.
I'm using the simulator with the java API to test our qooxdoo 0.8.3 application. I want to test buttons that execute actions on selected elements of a table. My table is inside a window that is opened when the application is launched, and I proceed like this : 1/ I select the element qxTableClick("qxh=*/mywindow/*/mytable", "row=x, col=y"); 2/ I click on my button qxClick("qxh=*/mywindiw/*/mybutton"); Everything works fine if it's the first test that I do, but if before I do that test, I open a second qooxdoo window, close it, and then try to select a row in my table, the row is only "half-selected": the row is highlighted, but when I click on the button, it's as if there were no selected row (the TableSelectionModel doesn't find any). Graphically, whereas a selected row is usually highlighted with a "standard" blue (in modern theme), in this case it's light blue (I was not able to reproduce this situation manually). Worse, if a row was selected before the opening of the second window, it will remain the selected row. I tried to qxClick or qxClickAt the window or the table before I select the row, but this does not change anything. Does a selenium expert has an idea about what's happening / what I should do ? (maybe Daniel ?) Thanks. -- Loïc Bresson ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Simulator - qxTableClick after changing the windowHi Loïc,
that sounds strange indeed. I tried to reproduce your setup but the table selection changed as expected, whether there was another window or not. Have you tried running the relevant commands from your test case in Selenium IDE? The debug messages generated by the qooxdoo Selenium extensions might provide some clues. Regards, Daniel Loïc Bresson -- Novlog schrieb: > Hi. > > I'm using the simulator with the java API to test our qooxdoo 0.8.3 > application. I want to test buttons that execute actions on selected elements > of a table. > My table is inside a window that is opened when the application is launched, > and I proceed like this : > 1/ I select the element > qxTableClick("qxh=*/mywindow/*/mytable", "row=x, col=y"); > 2/ I click on my button > qxClick("qxh=*/mywindiw/*/mybutton"); > > Everything works fine if it's the first test that I do, but if before I do that > test, I open a second qooxdoo window, close it, and then try to select a row in > my table, the row is only "half-selected": the row is highlighted, but when I > click on the button, it's as if there were no selected row (the > TableSelectionModel doesn't find any). Graphically, whereas a selected row is > usually highlighted with a "standard" blue (in modern theme), in this case it's > light blue (I was not able to reproduce this situation manually). Worse, if a > row was selected before the opening of the second window, it will remain the > selected row. > > I tried to qxClick or qxClickAt the window or the table before I select the > row, but this does not change anything. Does a selenium expert has an idea > about what's happening / what I should do ? (maybe Daniel ?) > > Thanks. > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Simulator - qxTableClick after changing the windowHi Daniel.
> that sounds strange indeed. I tried to reproduce your setup but the > table selection changed as expected, whether there was another window or > not. Have you tried running the relevant commands from your test case in > Selenium IDE? The debug messages generated by the qooxdoo Selenium > extensions might provide some clues. I did a lot of tests, with two Firefox versions (3.0 and 3.5 on Ubuntu 9.04), with Selenium IDE vs Java API. I also created a little, simple test application to compare the results with those of our application. And (fortunately :)) it seems the issue happens only with our application, and only with the Java API (this second part being a little more annoying). I'll have to investigate about what in our application could cause this strange behavior. -- Loïc Bresson ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Simulator - qxTableClick after changing the windowHi Loïc,
good to hear it's not a general problem. If you manage to narrow the problem with your application down in any way, please post the details here as it might affect other users as well. Regards, Daniel Loïc Bresson -- Novlog schrieb: > Hi Daniel. >> that sounds strange indeed. I tried to reproduce your setup but the >> table selection changed as expected, whether there was another window or >> not. Have you tried running the relevant commands from your test case in >> Selenium IDE? The debug messages generated by the qooxdoo Selenium >> extensions might provide some clues. > > I did a lot of tests, with two Firefox versions (3.0 and 3.5 on Ubuntu 9.04), > with Selenium IDE vs Java API. I also created a little, simple test application > to compare the results with those of our application. And (fortunately :)) it > seems the issue happens only with our application, and only with the Java API > (this second part being a little more annoying). > I'll have to investigate about what in our application could cause this strange > behavior. > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Simulator - qxTableClick after changing the windowI finally could solve my issue.
I found that it was happening after opening and closing only one particular window of our application, so I looked deeper into this window. I was able to avoid the issue, but I could not find the precise reason why it was happening. Here are 2 possible causes I've found: 1st one is having a grid layout into the opened window with non contiguous rows (0, 2, 3, 4 in our case). It seems to happen only with 4 rows (e.g. everything works fine with rows 0, 3, 4) and a certain combination of widgets. 2nd one is calling moveTo(x, y) with particular (x, y) when the window opens. One of these 2 conditions is sufficient to cause the "half-selection" thing. Again, this happens only with one of our windows, and I could not reproduce the bug into a simple application or with other windows of our application. But everything works if I avoid non contiguous rows (which in any case is better) and the moveTo with the particular coordinates. Has anyone ever experienced this kind of behavior with selenium ? -- Loïc Bresson ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Simulator - qxTableClick after changing the windowBack to this topic again.
I've found that if you maximize the browser window used by Selenium, it seems to solve some strange issues (i.e. things that normally work but in some cases do not work for mystic reasons :D). If you use Selenium RC with Java, just do selenium.windowFocus(); selenium.windowMaximize(); just after the selenium.start(); instruction (where "selenium" is the instance of your Selenium object). This solved the issue I had before (even with the non-contiguous rows in a grid or the moveTo to particular coordinates). I also had some issues when trying to double click a cell inside a table (it acted as a simple click), and just maximizing the browser window solved the thing. I don't know why, since the widgets I wanted to access to where visible even with the default browser window size, but at least it made the tests work :). Hope that can help some people. -- Loïc Bresson ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |