Difference between revisions of "PostResults.php"

From Organic Design wiki
(New page: <?php # {{php}}{{lowercase}} $text = '...)
 
m
Line 1: Line 1:
 
<?php
 
<?php
# {{php}}{{lowercase}}
+
# Receives the results from the Selenium Remote Control and appends relevant data to results.txt{{php}}{{lowercase}}
 
$text = '';
 
$text = '';
 
foreach($_POST as $k => $v)
 
foreach($_POST as $k => $v)

Revision as of 10:32, 3 August 2008

<?php

  1. Receives the results from the Selenium Remote Control and appends relevant data to results.txtTemplate:Php

$text = ; foreach($_POST as $k => $v)

if (ereg("^testTable_[0-9]+", $k) && preg_match("#status_(passed|failed).+?<td.+?>(.+?)#", $v, $m)) $text .= "$m[2]: $m[1]\n"; file_put_contents(dirname(__FILE__)."/results.txt", $text, FILE_APPEND);