Thanks,
- Derek
-------- Original Message --------
Subject: Testopia submit bugs to a different Bugzilla instance ?
Date: Fri, 07 Nov 2008 17:52:08 +0000
From: Derek Rafter <derek....@sun.com>
To: Gregary Hendricks <greg...@gmail.com>
References: <48EF553A...@sun.com>
<cca3e0fe0810100821u579...@mail.gmail.com>
<48F31471...@ireland.sun.com>
<cca3e0fe0810130837v212...@mail.gmail.com>
<49119EF2...@sun.com>
Hi Gregary,
Is it possible to submit bugs from testopia to another instance of
bugzilla instead of the bugzilla that testopia is installed onto ?
Example, we have testopia running on a evaluation . We need to submit
bugs to another 'live' instance of Bugzilla because we are not allowed
to put testopia onto that instance of Bugzilla.
So, we want to run our own version of testopia and somehow submit bugs
to the other 'live' Bugzilla.
Thanks,
- Derek Rafter
Software Test/QA Engineer,
Sun Microsystems, Ireland
--
Derek Rafter,
Software Test Engineer, Ph +353-1-8199084
Desktop Applications Group,
Sun Microsystems Ireland,
East Point Business Park,
Dublin
Ireland
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Sun Proprietary/Confidential: Internal Use Only"
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"I don't like it, and I'm sorry I ever had anything to do with it"
- Erwin Schrodinger (about quantum mechanics)
I filed a bug about this here (along with first steps towards a possible
implementation):
https://bugzilla.mozilla.org/show_bug.cgi?id=442116
As the link to file a bug from within Testopia is a simple URL, it would be trivial to change the code to point to any Bugzilla instance you please. Unfortunatley, there is no built in mechanism for this.
the file to look at will be the testopia/js/caserun.js under CaseBugsGrid:
newbug = function(){
var bug_panel = new Ext.Panel({
id: 'new_bug_panel'
});
var caserun_id;
if (Ext.getCmp('caserun_grid') && Ext.getCmp('caserun_grid').getSelectionModel().getCount()){
caserun_id = Ext.getCmp('caserun_grid').getSelectionModel().getSelected().get('caserun_id');
}
var store = new Ext.data.Store({
url: 'tr_process_case.cgi',
baseParams: {action: 'case_to_bug', case_id: this.tcid, caserun_id: caserun_id },
reader: new Ext.data.XmlReader({
record: 'newbug',
id: 'case_id'
},[
{name: 'product', mapping: 'product'},
{name: 'version', mapping: 'version'},
{name: 'component', mapping: 'coponent'},
{name: 'comment', mapping: 'comment'},
{name: 'case_id', mapping: 'case_id'},
{name: 'assigned_to', mapping: 'assigned_to'},
{name: 'qa_contact', mapping: 'qa_contact'},
{name: 'short_desc', mapping: 'short_desc'}
])
});
store.load();
store.on('load',function(){
==> var url = 'enter_bug.cgi?'; <========== Change this line ======
for (var i=0; i<store.fields.keys.length; i++){
url = url + store.fields.keys[i] + '=' + escape(store.getAt(0).get(store.fields.keys[i])) + '&';
}
url = url + 'caserun_id=' + caserun_id;
window.open(url, 'New Bug');
});
};
Good luck, and let me know if you have any other questions.
Greg
Regards,
- Derek
No, they would have to be within the same database that Testopia is run from in order to show up in reports.
Greg
Thanks,
--
Derek Rafter,
Software Test Engineer,