Re: [Tutor] the art of testing

2009-11-25 Thread spir
Serdar Tumgoren wrote: > And the more I hear from you folks, the more I start thinking that my > confusion arose because I don't have a formal set of requirements and > therefore have to wear multiple hats I think a base confusion was between your app's own job (validation), on one hand, and te

Re: [Tutor] the art of testing

2009-11-25 Thread Serdar Tumgoren
Thanks to everyone for the detailed and varied responses. They really help get me situated in this unfamiliar world of testing. And the more I hear from you folks, the more I start thinking that my confusion arose because I don't have a formal set of requirements and therefore have to wear multipl

Re: [Tutor] the art of testing

2009-11-25 Thread Kent Johnson
On Tue, Nov 24, 2009 at 3:41 PM, Serdar Tumgoren wrote: > << requirements snippet>> > > Root node of every XML file is PublicFiling > Every PublicFiling node must contain at least one Filing node > Every Filing must contain 'Type' attribute > Every Filing must contain 'Year' attribute, etc. > Fil

Re: [Tutor] the art of testing

2009-11-24 Thread Nick
As well as the other replies, consider that you are doing "unit" testing: http://en.wikipedia.org/wiki/Unit_test One method is black-box testing, which is where the thing (class, function, module) you are testing is treated as a black box, something that takes input and returns output, and how i

Re: [Tutor] the art of testing

2009-11-24 Thread Dave Angel
Serdar Tumgoren wrote: That's a good start. You're missing one requirement that I think needs to be explicit. Presumably you're requiring that the XML be well-formed. This refers to things like matching and nodes, and proper use of quotes and escaping within strings. Most DOM parsers won

Re: [Tutor] the art of testing

2009-11-24 Thread Alan Gauld
"Serdar Tumgoren" wrote Simple enough in theory, but the problem I'm hitting is where to begin with tests on data that is ALL over the place. I've just spent the last 2 days in a workshop with >30 of our company's end to end test team. These guys are professional testers, all they do is tes

Re: [Tutor] the art of testing

2009-11-24 Thread spir
Serdar Tumgoren wrote: > Lie and Kent, > > Thanks for the quick replies. > > I've started writing some "requirements", and combined with your > advice, am starting to feel a bit more confident on how to approach > this project. > > Below is an excerpt of my requirements -- basically what I've

Re: [Tutor] the art of testing

2009-11-24 Thread Serdar Tumgoren
> That's a good start.  You're missing one requirement that I think needs to > be explicit.  Presumably you're requiring that the XML be well-formed.  This > refers to things like matching  and nodes, and proper use of > quotes and escaping within strings.  Most DOM parsers won't even give you a

Re: [Tutor] the art of testing

2009-11-24 Thread Serdar Tumgoren
> I'm not really sure where you are going with this? This looks like a > data specification, but you said the data is poorly specified and not > under your control. So is this a specification of a data validator? > The short answer -- yes, these are specs for a data validator. And I should have be

Re: [Tutor] the art of testing

2009-11-24 Thread Dave Angel
Serdar Tumgoren wrote: Lie and Kent, Thanks for the quick replies. I've started writing some "requirements", and combined with your advice, am starting to feel a bit more confident on how to approach this project. Below is an excerpt of my requirements -- basically what I've learned from revie

Re: [Tutor] the art of testing

2009-11-24 Thread Kent Johnson
On Tue, Nov 24, 2009 at 3:41 PM, Serdar Tumgoren wrote: > I've started writing some "requirements", and combined with your > advice, am starting to feel a bit more confident on how to approach > this project. > > Below is an excerpt of my requirements -- basically what I've learned > from reviewi

Re: [Tutor] the art of testing

2009-11-24 Thread Serdar Tumgoren
Lie and Kent, Thanks for the quick replies. I've started writing some "requirements", and combined with your advice, am starting to feel a bit more confident on how to approach this project. Below is an excerpt of my requirements -- basically what I've learned from reviewing the raw data using E

Re: [Tutor] the art of testing

2009-11-24 Thread Lie Ryan
Serdar Tumgoren wrote: Hi everyone, The list recently discussed the virtues of unit testing, and I was hoping someone could offer some high-level advice and further resources as I try to apply the TDD methodology. TDD is different from data validation. TDD ensures program correctness. Data val

Re: [Tutor] the art of testing

2009-11-24 Thread Kent Johnson
On Tue, Nov 24, 2009 at 2:02 PM, Serdar Tumgoren wrote: > Hi everyone, > The list recently discussed the virtues of unit testing, and I was > hoping someone could offer some high-level advice and further > resources as I try to apply the TDD methodology. > > I'm trying to develop an application th

[Tutor] the art of testing

2009-11-24 Thread Serdar Tumgoren
Hi everyone, The list recently discussed the virtues of unit testing, and I was hoping someone could offer some high-level advice and further resources as I try to apply the TDD methodology. I'm trying to develop an application that regularly downloads some government data (in XML), parses the dat