Difference between revisions of "PostResults.php"

From Organic Design wiki
m
({{legacy}})
 
Line 1: Line 1:
<?php
+
{{legacy}}{{lowercase}}
# Receives the results from the Selenium Remote Control and appends relevant data to results.txt{{php}}{{lowercase}}
+
<php><?php
 +
# Receives the results from the Selenium Remote Control and appends relevant data to results.txt
 
$text = '';
 
$text = '';
 
foreach($_POST as $k => $v)
 
foreach($_POST as $k => $v)
Line 6: Line 7:
 
$text .= "$m[2]: $m[1]\n";
 
$text .= "$m[2]: $m[1]\n";
 
file_put_contents(dirname(__FILE__)."/results.txt", $text, FILE_APPEND);
 
file_put_contents(dirname(__FILE__)."/results.txt", $text, FILE_APPEND);
 +
</php>

Latest revision as of 14:22, 22 October 2014

Legacy.svg Legacy: This article describes a concept that has been superseded in the course of ongoing development on the Organic Design wiki. Please do not develop this any further or base work on this concept, now this page is for historic record only.

<php><?php

  1. Receives the results from the Selenium Remote Control and appends relevant data to results.txt

$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); </php>