141
edits
No edit summary |
Ghendricks (talk | contribs) No edit summary |
||
| Line 4: | Line 4: | ||
==What's New!== | ==What's New!== | ||
{| border=1 cellpadding=4 | {| border=1 cellpadding=4 | ||
| 2007-05-18 || | |||
* TestCase: Added get_bugs method | |||
* TestCaseRun: Added get_bugs method | |||
* Product: Added get_milestones method | |||
|- | |||
| 2007-03-07 || | |||
* TestCaseRun: Added a new_values attribute, called <b>update_bugs</b>, to the update method | |||
* TestCase: The update method will not allow changes to a TestCase's author_id | |||
|- | |||
| 2007-01-09 || | |||
* TestCase: Added add_tag method | |||
* TestCase: Added remove_tag method | |||
* TestCase: Added get_tags method | |||
* TestPlan: Added add_tag method | |||
* TestPlan: Added remove_tag method | |||
* TestPlan: Added get_tags method | |||
* TestRun: Added add_tag method | |||
* TestRun: Added remove_tag method | |||
* TestRun: Added get_tags method | |||
|- | |||
| 2007-01-05 || | |||
* Documentation Only: Corrected the data type of the query parameter for all list methods to hashmap | |||
* TestCase: Modified create method to require a plan id number (plan_id) | |||
* TestCase: Added link_plan method | |||
* TestCase: Added unlink_plan method | |||
* TestPlan: Added get_components method | |||
|- | |||
| 2006-12-14 || | |||
* The <b>TestCaseRun.update</b> method now requires environment_id as a parameter | |||
|- | |||
| 2006-12-12 || | |||
===Welcome to Version 1.1=== | |||
* More consistent, more secure, more efficient, and faster! | |||
* API returns native ID numbers for all objects and attributes | |||
* Results are consistent across an object's methods calls | |||
* Object attributes match query parameters | |||
* Lookup functions available for converting from ID numbers to string names | |||
* Objects updated: TestPlan, TestCase, TestRun, and TestCaseRun | |||
* Consult the specific object documentation in this WIKI for more details | |||
* Added get_test_plan method to TestRun object | |||
* Added an Environment object | |||
|- | |||
| 2006-12-08 || | |||
* TestCase: Added setup and breadown to get/setText methods | |||
* TestCase: Added component add/remove/list methods | |||
* Component: New object! | |||
* Build: Added get, create, and updated methods | |||
* TestCaseRun: Notes are now appended during an update method call | |||
* TestPlan: Added get_builds method | |||
* TestRun: Added get_test_cases and get_test_case_runs methods | |||
|- | |||
| 2006-11-27 || | | 2006-11-27 || | ||
* Added [[Testopia:Documentation:XMLRPC:Apache |instructions]] for using Basic Authorization with an Apache server | * Added [[Testopia:Documentation:XMLRPC:Apache |instructions]] for using Basic Authorization with an Apache server | ||
| Line 28: | Line 79: | ||
|- | |- | ||
|} | |} | ||
==Project Description== | ==Project Description== | ||
| Line 155: | Line 203: | ||
|- | |- | ||
| Java || [http://ws.apache.org/xmlrpc Apache XML-RPC] || | | Java || [http://ws.apache.org/xmlrpc Apache XML-RPC] || | ||
|- | |||
| PHP || [http://phpxmlrpc.sourceforge.net/ XML-RPC for PHP] || | |||
|- | |- | ||
|} | |} | ||
| Line 168: | Line 218: | ||
use XMLRPC::Lite; # From the SOAP::Lite Module | use XMLRPC::Lite; # From the SOAP::Lite Module | ||
my $proxy = XMLRPC::Lite->proxy("YOUR_URL_TO_BUGZILLA_GOES_HERE"); | my $proxy = XMLRPC::Lite->proxy("YOUR_URL_TO_BUGZILLA_GOES_HERE"/tr_xmlrpc.cgi); | ||
# Result is a hash map | # Result is a hash map | ||
| Line 273: | Line 323: | ||
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); | XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); | ||
config.setServerURL(new URL("/* YOUR_URL_TO_BUGZILLA_GOES_HERE */")); | config.setServerURL(new URL("/* YOUR_URL_TO_BUGZILLA_GOES_HERE/tr_xmlrpc.cgi */")); | ||
config.setBasicUserName("userid"); | config.setBasicUserName("userid"); | ||
config.setBasicPassword("password"); | config.setBasicPassword("password"); | ||
| Line 293: | Line 343: | ||
} | } | ||
} | } | ||
==== PHP ==== | |||
include_once("xmlrpc.inc"); | |||
$client = new xmlrpc_client("/tr_xmlrpc.cgi", "apibugzillastage.provo.novell.com", 443, "https"); | |||
$client->setCredentials($username, $password); | |||
$client->setSSLVerifyPeer(TRUE); | |||
$client->setDebug(0); | |||
$call = new xmlrpcmsg('TestPlan.get', array(new xmlrpcval(1, "int"))); | |||
if (!($res = $client->send($call))) { | |||
print "Could not connect to HTTPS server."; | |||
} | |||
if ($res->faultCode() == 0) { | |||
$value = $res->value(); | |||
} | |||
else { | |||
print "XML-RPC Fault #" . $res->faultCode(); | |||
} | |||
==API Documentation== | ==API Documentation== | ||
| Line 301: | Line 374: | ||
* [[Testopia:Documentation:XMLRPC:Build |Build]] | * [[Testopia:Documentation:XMLRPC:Build |Build]] | ||
* [[Testopia:Documentation:XMLRPC:Product |Component]] | |||
* [[Testopia:Documentation:XMLRPC:Environment |Environment]] | |||
* [[Testopia:Documentation:XMLRPC:Product |Product]] | * [[Testopia:Documentation:XMLRPC:Product |Product]] | ||
* [[Testopia:Documentation:XMLRPC:Tag |Tag]] | |||
* [[Testopia:Documentation:XMLRPC:User |User]] | * [[Testopia:Documentation:XMLRPC:User |User]] | ||
* [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]] | * [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]] | ||
| Line 312: | Line 388: | ||
# Where can I find more coding examples? | # Where can I find more coding examples? | ||
#* [[Testopia:Documentation:XMLRPC: | #* [[Testopia:Documentation:XMLRPC:User |Here]]. | ||
# Where can I find the query examples again? | # Where can I find the query examples again? | ||
#* [[Testopia:Documentation:XMLRPC:Query_Examples |Here]]. | #* [[Testopia:Documentation:XMLRPC:Query_Examples |Here]]. | ||
| Line 319: | Line 395: | ||
# The example above doesn't compile for me because I'm too bleeding edge for my own good, what gives? | # The example above doesn't compile for me because I'm too bleeding edge for my own good, what gives? | ||
#* [[Testopia:Documentation:XMLRPC:Newer_Client_Example |A newer java sample client]] | #* [[Testopia:Documentation:XMLRPC:Newer_Client_Example |A newer java sample client]] | ||
<br>Back to the [[Testopia |Testopia Main Page]] | <br>Back to the [[Testopia |Testopia Main Page]] | ||
edits