[Fusionforge-commits] r12345 - branches/Branch_5_1/src/plugins/oslc/tests/func

Sabri LABBENE labbenes at fusionforge.org
Tue Feb 22 12:00:59 CET 2011


Author: labbenes
Date: 2011-02-22 12:00:57 +0100 (Tue, 22 Feb 2011)
New Revision: 12345

Modified:
   branches/Branch_5_1/src/plugins/oslc/tests/func/sureFireReportTest.php
Log:
Update selenium tests according to latest changes from IBM in OSLC JUnit testsuite.

Modified: branches/Branch_5_1/src/plugins/oslc/tests/func/sureFireReportTest.php
===================================================================
--- branches/Branch_5_1/src/plugins/oslc/tests/func/sureFireReportTest.php	2011-02-21 20:54:04 UTC (rev 12344)
+++ branches/Branch_5_1/src/plugins/oslc/tests/func/sureFireReportTest.php	2011-02-22 11:00:57 UTC (rev 12345)
@@ -24,21 +24,15 @@
     system('cd ' . $directory . '; ./run-provider-tests.sh');
     echo "OSLC test suite executed\n\n";
 
-    // Check the results in the generated HTML report
+    // Check the OSLC JUnit testsuite results in the generated HTML report
     $this->open("/plugins/oslc/surefire/surefire-report.html");
-    $this->click("link=net.openservices.provider.test.oslcv2tests");
     $this->assertEquals("net.openservices.provider.test.oslcv2tests", $this->getTable("//div[@id='contentBox']/div[3]/table.1.0"));
-    $this->assertEquals("79", $this->getTable("//div[@id='contentBox']/div[3]/table.1.1"));
-    $this->assertEquals("2", $this->getTable("//div[@id='contentBox']/div[3]/table.1.2"));
-    $this->assertEquals("0", $this->getTable("//div[@id='contentBox']/div[3]/table.1.3"));
-    $this->assertEquals("0", $this->getTable("//div[@id='contentBox']/div[3]/table.1.4"));
-    $this->assertEquals("97.468%", $this->getTable("//div[@id='contentBox']/div[3]/table.1.5"));
     $this->assertEquals("ServiceProviderCatalogXmlTests", $this->getTable("//div[@id='contentBox']/div[3]/div/table.1.1"));
+    $this->assertEquals("100%", $this->getTable("//div[@id='contentBox']/div[3]/div/table.1.6"));
     $this->assertEquals("ServiceProviderXmlTests", $this->getTable("//div[@id='contentBox']/div[3]/div/table.3.1"));
-    $this->assertEquals("ServiceProviderCatalogRdfXmlTests", $this->getTable("//div[@id='contentBox']/div[3]/div/table.5.1"));
-    $this->assertEquals("17", $this->getTable("//div[@id='contentBox']/div[3]/div/table.1.2"));
-    $this->assertEquals("48", $this->getTable("//div[@id='contentBox']/div[3]/div/table.3.2"));
-    $this->assertEquals("12", $this->getTable("//div[@id='contentBox']/div[3]/div/table.5.2"));
+    $this->assertEquals("100%", $this->getTable("//div[@id='contentBox']/div[3]/div/table.3.6"));
+    $this->assertEquals("ServiceProviderCatalogRdfXmlTests", $this->getTable("//div[@id='contentBox']/div[3]/div/table.4.1"));
+    $this->assertEquals("100%", $this->getTable("//div[@id='contentBox']/div[3]/div/table.4.6"));
   }
 }
 ?>




More information about the Fusionforge-commits mailing list