0

Summary/Source code from tonight's CFUG presentation

ColdFusion
Tonight, Matt Woodward and I tag teamed the DFWCFUG meeting with our mini-CFUnited wrap.  After some discussion about highlights and general themes of the conference, we each spent a little bit of time on one particular thing we brought home with us.  Matt presented the new features and highlights of Blue Dragon.  I missed that keynote at CFUnited so I was quite interested in some of the features that I had only heard brief mention of earlier.  Specifically the multi threading is quite compelling.  Rather than the approach of (to loosely  quote Matt) "throwing processes over the fence" as is done with ColdFusion asynchronous gateways, BD7 offers a more controlled approach allowing multiple named threads to do indvidual work, then come back and join the existing process.  You don't have to stretch your mind far to imagine how that might be a performance booster in places in your code.  However, for those that have experienced the woes of server errors due to filled up threads, there are dangers to be aware of as well I am sure.

After Matt wrapped, I gave a presentation on some of the testing tools/methods that I learned in John Paul Ashenfelters pre-conference class on the Monday before the conference, specifcally covering CFCUnit and Selenium.  It appeared that both were new to the majority of the group, so it was a good opportunity to share these valuable tools.  CFCUnit is a really nice testing tool that allows you to write/run tests against your components assuring that as your code changes.  I gave some very simple demonstrations testing against a simple Calculator.cfc to see if the results calculations were being returned properly (included in the linked source files below).    After CFCUnit I gave a demonstration of Selenium, which in contrast to component level testing, tests your applications from the client's perspective.  Using the Selenium IDE which is a powerful extention to Firefox, we walked through recording a user's session by walking through the sample site (included in the source files) as a user, then playing it back with the TestRunner.  Additionally I mentioned briefly some free load testing tools, including OpenSTA and Grinder.

Here is the code that I used tonight.  It includes both CFCUnit and Selenium.  I believe both are current versions as of the time of this posting, but you may want to go pull down the latest versions from their official sites.

Source Code from CFUG Meeting

Links to items discussed:
tags:
ColdFusion

Search

Dave at work...