Search the web
Sign In
New User? Sign Up
agile-testing · Agile Software Testing
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How much time to dedicate - refactoring test automation   Message List  
Reply | Forward Message #12890 of 18316 |
So for the first time in many, many years I'm not in a test management position, and I'm writing tests, automating them, etc. We're using a tool called soapUI to automate our web services testing--it's a handy tool, supports Groovy scripting which allows me to go directly to the DB to validate the results of a given method, etc. One feature of soapUI is centralized test scripts; I can create helper scripts to do a bunch of stuff--basically, I write the Groovy code I need to validate something and then I often find I'm moving it into a helper function, refactoring, etc.. My question is, how do you know the right balance between just mashing up the automation (ie, writing a script as an embeded test script) vs. creating the helper function and calling it?

I have to admit, I answered this question a lot as a manager, when my leads would ask me--but now that I'm on the other end, the answer "Just do the right thing" seems a bit, uh, empty. With an 11-year background at MS, my answer was usually "automated everything and do it right - pure OO code". Now that I'm in a faster-paced IT world, that 'balance' seems questionable at times. Especially in an agile environment where we're just moving through these methods left and right - I can barely keep up, coding what I need, and cleaning it up to be readable in the time that I have. Refactoring is almost out of the question.

Anyhow, your feedback would be appreciated. Thanks!!

--
John Overbaugh
blog: http://thougthsonqa.blogspot.com
MSN IM: john@...
Yahoo IM: johnoverbaugh

Wed Dec 19, 2007 8:41 pm

john.overbaugh@...
Send Email Send Email

Forward
Message #12890 of 18316 |
Expand Messages Author Sort by Date

So for the first time in many, many years I'm not in a test management position, and I'm writing tests, automating them, etc. We're using a tool called soapUI...
John Overbaugh
john.overbaugh@...
Send Email
Dec 19, 2007
8:45 pm

The general rules of thumb are that 1. If it makes the test code easier to understand, you should write the helper method and call it. 2. If you did not write...
Steven Gordon
sfman2k
Offline Send Email
Dec 19, 2007
9:36 pm

... I use these ideas and recommend them as a not-bad place to start: 1. At the end of every half-day or full-day task (depending on my mood), I'll spend a...
Brian Marick
briandawnpau...
Offline Send Email
Dec 19, 2007
11:33 pm

To tie together what I wrote and what Brian wrote: If you find yourself writing something like the following sequence ... You do not have to recognize this the...
Steven Gordon
sfman2k
Offline Send Email
Dec 20, 2007
12:20 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help