User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C) Steps to reproduce: Import a XML. Actual results: Then happend this error: [Thu Jul 12 13:47:18 2012] [error] [client 127.0.0.1] [Thu Jul 12 13:47:18 2012] tr_importer.cgi: Can't locate object method "new" via package "Testopia::Importer" (perhaps you forgot to load "Testopia::Importer"?) at D:/bugzilla/bugzilla-4.2.1_ok/tr_importer.cgi line 103, <fh00001testplans-2012-07-12.xml> chunk 1., referer: http://localhost:22080/tr_show_product.cgi Expected results: It should import my new file of test cases. I review the code and saw this in the tr_importer.cgi, line 103: my $importer = new Testopia::Importer; I changed this for: my $importer = new Bugzilla::Extension::Testopia::Importer; and now it seems to work... but I prefer that you review this. thanks.
Yes, your fix is correct.
Committing to: bzr+ssh://email@example.com@bzr.mozilla.org/bugzilla/extensions/testopia/trunk/ modified tr_importer.cgi Committed revision 663.