Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
define testng group and suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jul 4, 2012
1 parent 489e2c8 commit d00bf4f
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 11 deletions.
9 changes: 3 additions & 6 deletions functional-test/pom.xml
Expand Up @@ -263,12 +263,9 @@
<redirectTestOutputToFile>false</redirectTestOutputToFile>
<printSummary>true</printSummary>
<forkMode>always</forkMode>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>

</excludes>
<suiteXmlFiles>
<suiteXmlFile>${basedir}/src/test/resources/functional-test.tng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
Expand Down
Expand Up @@ -37,7 +37,7 @@ public void canFindText() {
assertThat(matches, Matchers.equalTo(true));
}

@Test
@Test(enabled = false)
public void canDoCampbell() {
//#. Tag: para
//#, no-c-format
Expand Down
Expand Up @@ -41,6 +41,7 @@

import lombok.extern.slf4j.Slf4j;

@Test(groups = "functional")
@Slf4j
public class CreateSampleProjectTest
{
Expand Down
Expand Up @@ -27,6 +27,7 @@

import static org.hamcrest.MatcherAssert.assertThat;

@Test(groups = "functional")
public class LoginTest
{
@Test
Expand Down
Expand Up @@ -35,12 +35,11 @@
/**
* @author Patrick Huang <a href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
*/
@Test(enabled = false,
timeOut = Constants.FIFTY_SEC,
description = "This test is to set up Translation Memory test data on the server. Disabled on Jenkins.")
@Test(groups = "manual-run")
public class TransMemoryTest
{

@Test(timeOut = Constants.FIFTY_SEC)
public void pushTransMemoryProject() {
new LoginWorkFlow().signIn("admin", "admin");
LanguageWorkFlow languageWorkFlow = new LanguageWorkFlow();
Expand All @@ -54,8 +53,15 @@ public void pushTransMemoryProject() {
int exitCode = new ClientPushWorkFlow().mvnPush("trans-memory", "-Dzanata.merge=import", "-Dzanata.projectVersion=master", "-Dzanata.pushType=Both");

assertThat(exitCode, Matchers.equalTo(0));
System.out.println("++++++++++++++++++++++++++++");
System.out.println("++++++++++++++++++++++++++++");
System.out.println("++++++++++++++++++++++++++++");
System.out.println("++++++++++++++++++++++++++++");
System.out.println("++++++++++++++++++++++++++++");
System.out.println("++++++++++++++++++++++++++++");
}

@Test(timeOut = Constants.FIFTY_SEC)
public void pushTransMemoryProjectWithDifferentProjectName() {
new LoginWorkFlow().signIn("admin", "admin");
LanguageWorkFlow languageWorkFlow = new LanguageWorkFlow();
Expand Down
Expand Up @@ -17,7 +17,7 @@
/**
* @author Patrick Huang <a href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
*/
@Test
@Test(groups = "functional")
@Slf4j
public class VersionGroupTest
{
Expand Down
16 changes: 16 additions & 0 deletions functional-test/src/test/resources/functional-test.tng.xml
@@ -0,0 +1,16 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Selenium WebDriver functional test" verbose="1">

<test name="functional test">
<groups>
<run>
<include name=".*"/>
<exclude name="manual-run"/>
</run>
</groups>
<packages>
<package name="org.zanata.feature.*"/>
</packages>
</test>

</suite>

0 comments on commit d00bf4f

Please sign in to comment.