Example usage:

Welcome to Testopia Lookup tool 1.0
Please Eneter your bugzilla username

username 

Please enter your bugzilla password

password

You may now enter a command query
To see a list of supported queries, please
read the lookupHelp.txt

//this is looking for a build called beta, and will return the buildId
build:beta
Query Result:
1112

//this is looking for an environment that belongs to the product Testopia
environmentByProduct:Testopia
Query Result:
Environment Name: SLES10SP1
Environment ID: 275

//this queries for components for a plan
component:planId

You can change the url it points to by changing it in the code