eclipse / reddeer Goto Github PK
View Code? Open in Web Editor NEWRedDeer Project
License: Eclipse Public License 2.0
RedDeer Project
License: Eclipse Public License 2.0
STEP: open import dialog (Import -> Import -> General -> Existing Projects into Workspace)
STEP: try to discover tree widget with swtbot new ControlFinder.findControls(activeControl, matcher, true)
ASSERT: only the expected tree was found
STEP: try to discover tree widget with our method findControls(activeControl, matcher, true)
FAIL: two trees are discovered (second one is the expected one)
Example:
new ContextMenu(Action.SelectAll).select();
new ShellMenu(Action.Copy).select();
new ShellMenu(Action.Paste).select();
new Keyboard(Action.Copy).invoke();
Add a chapter(s) about writing your own RedDeer API into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Test should be able to define other tests as dependencies. This is useful for sequence test type that
@CleanWorkspace
class MyTest {
@Test
public void test1() {
}
@Test
@Dependency(test = "test1"); // when test1 fails, test2 will fail with message reffering that dependency test1 was not satisfied
public void test2() {
}
}
Add a chapter about Wizards into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
The test 'NewServerWizardPageTest' from org.jboss.reddeer.eclipse.test fails due to the new LabeledText
Without some workaround, at this time, no projects are listed in Project Import dialog. There is need to do some action (press enter, click into table ...)
mvn test -dProduct=/opt/<product_root_dir>
for example
mvn test -Dproduct=/opt/eclipse-jee-package-4.3/eclipse
Wrong parameter order
public CheckBox(String inGroup, String text){
checkBox = Bot.get().checkBoxInGroup(inGroup, text);
}
Because sometimes there is no welcome screen at startup, some tests are failing when it
Add a chapter about RedDeer installation into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Reason for failing server tests is blocker I have reported (https://issues.jboss.org/browse/JBIDE-12725). This is upstream issue in eclipse -> custom name of server is not set properly. It is always "[RUNTIME NAME] Server"
PreferencePage.open() tries to open Window > Preferences
but on Mac OS the preferences page is displayed by
Eclipse > Preferences...
From mailing list:
as you know, Red Deer now cannot be installed into Juno due to its dependencies on new junit and hamcrest.
I found out a workaround, just add the orbit update site [1] to the list of available update sites.
This repo includes org.junit.4.11 and org.hamcrest.1.3
[1] http://download.eclipse.org/tools/orbit/downloads/drops/I20130423013529/repository
-- Andrej Podhradsky
Add a chapter(s) about RedDeer fundamentals into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Should provide api for specific implementations and basic perspective methods like
Add a chapter(s) about Write complex requirement with own schema into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Add a chapter about JFace Abstracts into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
In RedDeerTest, "configureLogging()" is used as @before operation. It contains:
if (System.getProperty("log.debug").equalsIgnoreCase("true"))
In case 'log.debug' is not set, NPE is thrown
Add a chapter(s) about writing and running your first minimal functional test into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Add JUnit section chapter(s) into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Add a chapter about Howto run RedDeer tests in Jenkins environment (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Add a chapter about RedDeer UI Tooling into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Waits should allow to pass if condition is not fulfilled (needed for Tree searching, etc.)
protected List getItems(boolean shellItem) {
expand();
List items = new LinkedList();
for (SWTBotTreeItem childrenTreeItem : item.getItems()) {
String[] treeItemPath = new String[] {childrenTreeItem.getText()};
if (shellItem) {
items.add(new ShellTreeItem(treeIndex,joinTwoArrays(getPath(), treeItemPath)));
} else {
items.add(new ViewTreeItem(treeIndex,joinTwoArrays(getPath(), treeItemPath)));
}
}
return items;
}
Note line "items.add(new ShellTreeItem(treeIndex,joinTwoArrays(getPath(), treeItemPath)));"
This doesn't take into account the following situation:
Tree
-> Item A | Cell A // one node can consists of severeal cells!
-> Item A | Cell B // getCell(0) = 'Item A'; getCell(1) = 'Cell B'
These two different tree items have the same path which is "Tree > Item A".
That's why the method getItems() returns the following list
List = [Item A | Cell A ], [Item A | Cell A ]
instead of
List = [Item A | Cell A ], [Item A | Cell B ]
org.jboss.reddeer.swt.api.TreeItem
TreeItem item;
item.select();
Failed waiting until: : Tree item 'Task Repositories' cannot be selected.
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:398)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:372)
at org.jboss.reddeer.swt.wait.WaitUntil.wait(WaitUntil.java:24)
at org.jboss.reddeer.swt.wait.AbstractWait.(AbstractWait.java:28)
at org.jboss.reddeer.swt.wait.AbstractWait.(AbstractWait.java:23)
at org.jboss.reddeer.swt.wait.WaitUntil.(WaitUntil.java:15)
at org.jboss.reddeer.swt.impl.tree.AbstractTreeItem.select(AbstractTreeItem.java:115)
Add a chapter about Views and Preferences into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Add a chapter about Test execution of imported RedDeer examples into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
currently there are some examples in org.jboss.reddeer.wiki (that will be renamed to org.jboss.reddeer.examples), see #123
It will be needed to create some examples there that may be created.
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Implement isActive() and activate() functions for Shell
The test 'NewServerWizardPageTest' from org.jboss.reddeer.eclipse.test fails due to the new LabeledText implementation
Add a chapter(s) about SWT Layer API into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Right now tests are not checking if view is really opened or closed.
Test testCloseNoninitializedView() should first close tested view because order of calling of tests within one class is not guaranteed and therefore it could happen that tested view is not closed and method will fail.
This is caused by SWTBot Tree implementation. Will be fixed when TreeItem is re-implemented.
Temporary workaround: ignore this failure
Add a chapter about Database Connection Profiles into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
Problem si in method WidgetHandler.getInstance().getLabel(). It only tries to retrieve children from direct parent, but if direct parent isn't the one containing both text and label SWTLayerException will be thrown.
getItems() or getAllItems() does not work if tree has index different than 0.
Add a chapter about Test Requirement extensions into UserGuide (https://github.com/jboss-reddeer/reddeer/wiki/User-Guide)
Please follow https://github.com/jboss-reddeer/reddeer/wiki/UserGuideTemplate for more information about User Guide
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.