This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from eclipse/erwin/enh/249/rcptt-ui-testing
#249: first rcptt project with some basic tests
- Loading branch information
Showing
21 changed files
with
1,191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.eclipse.triquetrum.rcptt.test</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.rcptt.core.builder.q7Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.rcptt.core.rcpttnature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- RCPTT testcase --- | ||
Format-Version: 1.0 | ||
Element-Name: BasicTests | ||
Element-Type: testsuite | ||
Element-Version: 2.0 | ||
Id: _-9JLUFj-EeelRaB1ByN9rA | ||
Runtime-Version: 2.3.0.201706232317 | ||
Save-Time: 6/25/17 6:53 PM | ||
|
||
------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 | ||
Content-Type: text/testcase | ||
Entry-Name: testcase-items | ||
|
||
_fjq48Fj8EeelRaB1ByN9rA // kind: 'test' name: 'createHelloModel' path: 'tests/createHelloModel.test' | ||
_7k-AUFjXEeelRaB1ByN9rA // kind: 'test' name: 'createEmptyModel' path: 'tests/createEmptyModel.test' | ||
_7SXGMFj_EeelRaB1ByN9rA // kind: 'test' name: 'runHelloModel' path: 'tests/runHelloModel.test' | ||
_-f48oFnEEeelRaB1ByN9rA // kind: 'test' name: 'addInputPortToActor' path: 'tests/addInputPortToActor.test' | ||
_PqtUwFnDEeelRaB1ByN9rA // kind: 'test' name: 'addParameterToModel' path: 'tests/addParameterToModel.test' | ||
_RWGDEFnEEeelRaB1ByN9rA // kind: 'test' name: 'renameActor' path: 'tests/renameActor.test' | ||
_hC2hwFnCEeelRaB1ByN9rA // kind: 'test' name: 'renameActorWithDirectEdit' path: 'tests/renameActorWithDirectEdit.test' | ||
_d7JfEFnEEeelRaB1ByN9rA // kind: 'test' name: 'renameDirector' path: 'tests/renameDirector.test' | ||
_wDNikFnCEeelRaB1ByN9rA // kind: 'test' name: 'renameDirectorWithDirectEdit' path: 'tests/renameDirectorWithDirectEdit.test' | ||
_yX1bIFnDEeelRaB1ByN9rA // kind: 'test' name: 'renameParameter' path: 'tests/renameParameter.test' | ||
|
||
------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- |
21 changes: 21 additions & 0 deletions
21
tests/org.eclipse.triquetrum.rcptt.test/contexts/EmptyWorkspace.ctx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- RCPTT testcase --- | ||
Format-Version: 1.0 | ||
Context-Type: org.eclipse.rcptt.ctx.workspace | ||
Element-Name: EmptyWorkspace | ||
Element-Type: context | ||
Element-Version: 2.0 | ||
Id: _dU7GQFj4EeelRaB1ByN9rA | ||
Runtime-Version: 2.3.0.201706232317 | ||
Save-Time: 6/25/17 8:40 PM | ||
|
||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf | ||
Content-Type: q7/binary | ||
Entry-Name: .q7.content | ||
|
||
UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVj8sKwjAQRfeC/xCyN1ER1NJaVKq4 | ||
UFAQ3UlJY402D9LRtn9vKrQuxd1wOfcOxw9LmaEXt7nQKsAD0seIK6YTodIAP+Ham+Bw1u342qaEs0yY | ||
nBPLDABhUJJC20duYsa9U3MttQJeAiql8NrdYb3rPqncc3mAbwDGo7QoCqJlStw4PW83DfLjV1tvmLr+ | ||
4ajjaMthpGLp6EgaqE7fVCQBviTH8Xq/uo8izrNDvBgsqt3UzrFTRchntYMCWovTf81d6Q1QSwcIhgYV | ||
UMMAAABWAQAAUEsBAhQAFAAICAgAAAAhAIYGFVDDAAAAVgEAAAgAAAAAAAAAAAAAAAAAAAAAAC5jb250 | ||
ZW50UEsFBgAAAAABAAEANgAAAPkAAAAAAA== | ||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- |
23 changes: 23 additions & 0 deletions
23
tests/org.eclipse.triquetrum.rcptt.test/contexts/ImportHelloModel.ctx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- RCPTT testcase --- | ||
Format-Version: 1.0 | ||
Context-Type: org.eclipse.rcptt.ctx.workspace | ||
Element-Name: ImportHelloModel | ||
Element-Type: context | ||
Element-Version: 2.0 | ||
Id: _H1blMFkAEeelRaB1ByN9rA | ||
Runtime-Version: 2.3.0.201706232317 | ||
Save-Time: 6/25/17 7:05 PM | ||
|
||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf | ||
Content-Type: q7/binary | ||
Entry-Name: .q7.content | ||
|
||
UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVUbtOwzAU3ZH4B8s7NmGCKKFqEaiV | ||
KANL2VBwbloTv7BvSfh7nDSPbojN9j33vJwtWq3IN/ggrclpwq4pASNsKc0+p0esrm7p4v7yIrN+z0Ao | ||
6QIwLxwiE9iyxvo6uEJAuhtPD9YgtEhaLdOJ96bjjUompPE9pwdEl3LeNA2zes8iOX/bbkbIH1rT+ojp | ||
1nscjzg+4SgxhY7ojXbW4xqUsltbgqJEljl9XycfavtULx8B1GuxSlY/L3d+SYlQUPjdLFYVKgCNHRCS | ||
iS6cwf4Sr87bTxAYBiGEgHSYxWllVRkLGIadrUrZJsyIDiMVPEtTj6hD55JhqaPLgT2n532gl19HQH/U | ||
QzW9KHEFHk4G+oiBnxHx2RIfPI0B+JjgFI/P+TL+3x+PS79QSwcInuGajCkBAABOAgAAUEsBAhQAFAAI | ||
CAgAAAAhAJ7hmowpAQAATgIAAAgAAAAAAAAAAAAAAAAAAAAAAC5jb250ZW50UEsFBgAAAAABAAEANgAA | ||
AF8BAAAAAA== | ||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- |
23 changes: 23 additions & 0 deletions
23
tests/org.eclipse.triquetrum.rcptt.test/contexts/ImportHelloWithParamModel.ctx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- RCPTT testcase --- | ||
Format-Version: 1.0 | ||
Context-Type: org.eclipse.rcptt.ctx.workspace | ||
Element-Name: ImportHelloWithParamModel | ||
Element-Type: context | ||
Element-Version: 2.0 | ||
Id: _3lEVAFnDEeelRaB1ByN9rA | ||
Runtime-Version: 2.3.0.201706232317 | ||
Save-Time: 6/25/17 7:06 PM | ||
|
||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf | ||
Content-Type: q7/binary | ||
Entry-Name: .q7.content | ||
|
||
UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVks1OwzAQhO9IvIPlOzaFC0QJVQtF | ||
VKIIcaDckOVsGlP/BHtLwtvjpEkDEhLiZnu/3ZlZOZ02RpMP8EE5m9EJO6UErHS5spuM7rA4uaDTq+Oj | ||
1PkNA6lVFYB5WSEyiQ2rnd+GSkhI1sPp2lmEBkljVHKYe9bOjUo2JPE9oyVilXBe1zVzZsPicP6yWg7I | ||
H1qH9oFp2zuOR44fOEqsMJFemsp5vAOt3Vph+Si8MCuXg6ZE5Rl9PdeL59mtvVkA6Ccxn8w/Hy79jBKp | ||
Qfj1qFoIHYDGZRCSyjalxe4Sr5V3byAx9IoIAWlfi9XC6Txuoi+2/grt6jASLaM03Cu7Hajyh12GuYl2 | ||
e5mMft8QevW+A/Q70y+rUyeVwHLvpMsa+G8T+WiS9y6HSHzItA/Mx8Qp/+9niE1fUEsHCARc3BY2AQAA | ||
aQIAAFBLAQIUABQACAgIAAAAIQAEXNwWNgEAAGkCAAAIAAAAAAAAAAAAAAAAAAAAAAAuY29udGVudFBL | ||
BQYAAAAAAQABADYAAABsAQAAAAA= | ||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- |
22 changes: 22 additions & 0 deletions
22
tests/org.eclipse.triquetrum.rcptt.test/contexts/ResourcePerspective.ctx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- RCPTT testcase --- | ||
Format-Version: 1.0 | ||
Context-Type: org.eclipse.rcptt.ctx.workbench | ||
Element-Name: ResourcePerspective | ||
Element-Type: context | ||
Element-Version: 2.0 | ||
Id: _9Wg-AFj5EeelRaB1ByN9rA | ||
Runtime-Version: 2.3.0.201706232317 | ||
Save-Time: 6/25/17 8:40 PM | ||
|
||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf | ||
Content-Type: q7/binary | ||
Entry-Name: .q7.content | ||
|
||
UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVkdtKAzEQhu8F3yHkvokVBLvstrRS | ||
oeChFKHeScyO27TZJEyyB9/edGXbIhb0dub7/hlm0klbalIDemVNRofsihIw0ubKFBmtwsfglk7Glxep | ||
xYKB1Mp5YChdCMxLMAKVTdYWd+9R2txZE6ANpC1Vcoi83kfGIcYnsZ7RTQgu4bxpGmbLgsVc/vq46JHz | ||
Yw5m396bHcJLm4PmPRh9i0CJESVkdAXeVihhGfdxIIOqY0vlGX0brYvB9H57MwfQKzEbzj6fRjilxB3J | ||
ReRON6oUw1/y4n0ISWsFjR//wI2oVSGCRbZEu438vHU6rocp/+bPq12RdTc14bkKWhn4q/Ui/O5B+XDk | ||
U/6PD0b+C1BLBwjYhgQdDQEAABkCAABQSwECFAAUAAgICAAAACEA2IYEHQ0BAAAZAgAACAAAAAAAAAAA | ||
AAAAAAAAAAAALmNvbnRlbnRQSwUGAAAAAAEAAQA2AAAAQwEAAAAA | ||
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<!-- | ||
Copyright (c) 2009, 2016 Xored Software Inc 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: | ||
Xored Software Inc - initial API and implementation and/or initial documentation | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<!-- Set artifact id according to a RCPTT project name --> | ||
<artifactId>org.eclipse.triquetrum.rcptt.test</artifactId> | ||
<!-- Set group id based on application under test name --> | ||
<groupId>org.eclipse.triquetrum</groupId> | ||
<version>0.2.0-SNAPSHOT</version> | ||
<!-- RCPTT Maven Plugin provides this packaging type --> | ||
<packaging>rcpttTest</packaging> | ||
|
||
<!-- RCPTT Maven Plugin and RCPTT Runner are hosted in this repository --> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>rcptt-releases</id> | ||
<name>RCPTT Maven repository</name> | ||
<url>https://repo.eclipse.org/content/repositories/rcptt-releases/</url> | ||
</pluginRepository> | ||
<pluginRepository> | ||
<id>rcptt-snapshots</id> | ||
<name>RCPTT Maven Snapshots repository</name> | ||
<snapshots> | ||
<updatePolicy>always</updatePolicy> | ||
</snapshots> | ||
<url>https://repo.eclipse.org/content/repositories/rcptt-snapshots/</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
<!-- | ||
If RCPTT tests are planned to be run on an update site, | ||
RCPTT Maven Plugin can download Eclipse SDK of required version | ||
for current platform from repository below (to see | ||
an up-to-date list of available versions visit this link: | ||
http://maven.xored.com/nexus/content/repositories/ci4rcptt-releases/org/eclipse/sdk/ | ||
--> | ||
<properties> | ||
<rcptt-maven-version>2.3.0-SNAPSHOT</rcptt-maven-version> | ||
</properties> | ||
|
||
<!-- The main part of RCPTT Maven plugin --> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.rcptt</groupId> | ||
<artifactId>rcptt-maven-plugin</artifactId> | ||
<version>${rcptt-maven-version}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
|
||
<!-- This element describes where to get an AUT to run tests --> | ||
<aut> | ||
<!-- There are several ways to specify AUT location, | ||
Uncomment an element corresponding to a most suitable way | ||
--> | ||
|
||
<!-- Use AUT from current build results. [classifier] will be | ||
automatically replaced according to the current platform --> | ||
<!-- | ||
<explicit>${project.basedir}/../product/target/products/org.eclipse.ui.examples.rcp.browser.product-[classifier].zip</explicit> | ||
--> | ||
|
||
<!-- Or specify a path to AUT folder --> | ||
|
||
<explicit>C:/temp/triquetrum/repository/triquetrum</explicit> | ||
|
||
|
||
<!-- As well AUT can be downloaded from HTTP --> | ||
<!-- | ||
<explicit>http://server/path/aut-archive.zip</explicit> | ||
--> | ||
|
||
<!-- AUT Artifact classifier is based on a current platform: | ||
Windows 32bit: win32.win32.x86 | ||
Windows 64bit: win32.win32.x86_64 | ||
Linux 32bit: linux.gtk.x86 | ||
Linux 64bit: linux.gtk.x86_64 | ||
Mac OS X 64bit: macosx.coca.x86_64 | ||
--> | ||
</aut> | ||
<runner> | ||
<version>${rcptt-maven-version}</version> | ||
<vmArgs> | ||
<vmArg>-Xmx1024m</vmArg> | ||
</vmArgs> | ||
</runner> | ||
|
||
<!-- Test options for RCPTT Runner, most popular options listed here. | ||
Full list of options is available at: | ||
https://ci.xored.com/doc/runner/ | ||
--> | ||
<testOptions> | ||
<!-- Timeout for all tests, in seconds --> | ||
<execTimeout>1800</execTimeout> | ||
<!-- Timeout for a single test case, in seconds --> | ||
<testExecTimeout>300</testExecTimeout> | ||
|
||
<!-- When set to true, in case of test failure | ||
AUT will be restarted. This significantly | ||
slows down execution, but may be useful | ||
for some test suites --> | ||
<!-- | ||
<restartAUTOnFailure>true</restartAUTOnFailure> | ||
--> | ||
</testOptions> | ||
|
||
<!-- By default RCPTT Runner runs all tests from workspace, | ||
but it is possible to pass test suite names, so it | ||
will execute only test suites from given project. --> | ||
|
||
<!-- | ||
<suites> | ||
<suite>MyTestSuite</suite> | ||
</suites> | ||
--> | ||
|
||
<!-- Sometimes it might be useful to skip a test case | ||
(for instance because of some unresolved bug). RCPTT | ||
can skip tests based on its tags. By default RCPTT skips | ||
tests with tag 'skipExecution' (this value has been | ||
chosen because on one hand it is descriptive enough, | ||
on another hand it is unlikely that this tag name | ||
will collide with some user's tag) | ||
--> | ||
<!-- | ||
<skipTags> | ||
<skipTag>linuxOnly</skipTag> | ||
</skipTags> | ||
--> | ||
|
||
<!-- By default RCPTT generates a single HTML report file with | ||
all tests, but it is possible to generate one file per | ||
test --> | ||
<!-- | ||
<splitHtmlReport>true</splitHtmlReport> | ||
--> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- RCPTT project settings --- | ||
Format-Version: 1.0 | ||
Contexts: _dU7GQFj4EeelRaB1ByN9rA,_9Wg-AFj5EeelRaB1ByN9rA | ||
Element-Name: Project Settings | ||
Element-Type: projectMetadata | ||
Element-Version: 2.0 | ||
Id: _4lbtEFjXEeelRaB1ByN9rA | ||
Runtime-Version: 2.3.0.201706232317 | ||
Save-Time: 6/25/17 6:03 PM | ||
|
Oops, something went wrong.