For a while I have been doing ad hoc runtime smoke testing of deployments with tools like Selenium. i.e. running a set of simple tests that exercise a series of pre-defined application points. The scripts where typically recorded using the excellent Selenium IDE then replayed through ant/Junit on one or more target browser platforms.
Not full regression testing but a start - right? Well these tests become a pain to maintain, and unmaintained/unreliable tests are pointless.
I’ve been testing a new site with Selenium. Part of this work was on my Mac and in addition to running the tests in Firefox, I wanted to use Safari too. Whenever I launched the test case the first driver window opened, but the content window didn’t ever appear. No errors, no fuss, it just didn’t happen.
After walking away from the problem for a while, the penny finally dropped……..Safari blocks pop-ups by default!
If you need to enforce certain patterns in commit messages for svn (eg. ticket nos etc) create a script in ~repos/hooks/pre-commit :
REPOS="$1" TXN="$2" # Make sure that the log message contains some text of form Feedback nnnnn: SVNLOOK=/usr/local/bin/svnlook match=\`$SVNLOOK log -t "$TXN" "$REPOS" | grep -i 'feedback.\*\[0-9\]:'| wc -c\` if \[ $match -eq 0 \] then echo "COMMIT HAS FAILED:Log message does not contain feedback number eg. feedback nnnn: commit message" 2>&1 exit 1 else exit 0 fi exit 0
After installing most recent Apache on our Solaris 10 box we got a lot of errors with the default config for listening on SSL. Many many lines like :
(128)Network is unreachable: connect to listener on [::]:443
Basically on Solaris Listen 443 doesn’t hack it anymore. If you want to listen on all interfaces use :
Listen 0.0.0.0:443
We have had a very odd issue with IE7 being sent pdf files over https.
Standard headers that look like this :
Cache-Control: no-cache, must-revalidate Content-Disposition: attachment;filename=mysecretpdffile.pdf Content-Type: application/pdf Content-Length: 19180 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Work fine under IE 5/5.5/6, Opera, Safari et al, but IE 7 reports that the content is not available.
After a bit of searching I found an excellent post at :
http://in2.php.net/manual/en/function.header.php#74736
For us adding the following headers in Java have resolved the issue :
I’m kind of an old school command line hacker, but I’ve got to face up to the fact that the rest of the world seems to be moving on from the ksh. As such my previous super powers for editing command histories with vi commands (Esc-k, /, etc) are going to have to be retired. As the rest of the planet has embraced bash, I’ve found myself struggling with the fact that crtl-r only lets me get the previous command.
I needed to migrate a chunk of data from an example Derby database up to Oracle 10g today. I found a minor issue with the Hibernate mappings that I was creating. In Derby I could happily have double columns, and these needed to be converted to binary_double columns in Oracle.
However I kept having issues with the schema validation in hibernate :
**Wrong column type: binary_double, expected: double precision **
I always seem to forget this :
Edit the eclipse.ini in the Application package, not the one in the install dir.
I’ve had a problem with upgrading Parallels the excellent tool for running VMs in OSX. For some reason that I could not initially spot the install would hang in the preflight check before applying all the files. I also had a similar problem trying to force an uninstall.
To cut a long story short it appears that the install/uninstall scripts try to shut down the InternetSharing and bootpd daemons…..in my case these would simply not die through the current script and I had to intervene manually - the install then ran fine.
I got frustrated with spaces on Leopard because moving windows around between active spaces didn’t seem easy. Turns out it is - all you need to do is click on the menu bar for the window you want moved and then use CTL-LeftArrow/RightArrow to move the window to another space.