konobi's Journal http://use.perl.org/~konobi/journal/ konobi's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:42:26+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 konobi's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~konobi/journal/ Vancouver.pm is alive and kicking http://use.perl.org/~konobi/journal/38574?from=rss Hi all<br> <br> I recently took over as the leader of the perl mongers group in Vancouver, BC. We had been a little on and off for a while and we've decided to always have a monthly meeting based on the advice of folks at PDX.pm. Thanks!<br> <br> We'd love to have some international visitors (and we've had some before) and we're not all that far from other PM groups and perl groups up the west coast. I can promise at least some free and wonderful Canadian beer to anyone who feels like dropping up to do a talk or two. Hell, you can even bring a contingent.<br> <br> Feel free to drop us an email on the mailing list or even drop us a note on <a href="https://www.socialtext.net/vanpm/">our wiki</a>.<br> <br> thanks!<br> <br> -konobi- konobi 2009-03-02T05:21:53+00:00 groups Test-A8N - Story Driven Development tools http://use.perl.org/~konobi/journal/36129?from=rss <p>NACHBAUR recently released Test-A8N to CPAN. This is a tools that we've been developing here for a while at work and thankfully Sophos have agreed to let us release this to the masses.</p><p>So, Test-A8N is a wrapper around Test-FITesque that we use to do story driven development around features that are needed in our product. To start out with, our QA persons along with our product manager decide what is needed and end up coming out with something like: </p><blockquote><div><p> <tt>ID:&nbsp; &nbsp; &nbsp;admin_creates_system_administrator_in_same_timezone<br> <br>TAGS:<br>&nbsp; &nbsp; - timezone<br> <br>SUMMARY: |<br> <br>&nbsp; &nbsp; This test case verifies that when an admin creates a new user,<br>&nbsp; &nbsp; if the admin does not specify the new user's timezone, it defaults to the same timezone as the admin.<br> <br>PRECONDITIONS:<br>&nbsp; &nbsp; - reset user list to: default state<br>&nbsp; &nbsp; #- set system timezone to: Vancouver, Canada/Pacific<br> <br>INSTRUCTIONS:<br> <br>&nbsp; &nbsp; - login:<br>&nbsp; &nbsp; &nbsp; &nbsp; to page: Administrators<br>&nbsp; &nbsp; - modify user:<br>&nbsp; &nbsp; &nbsp; &nbsp; username: admin<br>&nbsp; &nbsp; &nbsp; &nbsp; current password:&nbsp; &nbsp; testpass<br>&nbsp; &nbsp; &nbsp; &nbsp; timezone:&nbsp; &nbsp;&amp;test_tz Dawson Creek<br>&nbsp; &nbsp; - add user:<br>&nbsp; &nbsp; &nbsp; &nbsp; username: new_user<br>&nbsp; &nbsp; &nbsp; &nbsp; role: helpdesk<br>&nbsp; &nbsp; - logout<br>&nbsp; &nbsp; - login:<br>&nbsp; &nbsp; &nbsp; &nbsp; as: new_user<br>&nbsp; &nbsp; - is current time in timezone: *test_tz<br>&nbsp; &nbsp; - verify timezone label: "All times displayed in: (GMT-07:00) Dawson Creek"<br> <br>EXPECTED:<br> <br>&nbsp; &nbsp; - After the admin changes their timezone and adds a new user, the<br>&nbsp; &nbsp; &nbsp; default timezone displayed in the Add User popup is now the admin's<br>&nbsp; &nbsp; &nbsp; new timezone.<br>&nbsp; &nbsp; - After logging in as the newly created user,<br>&nbsp; &nbsp; &nbsp; the log status bar displays the time in the timezone of the admin.</tt></p></div> </blockquote><p>Now we, the developers have a good idea of what behaviour is expected from the feature. But hold on... that looks rather like... oh... it is... it's YAML.</p><p>So now we have human readable, but parsable information which we can use to automate testing this feature with (btw, A8N is shorthand for automation). Test-A8N provides the ability to slurp in YAML files and have it execute tests based on the instructions in the YAML.</p><p>For us to get "acceptance" on a story/feature, we must make sure that the automation is written, fixture classes spruced up and that all the tests pass. It's been working out great for us, working with a fleet of machines, multiple web technologies (WWW::Mech, Selenium, LWP, etc) along with controlling the fleet of machines via SSH, serial connections and more.</p><p>Hopefully someone else will find the idea useful.</p><p>ta!</p><p>--<br> -Scott McWhirter- | -konobi-</p> konobi 2008-04-11T17:30:36+00:00 journal Praise for the perl6/parrot hackers http://use.perl.org/~konobi/journal/35311?from=rss I just want to say that the perl6/parrot hackers are doing an awesome job and I'm unbelievably thankful that they've been blogging about their progress and telling us all about the super interesting stuff they've been up to.<br> <br> I'm now starting to get very excited about all of it and it's making it more and more tempting to just jump in and do stuff.<br> <br> Keep up the good work guys! I hope to hack on this stuff soon! konobi 2008-01-06T21:03:30+00:00 journal Template-CTemplate http://use.perl.org/~konobi/journal/35078?from=rss <p>I've just uploaded a new module to the CPAN <a href="http://search.cpan.org/dist/Template-CTemplate/">Template-CTemplate</a>. </p><p> This is currently a fairly raw and basic set of XS bindings to googles ctemplate library. I basically hacked this up to play around with XS and C++ but it seems to have worked out well, so I've uploaded it for others to play with and test. </p><p> My C/C++/XS knowledge is pretty limited at the moment, so there's every likelihood that it'll just blow up on any serious usage, but patches are welcome, especially documentation and portability patches. </p><p> I'm currently not putting any effort at all into supporting win32, but if someone wants to make it work, lemme know (I'll be targetting OSX, Linux, FreeBSD and Solaris). </p><p> ta! </p> konobi 2007-12-10T18:55:47+00:00 journal Test::FITesque released! http://use.perl.org/~konobi/journal/33744?from=rss Hey all, So I've just released <a href="http://search.cpan.org/dist/Test-FITesque/">Test::FITesque</a> to the world. Test::FITesque is my take on the whole FIT/FitNesse framework, but done in a perlish manner.<br> <br> Hopefully others'll find it useful for their own acceptance/integration testing.<br> <br> <br> -- <br> -Scott McWhirter- | -konobi- konobi 2007-07-08T22:18:43+00:00 journal