Rough Book

random musings of just another computer nerd

Month: August, 2009

Ten years

So ten years ago, I started college. Yeah. Ten years. I remember the ten years before that, and they seem very long compared to these last ten years that have gone by. As people always seem to say… it just seems like yesterday, and I can vividly remember each of these last ten years. It has been an amazing decade for me. Friendships that have been through a lot, that have gone through trying times, and that have come out stronger. Experiences that have shaped me and changed me, from a wide-eyed college-kid into an adult.

Five years ago, I made a similarly introspective post and I wondered where I would be five years from then. Well, so here I am. 27 years old… almost 28… I’m a veteran of a war and I’m finishing up my military service, I’m a citizen, I’m gainfully employed at a job that I absolutely love, I still own a house and a car, and finally, last but not the least, I have found that special someone I’ve been looking for my entire life (and let me tell you, she’s AMAZING). There were many times during the last ten years that were hard for me… but I somehow got through it all, and actually ended up on top when all was said and done.

Looking back at my early days in this country I laugh at myself when I think of how naïve I used to be. But I guess that’s a part of life and it’s probably something that everyone goes through. All in all, I think I’ve done pretty well for myself. So, here’s to another wonderful ten years.

Anatomy of a Grinder test-script

This is my second post regarding Grinder. In this post I’ll go over the anatomy of a recorder Grinder test-script. If you haven’t read my previous post, please take a look at it. Otherwise this post won’t make much sense!

High-level structure of a Grinder script

The high-level structure of a recorded Grinder-test-script looks like this:

[
...
import statements
...
]

[
...
header definitions
...
]

[
...
url definitions
...
]

[
...
request and test definitions
...
]

class TestRunner:
     [
     ...
     method definitions - a method is defined for each recorded page
     ...
     ]

     def __call__(self):
     [
     ...
     calls to defined methods, which actually runs the requests
     ...
     ]

     [ utility function (I'll go over this later) ]

     [
     ...
     calls to utility function to wrap/instrument tests (I'll go over this later)
     ...
     ]

Read the rest of this entry »

All original content on these pages is fingerprinted and certified by Digiprove
%d bloggers like this: