Index: /branches/sc_branches/psps_testing/testers/batch_file.py
===================================================================
--- /branches/sc_branches/psps_testing/testers/batch_file.py	(revision 29227)
+++ /branches/sc_branches/psps_testing/testers/batch_file.py	(revision 29228)
@@ -25,13 +25,6 @@
       of the files contained in the archive
 
-    >>> print BatchFileTester("data/psut/ok/B00000010.tar.gz").test()
-    PSDC-940-006-01, 3.4.1: OK
-    PSDC-940-006-01, 3.4: OK
-    PSDC-940-006-01, 3.5.1.2: OK
-    PSDC-940-006-01, 3.5.1.1: OK
-    PSDC-940-006-01, 3.5.1 (file attributes/name): OK
-    PSDC-940-006-01, 3.5.1 (file attributes/size): OK
-    PSDC-940-006-01, 3.5.1 (file attributes/MD5 checksum of file): OK
-    BARF
+    >>> print BatchFileTester("data/psut/ok/B00000010.tar.gz").test().success
+    True
     """
     def __init__(self, filename):
Index: /branches/sc_branches/psps_testing/testers/fits/p2.py
===================================================================
--- /branches/sc_branches/psps_testing/testers/fits/p2.py	(revision 29227)
+++ /branches/sc_branches/psps_testing/testers/fits/p2.py	(revision 29228)
@@ -66,15 +66,17 @@
         nOTA = product.nOTA
         if len(self.fits) != 4*nOTA + 2:
-            report.write('\nInvalid number of OTA: from FITS file: %d / from FrameMeta %d'
-                         % (len(self.fits)-2/4, nOTA))
-            return (report.getvalue(), None)
+            TestReport.ko('Invalid number of OTA: from FITS file: %d / from FrameMeta %d'
+                          % (len(self.fits)-2/4, nOTA), 
+                          {'requirement': 'TBD'})
+            return TestProduct()
         for ota_index in range(nOTA):
             PsPsLogger.debug('  Testing P2FitsTester object: OTA (%d/%d)'
                                % ((ota_index+1), nOTA))
-            (messages, values) = self.test_detections_frames(frameID, ota_index, 
-                                                             be_tolerant_for_types) 
-            PsPsLogger.debug(messages)
-            report.write('\n' + messages)
-        return (report.getvalue(), None)
+            subproduct = self.test_detections_frames(frameID, ota_index, 
+                                                     be_tolerant_for_types)
+            if subproduct.success:
+                TestReport.ok(requirement)
+            product.success = product.success and subproduct.success
+        return product
 
     #####################################################
