diff --git a/html/test.php b/html/test.php
index 84f1449fc..76774e48a 100644
--- a/html/test.php
+++ b/html/test.php
@@ -26,8 +26,7 @@
* - secund the test must adapted to this page : if you do a post (or get) from a test, you won't get any result
* if the $_REQUEST[test_select] is not set, so set it .
*/
-$start_mem=memory_get_usage();
-$start_time=microtime(true);
+
include_once("../include/constant.php");
@@ -69,25 +68,34 @@ if ($script=="")
*/
$scan=scandir('../scenario/');
$max=count($scan);
-
+
echo '
';
+ for ($e_scan=0; $e_scan<$maxscan; $e_scan++)
+ {
+ if (is_file('../scenario/'.$scan[$e_scan])&&strpos($scan[$e_scan], '.php')==true)
+ {
+ $description="";
+ $a_description=file('../scenario/'.$scan[$e_scan]);
+ $max_description=count($a_description);
+ for ($w=0; $w<$max_description; $w++)
+ {
+ if (strpos($a_description[$w], '@description:')==true)
+ {
+ $description=$a_description[$w];
+ $description=str_replace('//@description:', '', $description);
+ }
+ }
+ $start_mem=memory_get_usage();
+ $start_time=microtime(true);
+ $script=str_replace('../', '', $script);
+
+ echo ''.$script."
";
+ echo ' description = '.$description.'
';
+ include '../scenario/'.$scan[$e_scan];
+ echo '';
+ echo '';
+ $end_mem=memory_get_usage();
+ $end_time=microtime(true);
+
+ echo "start mem : ".$start_mem;
+ echo '
';
+ echo "end mem : ".$end_mem;
+ echo '
';
+ echo "Diff = ".($end_mem-$start_mem)." bytes ";
+ echo "
Diff = ".(round(($end_mem-$start_mem)/1024, 2))." kbytes ";
+ echo "
Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes ";
+ echo '
';
+ echo "Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes
";
+ }
+ }
+}
else
{
-
- $script=str_replace('../','',$script);
+ $start_mem=memory_get_usage();
+ $start_time=microtime(true);
+ $script=str_replace('../', '', $script);
$description=HtmlInput::default_value_get("description", "aucune description");
echo ''.$script."
";
echo ' description = '.$description.'
';
@@ -121,4 +175,4 @@ else
echo "
Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes ";
echo '
';
echo "Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes
";
-}
\ No newline at end of file
+}
\ No newline at end of file