Enhancing STC and scenarios.
Change-Id: I57a4d25b7fb726a1242073055474ff5c7c3c1087
diff --git a/tools/test/scenarios/archetypes.xml b/tools/test/scenarios/archetypes.xml
new file mode 100644
index 0000000..42c4ffb
--- /dev/null
+++ b/tools/test/scenarios/archetypes.xml
@@ -0,0 +1,45 @@
+<!--
+ ~ Copyright 2015 Open Networking Laboratory
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<scenario name="archetypes-test" description="ONOS archetypes test">
+ <group name="Archetypes" cwd="${WORKSPACE}/tmp/test-app">
+ <step name="Clean-Up" cwd="${WORKSPACE}/tmp" env="~"
+ exec="rm -r test-app"/>
+
+ <step name="Create-App" cwd="${WORKSPACE}/tmp" requires="Clean-Up"
+ exec="onos-create-app app org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
+ <step name="Build-App" requires="Create-App" exec="mvn clean install"/>
+ <step name="Install-App" requires="Build-App"
+ exec="onos-app ${OCI} install! target/test-app-1.2.3.oar"/>
+ <step name="Verify-App" requires="Install-App"
+ exec="onos-check-components ${OCI} org.test.app.AppComponent"/>
+
+ <step name="Create-App-CLI-Overlay" requires="Install-App"
+ exec="onos-create-app cli org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
+ <step name="Build-App-With-CLI" requires="Create-App-CLI-Overlay"
+ exec="mvn clean install"/>
+ <step name="Reinstall-App-With-CLI" requires="Build-App-With-CLI,-Verify-App"
+ exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
+ <step name="Verify-CLI" requires="Reinstall-App-With-CLI"
+ exec="onos ${OCI} sample"/>
+
+ <step name="Create-App-UI-Overlay" requires="Reinstall-App-With-CLI"
+ exec="onos-create-app ui org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
+ <step name="Build-App-With-UI" requires="Create-App-UI-Overlay"
+ exec="mvn clean install"/>
+ <step name="Reinstall-App-With-UI" requires="Build-App-With-UI,-Verify-CLI"
+ exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
+ </group>
+</scenario>