Resolve to canonical name
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
- PHP 5.2.0 (cli)
- PHPUnit/Installation 3.0.0 (3.0.2 is the latest release)
- installed with pear 1.4.11
- selenium-rc 0.9.1-snapshot (0.9.0 is the latest release)
- 0.9.0 doesn't work with firefox 2.0.0.1, but it does work with 2.0
- Testing/Selenium#Selenium Remote Control (follow the instructions at "This is important")
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)