Revision 0ff9ee42
Added by Niels Hoffmann about 13 years ago
.gitattributes | ||
---|---|---|
1207 | 1207 |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/ClassificationTest.java -text |
1208 | 1208 |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/ContextMenuHelper.java -text |
1209 | 1209 |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/LoginTest.java -text |
1210 |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/NewMenuTest.java -text |
|
1211 |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/NewTaxonWizardTest.java -text |
|
1210 | 1212 |
/pom.xml -text |
1211 | 1213 |
src/changes/changes.xml -text |
1212 | 1214 |
src/site/apt/download.apt -text |
.gitignore | ||
---|---|---|
97 | 97 |
eu.etaxonomy.taxeditor.store/.settings |
98 | 98 |
eu.etaxonomy.taxeditor.store/hibernate.log |
99 | 99 |
eu.etaxonomy.taxeditor.store/target |
100 |
eu.etaxonomy.taxeditor.test/screenshots/*.jpeg |
|
100 | 101 |
/runtime-taxeditor.product |
101 | 102 |
/target |
102 | 103 |
/workspace |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/AbstractEditorTest.java | ||
---|---|---|
61 | 61 |
return bot.viewByTitle(title); |
62 | 62 |
} |
63 | 63 |
|
64 |
public void cancel() { |
|
65 |
clickButton("Cancel"); |
|
66 |
} |
|
67 |
|
|
68 |
public void ok() { |
|
69 |
clickButton("OK"); |
|
70 |
} |
|
64 | 71 |
|
72 |
public void clickButton(String label) { |
|
73 |
bot.button(label).click(); |
|
74 |
} |
|
65 | 75 |
} |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/NewMenuTest.java | ||
---|---|---|
1 |
package eu.etaxonomy.taxeditor.test; |
|
2 |
|
|
3 |
import org.eclipse.swtbot.eclipse.finder.waits.Conditions; |
|
4 |
import org.junit.Test; |
|
5 |
|
|
6 |
/** |
|
7 |
* Open all new menus |
|
8 |
* |
|
9 |
* @author n.hoffmann |
|
10 |
* |
|
11 |
*/ |
|
12 |
public class NewMenuTest extends AbstractEditorTest { |
|
13 |
|
|
14 |
@Test |
|
15 |
public void canOpenNewWizardForTaxon(){ |
|
16 |
openNewWizardFor("Taxon"); |
|
17 |
cancel(); |
|
18 |
} |
|
19 |
|
|
20 |
|
|
21 |
@Test |
|
22 |
public void canOpenNewWizardForReference(){ |
|
23 |
openNewWizardFor("Reference"); |
|
24 |
cancel(); |
|
25 |
} |
|
26 |
|
|
27 |
|
|
28 |
@Test |
|
29 |
public void canOpenNewWizardForName(){ |
|
30 |
openNewWizardFor("Name"); |
|
31 |
cancel(); |
|
32 |
} |
|
33 |
|
|
34 |
|
|
35 |
@Test |
|
36 |
public void canOpenNewWizardForTeam(){ |
|
37 |
openNewWizardFor("Team"); |
|
38 |
cancel(); |
|
39 |
} |
|
40 |
|
|
41 |
|
|
42 |
@Test |
|
43 |
public void canOpenNewWizardForPerson(){ |
|
44 |
openNewWizardFor("Person"); |
|
45 |
cancel(); |
|
46 |
} |
|
47 |
|
|
48 |
@Test |
|
49 |
public void canOpenNewWizardForSpecimen(){ |
|
50 |
openNewWizardFor("Specimen"); |
|
51 |
cancel(); |
|
52 |
} |
|
53 |
|
|
54 |
|
|
55 |
@Test |
|
56 |
public void canOpenNewWizardForClassification(){ |
|
57 |
openNewWizardFor("Classification"); |
|
58 |
cancel(); |
|
59 |
} |
|
60 |
|
|
61 |
private void openNewWizardFor(String entity) { |
|
62 |
bot.menu("General").menu("New").menu(entity).click(); |
|
63 |
bot.waitUntil(Conditions.shellIsActive("New Entity")); |
|
64 |
} |
|
65 |
} |
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/NewTaxonWizardTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* |
|
3 |
*/ |
|
4 |
package eu.etaxonomy.taxeditor.test; |
|
5 |
|
|
6 |
import org.eclipse.swtbot.eclipse.finder.waits.Conditions; |
|
7 |
import org.junit.After; |
|
8 |
import org.junit.Ignore; |
|
9 |
import org.junit.Test; |
|
10 |
|
|
11 |
/** |
|
12 |
* @author n.hoffmann |
|
13 |
* |
|
14 |
*/ |
|
15 |
public class NewTaxonWizardTest extends AbstractEditorTest { |
|
16 |
|
|
17 |
@Override |
|
18 |
public void setup() { |
|
19 |
super.setup(); |
|
20 |
bot.menu("General").menu("New").menu("Taxon").click(); |
|
21 |
bot.waitUntil(Conditions.shellIsActive("New Entity")); |
|
22 |
} |
|
23 |
|
|
24 |
@Ignore |
|
25 |
@Test |
|
26 |
public void canSelectClassification() { |
|
27 |
bot.button("Browse existing").click(); |
|
28 |
bot.waitUntil(Conditions.shellIsActive("Choose a Classification")); |
|
29 |
} |
|
30 |
|
|
31 |
@After |
|
32 |
public void tearDown() { |
|
33 |
clickButton("Finish"); |
|
34 |
} |
|
35 |
} |
Also available in: Unified diff
Created tests for the "New" menu