Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2010-06-14 20:37:31 +0000
committerChris Goldthorpe2010-06-14 20:37:31 +0000
commite84f9dca248805d4f4394cf8a68031c992b98510 (patch)
tree42e18be1804f49dc859dd989fd9f47daeab1ba5f /org.eclipse.ua.tests/non_junit
parent0385f9110760b58f7572a4ec25544cbe73b51f02 (diff)
downloadeclipse.platform.ua-e84f9dca248805d4f4394cf8a68031c992b98510.tar.gz
eclipse.platform.ua-e84f9dca248805d4f4394cf8a68031c992b98510.tar.xz
eclipse.platform.ua-e84f9dca248805d4f4394cf8a68031c992b98510.zip
Add some tests for criteria
Diffstat (limited to 'org.eclipse.ua.tests/non_junit')
-rw-r--r--org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria1.xml26
-rw-r--r--org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria2.xml74
-rw-r--r--org.eclipse.ua.tests/non_junit/cheatsheets/uaTests.xml32
3 files changed, 130 insertions, 2 deletions
diff --git a/org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria1.xml b/org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria1.xml
new file mode 100644
index 000000000..c147d979d
--- /dev/null
+++ b/org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria1.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2010 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+ -->
+<cheatsheet
+ title="Launch Eclipse with criteria product">
+ <intro>
+ <description>
+ The following steps will launch Eclipse with criteria enabled
+ </description>
+ </intro>
+ <item title="Relaunch Eclipse with criteria enabled">
+ <description>
+ Start Eclipse with the following command line argument
+ to enable criteria:<br/><br/>
+eclipse -product org.eclipse.ua.tests.criteriaproduct
+ </description>
+ </item>
+</cheatsheet>
diff --git a/org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria2.xml b/org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria2.xml
new file mode 100644
index 000000000..fe7d45c61
--- /dev/null
+++ b/org.eclipse.ua.tests/non_junit/cheatsheets/tasks/criteria2.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2010 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+ -->
+<cheatsheet
+ title="Defining criteria in Webapp">
+ <intro>
+ <description>
+ This tests for the ncreation of a criteria based scope
+ </description>
+ </intro>
+ <item
+ title="Open the help Browser">
+ <description>
+ Help/Help Contents.<br/>
+Verify that the help contents opens.
+ </description>
+ </item>
+ <item
+ title="Define a scope with criteria">
+ <description>
+ Create a scope which filters based on criteria
+ </description>
+ <subitem
+ label="Click on the scope link next to the search typein, a dialog called &quot;Select Scope&quot; should open.">
+ </subitem>
+ <subitem
+ label="In the select scope dialog press &quot;New...&quot;. A dialog named New Scope should be opened">
+ </subitem>
+ <subitem
+ label="Verify that to the right of the topics there is a list of criteria and that none of them is checked">
+ </subitem>
+ <subitem
+ label="Verify that the following criteria are displayed: Title contains the letter, platform, version">
+ </subitem>
+ <subitem
+ label="Expand Title contains the letter. Verify that there are five checkboxes underneath it: letter c, letter k, letter t, letter v and uncategorized.">
+ </subitem>
+ <subitem
+ label="Check letter v, and press OK, verify that a dialog shows saying &quot;You must select at least one topic&quot;">
+ </subitem>
+ <subitem
+ label="Check the checkbox for each of the topics on the left of the dialog">
+ </subitem>
+ <subitem
+ label="Hit the OK button">
+ </subitem>
+ </item>
+ <item
+ title="Check the scope">
+ <description>
+ From the select scope dialog hit Edit and verify that letter v is the only criterion selected. Hit OK to dismiss the Edit scope dialog.
+ </description>
+ </item>
+ <item
+ title="Apply the new scope">
+ <description>
+ Hit OK to get out of the Select Scope Dialog. The table of contents view should be redrawn with less books included. Check that every book displayed contains the letter &apos;v&apos;
+ </description>
+ </item>
+ <item
+ title="Expand the books">
+ <description>
+ Expand each of the books in the toc. Verify that each book displayed expands correctly and that every subtopic contains a letter &apos;v&apos; in the title.
+ </description>
+ </item>
+</cheatsheet>
diff --git a/org.eclipse.ua.tests/non_junit/cheatsheets/uaTests.xml b/org.eclipse.ua.tests/non_junit/cheatsheets/uaTests.xml
index ca891c9a8..00f9888d5 100644
--- a/org.eclipse.ua.tests/non_junit/cheatsheets/uaTests.xml
+++ b/org.eclipse.ua.tests/non_junit/cheatsheets/uaTests.xml
@@ -1,4 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?> <!--
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
Copyright (c) 2005, 2010 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
@@ -8,7 +9,6 @@
Contributors:
IBM Corporation - initial API and implementation
-->
-
<compositeCheatsheet name="User Assistance Test Suite">
<taskGroup kind="set" name="All Tests" skip="false">
<intro>
@@ -184,6 +184,34 @@ Performing simple searching.
</param>
</task>
</taskGroup>
+ <taskGroup kind="sequence" name="Criteria Tests" skip="true">
+ <intro>
+ <b>Introduction</b>
+ </intro>
+ <onCompletion>
+ <b>Conclusion</b>
+ </onCompletion>
+ <task kind="cheatsheet" name="Start Eclipse with Criteria" skip="false">
+ <intro>
+ <b>Introduction</b>
+ </intro>
+ <onCompletion>
+ <b>Conclusion</b>
+ </onCompletion>
+ <param name="path" value="tasks/criteria1.xml">
+ </param>
+ </task>
+ <task kind="cheatsheet" name="Define a criteria based scope" skip="false">
+ <intro>
+ <b>Introduction</b>
+ </intro>
+ <onCompletion>
+ <b>Conclusion</b>
+ </onCompletion>
+ <param name="path" value="tasks/criteria2.xml">
+ </param>
+ </task>
+ </taskGroup>
<taskGroup name="Cheat Sheet Tests" skip="false">
<intro>
<p>This composite cheat sheet contains the UI tests for cheat sheets.</p>

Back to the top