Have somebody experienced problems when running grouped tests that doesn't fail when are executed individually?
thanks
Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund
gnebling wrote:Did you mean like a Testsuite?
gnebling wrote:What errors do you get?
gnebling wrote:Do your tests have these lines of code?
ui.click(new MenuItemLocator("&File/E&xit"));
ui.wait(new ShellDisposedCondition("Eclipse SDK"));
If so, comment them out. If you leave these lines in, the first test kills the workbench and then you get and exception, "root must not be null" exception when trying to run the subsequent test(s).
Mac wrote:Hi,
I sometimes experienced those failure due to unequal start conditions.
For example the last action of a test was to click a certain TreeItem.
Now the second test failed, because this Treeitem was still selected, which was not the case, when the second test has been started stand-alone.
So maybe you have to make sure that every test in your suite starts with the same conditions
ui.click(new MenuItemLocator("&Window/&Open Perspective/&Other..."));
ui.wait(new ShellShowingCondition("Open Perspective"));
ui.click(new TableItemLocator("OUR_PERSPECTIVE"));
ui.click(new ButtonLocator("OK"));
ui.wait(new ShellDisposedCondition("Open Perspective"));
Users browsing this forum: No registered users and 1 guest