addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Continuing on... tests that accept arguments ... idempotent

From: Filipe P.
Sent on: Friday, September 4, 2009 7:29 AM

Good morning.


Thank you for you all that reply to my initial post.


… I would like to continue this discussion, because I think it’s probably relevant to more people, and because I’m sure that someone already solved this problem.


When you are test on an environment that you absolutely control all of its devices, including all of the servers (whether inside our outside the perimeter – Cloud), you can do something very “powerful”.  After creating a resource (I’m a nut for resource oriented architecture), you can actually delete it.


Now lets evolve to another type of environment.  One in which you control VERY LITTLE control on the resources your create and/or the command POST is idempotent.


If have no control about the resources you create, your test code, will have to evolve to a new pattern… exactly the one that I’m trying to seek.  In a nutshell, yoru test code will need fresh new arguments every time it executes, and in some cases, different combination of parameters may lead to different results.


I’m sure that some of you will immediately think… doughhh…. that’s why they invented the SETUP methods concept in unittest.


But then, if that’s the only solution, what is the best pattern to build those setup routines?  Does it make sense to build GUI interfaces that allow the tester to come up with values, instead of having to develop highly complex SETUP routines?  And if running the test is so “expensive”, should there be database to store test results.  If so, have any of you created DB beds to serialize your test results?


Thanks  in advance,




P.S. – Copying Stephen Purcell (just in case J!)


The information contained in the e-mail and any attachments are intended for the named recipient(s) only. It may also be privileged and confidential. If you are not an intended recipient, you must take no action as a result of receiving it, including, but not limited to copying, distributing and amending it. If the communication has been sent to you in error, please contact me immediately and do not show the communication to any other party.


People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy