[evolvis-commits] r17005: It works ! ;-)

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Mar 1 01:56:22 CET 2011


Author: mirabilos
Date: 2011-03-01 01:56:22 +0100 (Tue, 01 Mar 2011)
New Revision: 17005

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/plugins/oslc/tests/func/sureFireReportTest.php
Log:
It works ! ;-)

Modified: trunk/gforge_base/evolvisforge-5.1/src/plugins/oslc/tests/func/sureFireReportTest.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/oslc/tests/func/sureFireReportTest.php	2011-03-01 00:56:17 UTC (rev 17004)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/oslc/tests/func/sureFireReportTest.php	2011-03-01 00:56:22 UTC (rev 17005)
@@ -6,17 +6,25 @@
 // provider JUnit test suite by the Maven Surefire plugin to detect if
 // tests are passed as before (non-regression)
 
-class Example extends FForge_SeleniumTestCase
+class SureFireReports extends FForge_SeleniumTestCase
 {
-  protected function setUp()
-  {
-    $this->setBrowser("*chrome");
-    $this->setBrowserUrl("https://forge.local/plugins/oslc/surefire/surefire-report.html");
-  }
 
   // Test the ServiceProviderCatalogTests results
-  public function testServiceProviderCatalogTests()
+  public function testServiceProviderCatalogTestsResults()
   {
+
+    // Make sure there's a project with a tracker
+    $this->populateStandardTemplate('trackers');
+    $this->init();
+
+    // start the OSLC test suite
+    echo "\nStarting OSLC test suite\n";
+    $directory = dirname(dirname(__FILE__));
+    echo "Executing " . $directory . "/run-provider-tests.sh\n";
+    system('cd '. $directory . '; ./run-provider-tests.sh');
+    echo "OSLC test suite executed\n\n";
+
+    // Check the results in the generated HTML report
     $this->open("/plugins/oslc/surefire/surefire-report.html");
     $this->click("link=net.openservices.provider.test.oslcv1tests");
 
@@ -25,7 +33,7 @@
     $this->assertEquals("ServiceProviderCatalogTests", $this->getText("//div[@id='contentBox']/div[3]/div/h3[contains(.,'net.openservices.provider.test.oslcv1tests')]/../table/tbody/tr[2]/td[2]"));
 
     // Tests
-    $this->assertEquals("42", $this->getText("//div[@id='contentBox']/div[3]/div/h3[contains(.,'net.openservices.provider.test.oslcv1tests')]/../table/tbody/tr[2]/td[3]"));
+    $this->assertEquals("56", $this->getText("//div[@id='contentBox']/div[3]/div/h3[contains(.,'net.openservices.provider.test.oslcv1tests')]/../table/tbody/tr[2]/td[3]"));
     // Errors
     $this->assertEquals("0", $this->getText("//div[@id='contentBox']/div[3]/div/h3[contains(.,'net.openservices.provider.test.oslcv1tests')]/../table/tbody/tr[2]/td[4]"));
     // Failures
@@ -34,4 +42,5 @@
     $this->assertEquals("0", $this->getText("//div[@id='contentBox']/div[3]/div/h3[contains(.,'net.openservices.provider.test.oslcv1tests')]/../table/tbody/tr[2]/td[6]"));
   }
 }
+
 ?>
\ No newline at end of file



More information about the evolvis-commits mailing list