Permalink
Browse files

Write location to the screenshot file as HTML comment

  • Loading branch information...
1 parent 911dd8d commit 979381f7bb46279dff2659c43c4cd5b6beb42914 Alexander Menk committed Apr 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Mage/Selenium/TestCase.php
@@ -1546,6 +1546,7 @@ public function saveHtmlPage($fileName = null)
$fileName = $this->testId;
}
$file = fopen(SELENIUM_TESTS_SCREENSHOTDIR . DIRECTORY_SEPARATOR . $fileName . '.html', 'a+');
+ fputs($file,'<!-- Location = '.$this->_testConfig->driver->getLocation().' -->' . PHP_EOL);
fputs($file, $this->_testConfig->driver->getHtmlSource());
fflush($file);
fclose($file);

0 comments on commit 979381f

Please sign in to comment.