Personal tools
Make a donation
$ 




postResults.php

From OrganicDesign Wiki

Jump to: navigation, search
<?php
# 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.+?>(.+?)</td>#", $v, $m))
		$text .= "$m[2]: $m[1]\n";
file_put_contents(dirname(__FILE__)."/results.txt", $text, FILE_APPEND);

The GNU Project Debian Linux Ubuntu Linux Wikipedia Affiliate Button MediaWiki

Content under the www.organicdesign.co.nz domain is available under the Creative Commons Attribution-ShareAlike License