mirror of https://github.com/apache/archiva.git
enable tests that only work on firefox, conditional on the firefox profile
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf80989a26
commit
b5ebb3a6d3
|
@ -148,9 +148,21 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<suiteXmlFiles>
|
||||
<suiteXmlFile>src/test/testng/config/testng.xml</suiteXmlFile>
|
||||
</suiteXmlFiles>
|
||||
<properties>
|
||||
<!--
|
||||
Use this instead of suiteXmlFiles so that we can add the exclusion, as it is only accepted if you use
|
||||
the 'all command line parameters' mode.
|
||||
-->
|
||||
<property>
|
||||
<name>suitename</name>
|
||||
<value>${basedir}/src/test/testng/config/testng.xml</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>excludegroups</name>
|
||||
<!-- Exclude on all browsers but Firefox, as it is the only one that Selenium supports file uploads on -->
|
||||
<value>${excluded.groups}</value>
|
||||
</property>
|
||||
</properties>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
@ -404,6 +416,7 @@
|
|||
</activation>
|
||||
<properties>
|
||||
<selenium.browser>*firefox</selenium.browser>
|
||||
<excluded.groups />
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
@ -416,6 +429,7 @@
|
|||
</activation>
|
||||
<properties>
|
||||
<selenium.browser>*iexplore</selenium.browser>
|
||||
<excluded.groups>requiresUpload</excluded.groups>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
@ -428,6 +442,7 @@
|
|||
</activation>
|
||||
<properties>
|
||||
<selenium.browser>*safari</selenium.browser>
|
||||
<excluded.groups>requiresUpload</excluded.groups>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
@ -440,6 +455,7 @@
|
|||
</activation>
|
||||
<properties>
|
||||
<selenium.browser>*custom ${browserPath}</selenium.browser>
|
||||
<excluded.groups>requiresUpload</excluded.groups>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
|
|
@ -83,7 +83,7 @@ public class ArtifactManagementTest
|
|||
assertTextPresent( "Please add a file to upload." );
|
||||
}
|
||||
|
||||
@Test( enabled = false )
|
||||
@Test(groups = "requiresUpload")
|
||||
public void testAddArtifactValidValues()
|
||||
{
|
||||
// TODO: disable test on non *chrome browsers, there is no way to do file uploads (SEL-63)
|
||||
|
@ -92,7 +92,7 @@ public class ArtifactManagementTest
|
|||
}
|
||||
|
||||
//MRM-747
|
||||
@Test( enabled = false )
|
||||
@Test(groups = "requiresUpload")
|
||||
public void testAddArtifactBlockRedeployments()
|
||||
{
|
||||
// TODO: disable test on non *chrome browsers, there is no way to do file uploads (SEL-63)
|
||||
|
@ -100,7 +100,7 @@ public class ArtifactManagementTest
|
|||
assertTextPresent( "Overwriting released artifacts in repository '" + getRepositoryId() + "' is not allowed." );
|
||||
}
|
||||
|
||||
@Test( enabled = false )
|
||||
@Test(groups = "requiresUpload")
|
||||
public void testDeleteArtifact()
|
||||
{
|
||||
//prep
|
||||
|
|
|
@ -69,7 +69,7 @@ public class AuditLogsReportTest
|
|||
|
||||
// TODO: add test for adding via WebDAV
|
||||
// TODO: disable if not running on *chrome
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, enabled = false )
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, groups = "requiresUpload")
|
||||
public void testViewAuditLogsDataFound()
|
||||
{
|
||||
goToAuditLogReports();
|
||||
|
@ -90,7 +90,7 @@ public class AuditLogsReportTest
|
|||
|
||||
// TODO: add test for adding via WebDAV
|
||||
// TODO: disable if not running on *chrome
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, enabled = false )
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, groups = "requiresUpload")
|
||||
public void testViewAuditLogsOnlyArtifactIdIsSpecified()
|
||||
{
|
||||
goToAuditLogReports();
|
||||
|
@ -111,7 +111,7 @@ public class AuditLogsReportTest
|
|||
|
||||
// TODO: add test for adding via WebDAV
|
||||
// TODO: disable if not running on *chrome
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, enabled = false )
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, groups = "requiresUpload")
|
||||
public void testViewAuditLogsForAllRepositories()
|
||||
{
|
||||
goToAuditLogReports();
|
||||
|
@ -129,7 +129,7 @@ public class AuditLogsReportTest
|
|||
assertTextPresent( "admin" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues", "testUserWithRepoManagerInternalRole" }, enabled = false )
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues", "testUserWithRepoManagerInternalRole" }, groups = "requiresUpload")
|
||||
public void testViewAuditLogsViewAuditEventsForManageableRepositoriesOnly()
|
||||
{
|
||||
String groupId = getProperty( "SNAPSHOT_GROUPID" );
|
||||
|
|
|
@ -45,7 +45,7 @@ public class BrowseTest
|
|||
}
|
||||
|
||||
// MRM-1278
|
||||
@Test( enabled = false )
|
||||
@Test(groups = {"requiresUpload"})
|
||||
public void testCorrectRepositoryInBrowse()
|
||||
{
|
||||
File artifact =
|
||||
|
|
Loading…
Reference in New Issue