Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Better Software magazine article for software-testing Perl newbies

by McMahon (Chaplain)
on Sep 02, 2004 at 15:50 UTC ( [id://387947]=perlnews: print w/replies, xml ) Need Help??

Hello monks...

Awhile back I asked for some help with some code for an article I was writing for Better Software magazine (formerly Software Testing and Quality Engineering). I got some great comments and suggestions.

Some background on the theme here: many software testers today are in fact UI or domain experts. However, the software testing culture is shifting and is starting to value programming and sysadmin skills more than UI and domain expertise. Many testers are facing an uncertain future in the industry unless they can pick up some very basic programming skills.

My article was intended to outline a common testing problem that can not be solved manually, then demonstrate a solution to the problem with a script that was easy for a newbie to understand. My scripts, while not too technically excellent, are readable (I hope) and show some nice features of Perl that should be attractive to a newbie. (I was a bigger newbie when I wrote these, I probably would have written them slightly differently today.) Like the man said, there's nothing wrong with Baby Perl.

Anyway, they show some nifty things about Perl:
CPAN and modules: File::Find and List::Compare, both pretty intuitive
open.. or die()
for loops
lc()
unless () (very readable and nifty in this context)
simple regexes
print

The article isn't on the web yet, but here's the TOC with a summary of the article (under "Departments" at the bottom of the page, page 14) and here's the code for the two little scripts.

Thanks again to all the monks who commented. The comments I ignored were maybe even the most valuable, because I had to think very carefully about why I had written it that way.
  • Comment on Better Software magazine article for software-testing Perl newbies

Replies are listed 'Best First'.
Re: Better Software magazine article for software-testing Perl newbies
by johnnywang (Priest) on Sep 02, 2004 at 18:19 UTC
    while I did not read your article, I totally agree with the idea that test engineers need to be able to code. In fact, we were discussing this just last night when we were trying to put out a job description for a QA position. I've seen too many testers (especially for web applications) who just go through the app one page at a time. The QA cycle is too long, and they tend to skip many tests. Automation is the way to go, albeit there're technical difficultis. For perl, WWW::Mechanize and HTTP::Recorder are great modules.
Re: Better Software magazine article for software-testing Perl newbies
by EdwardG (Vicar) on Sep 03, 2004 at 15:15 UTC

    Microsoft calls the role Software Development in Test

    Coincidentally, my employer (a software house) is planning the same kind of emphasis (GUI->code) within test over the next year.

    I'm looking forward to it.

     

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlnews [id://387947]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-18 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found