http://jboss-soa-p.blogspot.com/2010/07/jbossesb-drools-integration-in-jboss.html
http://jboss-soa-p.blogspot.com/2010/07/jbossesb-drools-integration-in-jboss.html
http://jboss-soa-p.blogspot.com/2010/07/jbossesb-drools-integration-in-jboss.html


I'm currently consulting at a large corporate outfit in Silicon Valley - sometimes it's a bit like going back in time to the mid-90s. They're using CVS and most developers don't have much visibility into the repository, so one of the first things I set up was an email to interested people every time somebody checks into CVS.
Hudson was the perfect choice for this since I want to move on to continuous build, test and deployment eventually, but it doesn't hurt to start with a baby step. The surprise on the faces of people who haven't come across Hudson or CI tools in general is something to behold !
I had to run Hudson on a Windows machine, which came with its own little set of issues, so here's a step by step for future reference.
- Install a Windows CVS command line client. This proved a little hard to track down as the main cvsnt.org site doesn't seem to have any free downloads any more. I eventually found the CVSNT client bundled with the CvsGui project at http://www.wincvs.org/ - it comes with a separate installer, cvsnt_steup.exe, that lets you install just the client utilities.
- Install and run Hudson - just get the WAR file from the download page, save it locally and run "java -jar hudson.war"
- Set up Hudson as a Windows service - in typical easy-to-use Hudson fashion, you do this from within Hudson itself by going to the "Manage Hudson" page and selecting "Install as Windows service".
- Make sure that the Hudson service will run as a user that's already set up to access the CVS repository - for example, if your repository access is via extssh, you'll need to make sure that the user already has the SSH host connection info saved locally, so that you don't get prompts about saving the connection info when Hudson tries to do a CVS update. On Windows XP (yep, my corporate paymaster is still on XP), right-click My Computer in the Start menu, click Manage, then Services under Services and Applications. Right click the Hudson service, select Properties, then enter the user name and Windows password in the Log On tab.
- Restart your machine - I found that this was the only reliable way to get Hudson to come back up after making changes in steps 3 and 4.
For extra email configurability I used the email-ext plugin; this lets you send email for all successful builds (not just failures and fixes like the default Hudson behaviour) and include all kinds of info in the email body, such as a list of file changes in configurable format.
More to follow as I set up the build and test stuff; we have a client written in Adobe flex talking to a SOAP API with Tibco on the back end, so there should be some, ahem, interesting challenges there ....
I’d like to elaborate on something from a previous post on SDETs at Microsoft. One thing that is perhaps a bit different about the test role at Microsoft is its tie to the career path. We are, for better or worse, big believers in career growth and expect growth in scope and impact from all of our testers.
Eric, a former manager of mine has a nice post on our “career stages” in this blog post. His post is on SDEs, but it applies to SDETs for the most part. Eric’s descriptions are wonderful, and well written. At risk of being a copy cat blogger, however, I’m going to offer a sentence or two of commentary on the non-manager SDET career stages at Microsoft.
SDET – This is where most of our testers start, and where you figure out how to do your job, and do it well. This stage is about learning the trade (tools, practices, dynamics, etc.). You won’t make it out of this stage just by being a fantastic tester – everyone in this stage is a fantastic tester.
SDET II – At this stage, the big thing is independence – SDET “2s” get stuff done, and don’t get stuck – in fact, they don’t let themselves get stuck. At this stage, testers also start to get their eyes of the immediate tasks at hand more often and think a bit about the future of their org. They have influence in their team, and often accomplish significant tasks that impact their entire org.
Senior SDET – Leadership is expected at this stage. It can be technical leadership or strategic influence – but the big point is that you have a huge amount of influence and impact on your entire team (with occasional forays into impact across your organization). For a longer explanation, please meet Alecha, Sanjay, Jodi and Kaz.
Principal SDET – SDETs at this level are expected to have influence and impact across their group (i.e. well beyond the testers that work in their own managers organization). We don’t have personas for this level shared externally yet, but if you think of the gang of four above with a much wider scope of impact, you’ll be close.
Partner SDET – This is scope of impact ratcheted up to 11. These folks leaders across an entire division (remember, that we’re talking about leadership – not management). They often make decisions that can save millions of dollars (and do so with consistency and confidence). Again – we have no personas for these folks, but just think of the same gang of four leading successfully across an entire division.
Internally, we have career stage profiles that define a lot more about these roles (some examples are in chapter 2 of hwtsam). The one bit of possible weirdness with the big emphasis on career paths is that we expect everyone to grow to at least Senior, and I worry sometimes that there are fantastically awesome wonderful super-testers who just aren’t capable of leadership at the Senior level. As I think about it though, I wonder if I (we?) just need a broader view of what leadership in testing really is. Right now, we have a relatively small percentage of folks at Senior+ levels, so I may be looking at this through eyes stuck on the small population of people currently “leading” at those levels.
Just hoping to clear up some mysteries – hope you find this helpful.
Alfred North Whitehead, the famous English mathematician and Philosopher warned us “Seek simplicity and learn to distrusts it”. Simplicity is so tempting that it fools our minds and thinking and makes us glued to it. It appears to me that we have not learnt to distrust simplicity at all – worst many even does not know that we should “doubt” it. There is “banana” principle, attributed to Jerry Weinberg. For many things like simplicity, we have only learnt how to start but have horrible lost the trick “when to stop”.
Many in software world believe that software testers are expected to answer questions that, simply lead to “pass” or “fail”, “works” or “does not work”. These questions are like asking “is 4+4 =8? Is this an isosceles triangle? Is the temperature of this body 86 degree centigrade? What is National Stock market Index today?” Engineering, mathematical and scientific questions right?
In our software profession, we love to pose “engineering/scientific” questions that lead to binary answers. After all we are software ENGINEERS and software is ENGINEERED. Hence I started this post with simplicity and our obsession with simple models of complex things. What is the true nature of questions/problems that software testers investigate and solve? Let me make a bold conjecture here. I think they are similar to the questions that we pose in the realm of social sciences. For example, questions like “Is homosexuality linked to or mainly due to some mental illness?” or “Should burqa be banned in public places” or “Is there a God”. These questions are asked in a broad social setup and are linked various material practices of the people in the society, about their culture, history etc. Much in a similar way, software operates in a social context and people are mainly concerned about how software alters their day-today work. The nature of questions/problems requires non-binary, qualitative answers and solutions. The questions about quality are based on emotional, subjective feelings (there is no binary 0 or 1 about software quality).
As Michael Bolton says “decisions about quality are always emotional and political”. How can there be binary mathematics in emotions and politics? That is the point these software engineers and process people miss and insist on quantified definitions of quality and other abstract entities associated with Software or they are constantly conditioned by the business environment to believe so? Coming back to simplicity, software engineers (process/CMMI/Six Sigma) people definitely think that the problems that software testers/engineers solve (investigate- actually) are purely engineering/mathematical in nature. Hence they believe in absolute answers, causality, objectivity and certainty.
I think they are wrong !!!! When do we learn when to stop saying “banananananana..?” While write this and few interested in debating about “nature of testing problems”, many budding software testers are happily busy in churning out hundreds and thousands of test cases and blissfully shouting “pass” or “Fail”. Well, you might say do they have options … I am sure they do.
Shrini
Date: 3rd July 2010
Time: 15:30 – 17:30 GMT
Mission: This week’s mission is Bug Dissection. Let’s improve our own bug reporting by studying bug reports, and analyzing them together. Can we redraft any of these reports to make them clearer and more persuasive? Or does the bug report look pretty good to you already? If so – why? What do you like about it?
Bear in mind that the bugs we’ll be studying may not have been reported by experienced testers. So let’s not be too critical of the bug reporter – they’ve made an important contribution to the open source community by taking the time to note an issue about the product, and they’ll probably have learned a lot themselves by reporting the bug.
Product: Open Office Writer
Testers: Ajay Balamurugadas, Katya Kameneva, Alexei Barantsev, Dr. Meeta Prakash, Anna Baik, Markus Gärtner.
Anna Baik facilitated the debrief.
Ajay Balamurugadas started the debrief with his lessons learnt. He learnt that Open Office Tracker is a good source to improve your skills. Practice and improve, retrospect. How people other than testers log bugs can be felt. Follow up tests are also important, and notes also help. If someone doesn’t agree with your bug, they just don’t agree with your oracle for the bug.
Alexei Barantsev continued the debrief, stating that good bug description writing is an useful skill for any tester. An especially important skill is extracting the essence of the bug and wrapping it in a short subject line, which saves lots of time for those looking through the bug tracker. For developers though, there are other things more important than that subject line: 1) clear description (RIMGEA), and 2) good reasoning that explains why it IS a bug.
Chat transcript to follow.
Ajay has a ticket to EuroStar, but he could really do with some help with accomodation and food costs. Can you help?
We’ve set up a ChipIn Widget with a target of $800, all money goes directly to Ajay, we’re just helping promote a worthy cause.
We think Ajay is worth investing a few dollars into. Go on…
In the Checking structure of created folders example I used a text file as a source, containing manually prepared folder names to check for. Today I want to show how file/folder structure could be captured automatically.
Data Record Declaration
For this example, data will be stored in Dictionary object serving as a dynamic array of records.
Sample file information record:
Class FileInfo
'full path
Public FullPath
'"FILE" / "FOLDER"
Public FileType
'file size to check
Public FileSize
End Class
Map Folder Structure and Store it in Dictionary
This is a main function. It performs basic verification and initiates the chain of folder mapping calls.
Public Function MapStructure(ByVal sParentFolder, ByVal sSubFolder, ByRef objDataRecord)
Dim objFSO
'
Set objFSO = CreateObject("Scripting.FileSystemObject")
boolRC = objFSO.FolderExists(sParentFolder & "" & sSubFolder)
If Not boolRC Then
Set objFSO = Nothing
MapStructure = False
Exit Function
End If
Set objFSO = Nothing
Set objDataRecord= CreateObject("Scripting.Dictionary")
Call MapFolder(sParentFolder & "" & sSubFolder, objDataRecord)
MapStructure = True
End Function
Recursively Map Folder Contents
Any folder can contain files and other folders. For that reason, I will use a recursive calls approach.
Private Function MapFolder(ByVal sTargetFolder, ByRef objDictionary)
Dim FSO, objFolder, objChild
Dim objFI
Set FSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = FSO.GetFolder(sTargetFolder)
'write about itself
Set objFI= New FileInfo
objFI.FileType = "FOLDER"
objFI.FullPath = objFolder.Path
objFI.FileSize = 0
Call objDictionary.Add(objDictionary.Count + 1, objFSR)
'write about child files
For Each objChild In objFolder.Files
Call objDictionary.Add(objDictionary.Count + 1, MapFile(objChild))
Next
'Call recursively to write about subfolders
For Each objChild In objFolder.SubFolders
Call MapFolder(objChild.Path, objDictionary)
Next
Set FSO = Nothing
End Function
Map Single File Information
For this example, file path and file size are captured.
Private Function MapFile(ByRef objFile)
Dim objFI
Set objFI= New FileInfo
objFI.FileType = "FILE"
objFI.FullPath = objFile.Path
objFI.FileSize = objFile.Size
Set XCC_MapFile= objFI
End Function
Related Posts:
iOS 4 has only been out for a couple weeks, and there are still a large number of apps on my phone which do not support any of the new features. I realize there’s a good chunk of work involved in implementing iOS 4 features. But the OS didn’t appear overnight, it’s been available in beta for months. From what I’ve read, many iPhone devs just haven’t made iOS 4 a high priority.
Several iPhone dev blogs I’ve read have recent posts mentioning “just getting around to checking out iOS 4″. I can understand why- it’s extra work they can’t charge for, the SDK has some frustrating quirks that make updating more difficult than expected. Most importantly, we’ve lived without these features for years, so another few months won’t hurt.
It will hurt. iOS 4 has already changed the way many of us use our iDevices. We’re getting used to features like fast app switching and backgrounding. Soon tens of millions of new iPhone 4 users will get so used to Retina Display as well. Apps that support iOS 4 features gain a significant competitive advantage over those that don’t.
Example- My Pandora usage has spiked since they implemented backgrounding in their iPhone app, while my Rhapsody usage has dropped. I even started listening to Pandora at work, and the thought has crossed my mind of whether I should just cancel Rhapsody and go with Pandora. None of this would have happened if Rhapsody included iOS 4 features early. Will I cancel Rhapsody? Not yet. But the lack of iOS 4 support actually got me to notice and consider competitors. Another example- I use Podcaster now for my podcast catcher, which is a horribly buggy mess of an app. But it does backgrounding and iPod control which Mediafly doesn’t, so cya Mediafly. In this case I paid for a (buggy) app that supports iOS 4 features instead of using a free (stable) one that does not.
Getting iOS 4 updates rolled out as soon as possible should be a top priority, before your user base moves on without you.
There's so much to talk to about I'm going to break it up into a series of blogs and have some fun with it; if I ever stop laughing at myself and the world around me, I'll know it's time to hang up my gloves...
Now I've been honored by any number of calls from firms that would like to discuss my qualifications and I'm not going to reward their interest by besmirching their Good Names. If you read something and say "My God!!! She's writing about US!!!", kindly remember I've talked to a lot of people. It's unlikely I've picked you, personally, out of the pack. But if you recognize some of these issues, well, maybe it's a sign you might want to work on your courtship methods. And for those looking for better opportunities, maybe it will help you decide what questions you'd like to have answered before you say "I do.".
I think it would be best to set a little context before I start; what I'm looking for and what Floats My Boat might be different from yours. There are some general considerations when looking for work; money, title, people/environment, and extras. Everyone puts those in a different order.
For me, the job comes first. I have to be attracted to and excited by the opportunity itself. Why is that? Because I have a lot of experience and have been in jobs that paid Very Well Indeed that I didn't like much. The money wasn't worth it. I've had a few jobs where no amount of money would have been worth it. Money is not my primary motivator. I like what I do for a living, and I expect to look forward to getting up and going into work every morning. Since I have a lot of experience, what interests me most are positions that let me me use that experience. I like complex environments with a lot of interfaces, a lot of people, and a lot of problems. I'm used to being in charge and I'm easily bored, so when I say I need challenge, it's not a bunch of hokey applicant BS. Problems are ennervating; that's why I'm in this field.
People and environment come next. When you're interviewing, you need to connect with your interviewer. Sometimes, what they forget is that have to impress you as well. If I don't like the hiring manager or my peers, I'm not going to deliberately put myself into a position where I'd have to work with or for them every day. The environment has to resonate with me. Many of you have "been there, done that", so you know what I'm talking about. Nothing is worse than working for/with people who get on your last nerve. Again, there is no level of compensation that will ever make that kind of opportunity anything but Heinous.
Money is third on my list. It's not my primary motivator, but it IS a motivator. Look, I've got more than 25 years of experience. I'm just not going to be cheap. That's reality. A company doesn't really want or need to hire me if someone with 5 years of experience can do the job. Believe me, I'm not going to be resentful if I don't fit into someone's budget. So it's useless to try to talk me into a ginormous pay cut just for the privilege of getting my foot in the door at (some) company. I'm not 25 years old. I don't want to spend the next 15 years moving up a largely mythical corporate ladder. I've already Done My Time. If I really want the job you have to offer, I might negotiate a little, but generally, if my financial situation reaches critical mass, I'll just sign on with some local consulting firm and consult for a while. I've taken jobs in the past that cut my salary - it has never, not once, been worth it. And promises that salaries will miraculously go up at some unspecified time in the future are pretty much worth the paper they're written on. I know there are a lot of you out there that, if they're temporarily out of work, would and have taken the first thing that popped up. But were you happy about it? Or did you resent it? Did you just stay there, or did you continue looking for something better? There's a lesson there, by the way, for hiring firms. Don't lowball talented candidates. Even if they accept, they won't stay.
Next on my list is title. Titles generally only mean something in relation to other positions at a given company. The primary players in the QA arena should be in keeping with similar positions in the DEV arena. I know the difference between a lead, a manager, a director, and a VP. So the likelihood of me being impressed by a sexy title that any competent senior analyst could handle is slim and none. But I think companies that offer such titles are smart, smart, smart. There are many talented leads out there that would really like the word "manager" or "director" in their title. For me, the job title has to match the job responsibilities. That said, my ego is just as healthy as everyone else's - if the job is great and the money is good, having a sexy title like "Supreme Ruler of the Quality Universe" is a nice, albeit unnecessary, perk.
Last on my list is extras. You can never count on an extra; it's usually the first thing taken away if the company has a bad financial year. I expect "normal" benefits and will actually give up some salary for vacation, but generally anything else is just a "nice to have". I've never had a stock option I could actually exercise and show a profit. Bonuses aren't guaranteed. So I'll be interested in any extras, but they're unlikely to sway me much. There are, of course, some extras that fall into a different category altogether. Hiring bonuses or stock grants are more like money in the bank.
So that's my personal list; how does it stack up to yours? Many people I know put money and title first; some choose people/environment.
Regardless, I hope you'll join me on my safari through the jungle that is the Job Market; coming this next week is:
Quality is Free. Or Not.
No Problems Here, Officer...
A Rose By Any Other Name
Blue Light Special in Aisle 9...
I Smell Brimstone
Save the Baby!
Stenography for Fun and Profit
Job Opportunities in Asswipe, North Dakota
Hope you enjoy it; feel free to add your own experiences!!
I played around a bit with iteration using JUnit today. I have some generic tests that behave differently depending on the values fed to them. I don’t want to have iteration code living alongside each test (maintenance nightmare), so I wanted to use JUnit’s @Parameters tag to pull in my test data via a Preferences file and do the iteration for me.
It took me longer than I expected to get right, mostly because static methods annoy me and trip me up a bit. (Your parameters method must be static in order for it to work).
However, get it working I did. On the off chance that it saves someone else some time, here’s how it works:
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Properties;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
@RunWith(Parameterized.class)
public class paramTest
{
final static String dataFile = "/dataDriver.txt";
private String words;
public paramTest(String words)
{
this.words = words;
}
@Test
public void verifyThing() throws Exception
{
System.out.println("key: " + words);
}
@Parameters
public static Collection data()
{
Collection returnList = new ArrayList();
InputStream dataStream = paramTest.class.getResourceAsStream(paramTest.dataFile);
Properties dataProperties = new Properties();
try{
dataProperties.load(dataStream);
} catch(Exception e)
{ System.out.println(e);}
Enumeration e = dataProperties.propertyNames();
while (e.hasMoreElements())
{
returnList.add(new Object[]{dataProperties.getProperty((String) e.nextElement())});
}
return returnList;
}
}
Interestingly enough, the data comes back in the reverse order that it exists in the preferences file. Something to keep in mind if you want your tests to run in a certain order.
http://jboss-soa-p.blogspot.com/2010/07/jbossesb-drools-integration-in-jboss.html
The product development world has long been divided along ‘developer’ and ‘tester’ lines. Agile has show that the divide is not useful (in most cases), but that is secondary to the point of this post. Harry Petroski was on IT Conversations to promote his book The Essential Engineer and talked about another divide between scientists and engineers. The parallels are striking.
- Scientists seek knowledge and/or understanding – Testers?
- Engineers are looking to solve a problem — that is usually stated before hand – Developers?
- Science and engineering are inexplicably linked – see Agile
- One can drive the other – Feedback loops
- An underlying problem is that scientists have better status than engineering – compare the salaries between developers and testers recently?
- Engineering is more than just ‘applied science’ — things just aren’t that simple – testing is more than just ‘finding bugs’
- Maintenance will inevitably cost more than initial development
- time to design the feature
- time to implement the feature
- time test the feature
- test infrastructure extensions
- other infrastructure extensions (e.g., do we need to provision a hosted site for centralized client logging?)
- documentation modification or creation
- configuration analysis and best practices development (to answer the questions customers have)
- marketing, presentation, and other collateral updates