Resolve to canonical name

AboutUs


Task

A completed test (or test suite, as appropriate) for "Ensure that different capitalizations of domain names all resolve to the "canonically named page" for that domain"

software needed

Ted is running

shell script

We now have "run_acceptance_test.sh" in the /tests directory which contains:

#!/bin/bash
nowdate=`date "+%Y.%m.%d..%H:%M:%S"`  # save the current timestamp in a variable
logdir=CanonicalAboutUsURLsLogs       # set the log directory variable

mkdir -p $logdir

# start the selenium server and redirects its output to a timestamped filename
# selenium_server in the $logdir
java -jar selenium-server.jar -multiWindow &> $logdir/${nowdate}_selenium_server &
sleep 2;

# run phpunit on the Test file, with TAP-formatted output going to a timestamped
# filename phpunitTAP in the $logdir and standard phpunit output going to stdout
phpunit --log-tap $logdir/${nowdate}_phpunitTAP CanonicalAboutUsURLsTest

killall java -jar selenium-server.jar            # shut down the selenium server


(stuff from this page that turned out to be not needed have been moved to the archive)



Retrieved from "http://aboutus.com/index.php?title=Resolve_to_canonical_name&oldid=12080851"