<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nparrish</id>
	<title>MozillaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nparrish"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/Special:Contributions/Nparrish"/>
	<updated>2026-11-27T03:19:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:viewall&amp;diff=79133</id>
		<title>Testopia:Documentation:XMLRPC:viewall</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:viewall&amp;diff=79133"/>
		<updated>2008-01-04T23:30:22Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: New page: Unless you explicitly tell TestCase.list (and other .list methods) how many results to return, it will default to 25.  You can control the size with the page_size and page parameters (need...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Unless you explicitly tell TestCase.list (and other .list methods) how many results to return, it will default to 25.  You can control the size with the page_size and page parameters (need example), or by setting the viewall parameter to get all records:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
query = java.util.Hashtable();&lt;br /&gt;
query.put(&amp;quot;plan_id&amp;quot;, 28);&lt;br /&gt;
query.put(&amp;quot;planidtype&amp;quot;, &amp;quot;equals&amp;quot;);&lt;br /&gt;
query.put(&amp;quot;case_status_id&amp;quot;, 2);&lt;br /&gt;
query.put(&amp;quot;isautomated&amp;quot;, 1);&lt;br /&gt;
query.put(&amp;quot;viewall&amp;quot;, 1);&lt;br /&gt;
params = java.util.Vector()&lt;br /&gt;
params.add(query)&lt;br /&gt;
result = client.execute(&amp;quot;TestCase.list&amp;quot;, params)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=79132</id>
		<title>Testopia:Documentation:XMLRPC</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=79132"/>
		<updated>2008-01-04T23:28:05Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOEDITSECTION__&lt;br /&gt;
Back to the [[Testopia |Testopia Main Page]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s New!==&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| 2007-05-18 || &lt;br /&gt;
* TestCase: Added get_bugs method&lt;br /&gt;
* TestCaseRun: Added get_bugs method&lt;br /&gt;
* Product: Added get_milestones method&lt;br /&gt;
|-&lt;br /&gt;
| 2007-03-07 || &lt;br /&gt;
* TestCaseRun: Added a new_values attribute, called &amp;lt;b&amp;gt;update_bugs&amp;lt;/b&amp;gt;, to the update method&lt;br /&gt;
* TestCase:  The update method will not allow changes to a TestCase&#039;s author_id&lt;br /&gt;
|-&lt;br /&gt;
| 2007-01-09 || &lt;br /&gt;
* TestCase: Added add_tag method&lt;br /&gt;
* TestCase: Added remove_tag method&lt;br /&gt;
* TestCase: Added get_tags method&lt;br /&gt;
* TestPlan: Added add_tag method&lt;br /&gt;
* TestPlan: Added remove_tag method&lt;br /&gt;
* TestPlan: Added get_tags method&lt;br /&gt;
* TestRun:  Added add_tag method&lt;br /&gt;
* TestRun:  Added remove_tag method&lt;br /&gt;
* TestRun:  Added get_tags method&lt;br /&gt;
|-&lt;br /&gt;
| 2007-01-05 || &lt;br /&gt;
* Documentation Only: Corrected the data type of the query parameter for all list methods to hashmap&lt;br /&gt;
* TestCase: Modified create method to require a plan id number (plan_id)&lt;br /&gt;
* TestCase: Added link_plan method&lt;br /&gt;
* TestCase: Added unlink_plan method&lt;br /&gt;
* TestPlan: Added get_components method&lt;br /&gt;
|-&lt;br /&gt;
| 2006-12-14 || &lt;br /&gt;
* The &amp;lt;b&amp;gt;TestCaseRun.update&amp;lt;/b&amp;gt; method now requires environment_id as a parameter&lt;br /&gt;
|-&lt;br /&gt;
| 2006-12-12 || &lt;br /&gt;
===Welcome to Version 1.1===&lt;br /&gt;
* More consistent, more secure, more efficient, and faster!&lt;br /&gt;
* API returns native ID numbers for all objects and attributes&lt;br /&gt;
* Results are consistent across an object&#039;s methods calls&lt;br /&gt;
* Object attributes match query parameters&lt;br /&gt;
* Lookup functions available for converting from ID numbers to string names&lt;br /&gt;
* Objects updated: TestPlan, TestCase, TestRun, and TestCaseRun&lt;br /&gt;
* Consult the specific object documentation in this WIKI for more details&lt;br /&gt;
* Added get_test_plan method to TestRun object&lt;br /&gt;
* Added an Environment object&lt;br /&gt;
|-&lt;br /&gt;
| 2006-12-08 ||&lt;br /&gt;
* TestCase: Added setup and breadown to get/setText methods&lt;br /&gt;
* TestCase: Added component add/remove/list methods&lt;br /&gt;
* Component: New object!&lt;br /&gt;
* Build: Added get, create, and updated methods&lt;br /&gt;
* TestCaseRun:  Notes are now appended during an update method call&lt;br /&gt;
* TestPlan: Added get_builds method&lt;br /&gt;
* TestRun: Added get_test_cases and get_test_case_runs methods&lt;br /&gt;
|-&lt;br /&gt;
| 2006-11-27 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:Apache |instructions]] for using Basic Authorization with an Apache server&lt;br /&gt;
* New [[Testopia:Documentation:XMLRPC:Query_Examples |query examples]] that do not use binary charts&lt;br /&gt;
* New API [[Testopia:Documentation:XMLRPC#Objects |objects]]: &#039;&#039;&#039;Build&#039;&#039;&#039;, &#039;&#039;&#039;Product&#039;&#039;&#039;, and &#039;&#039;&#039;User&#039;&#039;&#039;&lt;br /&gt;
* New methods for [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]] object&lt;br /&gt;
* New parameters added for managing query result sizes.  &amp;lt;b&amp;gt;pagesize&amp;lt;/b&amp;gt; is used to set the number of records returned.  The default is 24.  &amp;lt;b&amp;gt;page&amp;lt;/b&amp;gt; is used to return a page of results based on pagesize.   The default value for page is zero.  For example, setting page equal to zero will return the first 24 records.  Setting page equal to 1 will return the second set of 24 records.&lt;br /&gt;
&lt;br /&gt;
The new parameters are added to any &amp;quot;list&amp;quot; method:&lt;br /&gt;
&lt;br /&gt;
 $proxy-&amp;gt;call(&#039;TestPlan.list&#039;, {pagesize=&amp;gt;10, page=&amp;gt;0});&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-18 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl (SOAP::Lite) on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-04 || &lt;br /&gt;
* Added an example of an error response&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-21 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;SSL (https)&amp;lt;/b&amp;gt; access to the Java client (not necessary for Perl client)&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-20 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;Basic Authorization&amp;lt;/b&amp;gt; to the sample clients&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Project Description==&lt;br /&gt;
Provide a means for the programmatic creation, modification, and reporting of inherent Bugzilla Testopia objects, such as test plans, test cases, and test runs.  Scope will later expand to cover actual bugs and products.&lt;br /&gt;
&lt;br /&gt;
The API is accessed through XML Remote Procedure Calls (XML-RPC).  Bascially, a client creates an XML document and sends it to the Bugzilla server via an HTTP post.&lt;br /&gt;
&lt;br /&gt;
An example of an XML request:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodCall&amp;gt;&lt;br /&gt;
       &amp;lt;methodName&amp;gt;TestPlan.get&amp;lt;/methodName&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodCall&amp;gt; &lt;br /&gt;
&lt;br /&gt;
An example of an XML response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;struct&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;author&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;editor&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;A Test Plan&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;default_product_version&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;other&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;plan_id&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;product&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;TestProduct&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;creation_date&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;2006-08-03 13:20:53&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;type&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;Unit&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;isactive&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;/struct&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example of an error response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;fault&amp;gt;&lt;br /&gt;
          &amp;lt;value&amp;gt;&lt;br /&gt;
             &amp;lt;struct&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultString&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;string&amp;gt;Too many parameters.&amp;lt;/string&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultCode&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;int&amp;gt;4&amp;lt;/int&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
             &amp;lt;/struct&amp;gt;&lt;br /&gt;
          &amp;lt;/value&amp;gt;&lt;br /&gt;
       &amp;lt;/fault&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
&lt;br /&gt;
The examples for this project use the following libraries:&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Programming Language&#039;&#039;&#039; || &#039;&#039;&#039;Software&#039;&#039;&#039; || &#039;&#039;&#039;Special Notes&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Perl || [http://www.soaplite.com SOAP::Lite] || [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| Java || [http://ws.apache.org/xmlrpc Apache XML-RPC] ||&lt;br /&gt;
|-&lt;br /&gt;
| PHP || [http://phpxmlrpc.sourceforge.net/ XML-RPC for PHP] ||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can, of course, code the XML document via strings or the Document Object Model (DOM) and then maually do a HTTP post, but why?&lt;br /&gt;
&lt;br /&gt;
===Sample Clients===&lt;br /&gt;
&lt;br /&gt;
====Perl====&lt;br /&gt;
&lt;br /&gt;
 use SOAP::Transport::HTTP;  # Need for Basic Authorization subroutine&lt;br /&gt;
&lt;br /&gt;
 use XMLRPC::Lite;           # From the SOAP::Lite Module&lt;br /&gt;
  &lt;br /&gt;
 my $proxy = XMLRPC::Lite-&amp;gt;proxy(&amp;quot;YOUR_URL_TO_BUGZILLA_GOES_HERE&amp;quot;/tr_xmlrpc.cgi);&lt;br /&gt;
 &lt;br /&gt;
 # Result is a hash map&lt;br /&gt;
 my $soapresult = $proxy-&amp;gt;call(&#039;TestPlan.get&#039;, 1);&lt;br /&gt;
 &lt;br /&gt;
 # Error checking&lt;br /&gt;
 die_on_fault($soapresult);&lt;br /&gt;
 &lt;br /&gt;
 # Print each key/value pair &lt;br /&gt;
 foreach (keys(%$soapresult)) &lt;br /&gt;
 {&lt;br /&gt;
 	print &amp;quot;$_: $$soapresult{$_}\n&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # Add the following subroutine to submit a userid/password for basic authorization&lt;br /&gt;
 sub SOAP::Transport::HTTP::Client::get_basic_credentials &lt;br /&gt;
 { &lt;br /&gt;
 	return &#039;userid&#039; =&amp;gt; &#039;password&#039;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 sub die_on_fault &lt;br /&gt;
 {&lt;br /&gt;
 	my $soapresult = shift;&lt;br /&gt;
 &lt;br /&gt;
 	if ($soapresult-&amp;gt;fault) &lt;br /&gt;
 	{&lt;br /&gt;
 		die $soapresult-&amp;gt;faultcode . &#039; &#039; . $soapresult-&amp;gt;faultstring;&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
====Java====&lt;br /&gt;
&lt;br /&gt;
 import org.apache.xmlrpc.XmlRpcException;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClient;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;&lt;br /&gt;
 &lt;br /&gt;
 import java.net.URL;&lt;br /&gt;
 import java.util.HashMap;&lt;br /&gt;
 import java.util.ArrayList;&lt;br /&gt;
 &lt;br /&gt;
 // Needed for SSL&lt;br /&gt;
 import java.security.cert.X509Certificate;&lt;br /&gt;
 import javax.net.ssl.HostnameVerifier;&lt;br /&gt;
 import javax.net.ssl.HttpsURLConnection;&lt;br /&gt;
 import javax.net.ssl.SSLContext;&lt;br /&gt;
 import javax.net.ssl.SSLSession;&lt;br /&gt;
 import javax.net.ssl.TrustManager;&lt;br /&gt;
 import javax.net.ssl.X509TrustManager;&lt;br /&gt;
 &lt;br /&gt;
 public class RPCClient&lt;br /&gt;
 {&lt;br /&gt;
  	// &lt;br /&gt;
  	// Trust All Certificates - Needed for SSL Client&lt;br /&gt;
  	// &lt;br /&gt;
 	private static void TrustAllCerts()&lt;br /&gt;
 		throws java.security.NoSuchAlgorithmException,&lt;br /&gt;
 		       java.security.KeyManagementException  &lt;br /&gt;
 	{&lt;br /&gt;
 		// Create a trust manager that does not validate certificate chains&lt;br /&gt;
 &lt;br /&gt;
 		TrustManager[] trustAllCerts = new TrustManager[] &lt;br /&gt;
 	    {&lt;br /&gt;
 	        new X509TrustManager() &lt;br /&gt;
 	        {&lt;br /&gt;
 	            public X509Certificate[] getAcceptedIssuers() &lt;br /&gt;
 	            {&lt;br /&gt;
 	                return null;&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkClientTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkServerTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 	 &lt;br /&gt;
 	    // Install the all-trusting trust manager&lt;br /&gt;
 	    SSLContext sc = SSLContext.getInstance(&amp;quot;SSL&amp;quot;);&lt;br /&gt;
 	    &lt;br /&gt;
 	    // Create empty HostnameVerifier&lt;br /&gt;
 	    HostnameVerifier hv = new HostnameVerifier() &lt;br /&gt;
 	    {&lt;br /&gt;
 	    	public boolean verify(String arg0, SSLSession arg1) &lt;br /&gt;
 	    	{&lt;br /&gt;
 	    		return true;&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 &lt;br /&gt;
 	    sc.init(null, trustAllCerts, new java.security.SecureRandom());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultHostnameVerifier(hv);&lt;br /&gt;
 	}&lt;br /&gt;
  &lt;br /&gt;
 	public static void main(String[] args)&lt;br /&gt;
 	{&lt;br /&gt;
  		try&lt;br /&gt;
 		{&lt;br /&gt;
 		    TrustAllCerts();&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();&lt;br /&gt;
 		    config.setServerURL(new URL(&amp;quot;/* YOUR_URL_TO_BUGZILLA_GOES_HERE/tr_xmlrpc.cgi */&amp;quot;));&lt;br /&gt;
 		    config.setBasicUserName(&amp;quot;userid&amp;quot;);&lt;br /&gt;
 		    config.setBasicPassword(&amp;quot;password&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClient client = new XmlRpcClient();&lt;br /&gt;
 		    client.setConfig(config);&lt;br /&gt;
 &lt;br /&gt;
 		    ArrayList&amp;lt;Object&amp;gt; params = new ArrayList&amp;lt;Object&amp;gt;();&lt;br /&gt;
 		    params.add(1);&lt;br /&gt;
 &lt;br /&gt;
 		    HashMap result = (HashMap) client.execute(&amp;quot;TestPlan.get&amp;quot;, params);&lt;br /&gt;
 &lt;br /&gt;
 		    System.out.println(result);&lt;br /&gt;
 		}&lt;br /&gt;
  		catch (Exception e)&lt;br /&gt;
 		{&lt;br /&gt;
 			e.printStackTrace();&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==== PHP ====&lt;br /&gt;
&lt;br /&gt;
 include_once(&amp;quot;xmlrpc.inc&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 $client = new xmlrpc_client(&amp;quot;/tr_xmlrpc.cgi&amp;quot;, &amp;quot;apibugzillastage.provo.novell.com&amp;quot;, 443, &amp;quot;https&amp;quot;);&lt;br /&gt;
 $client-&amp;gt;setCredentials($username, $password);&lt;br /&gt;
 $client-&amp;gt;setSSLVerifyPeer(TRUE);&lt;br /&gt;
 $client-&amp;gt;setDebug(0);&lt;br /&gt;
 &lt;br /&gt;
 $call = new xmlrpcmsg(&#039;TestPlan.get&#039;, array(new xmlrpcval(1, &amp;quot;int&amp;quot;)));&lt;br /&gt;
 &lt;br /&gt;
 if (!($res = $client-&amp;gt;send($call))) {&lt;br /&gt;
        print &amp;quot;Could not connect to HTTPS server.&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 if ($res-&amp;gt;faultCode() == 0) {&lt;br /&gt;
        $value = $res-&amp;gt;value();&lt;br /&gt;
 }&lt;br /&gt;
 else {&lt;br /&gt;
        print &amp;quot;XML-RPC Fault #&amp;quot; . $res-&amp;gt;faultCode();&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==API Documentation==&lt;br /&gt;
&lt;br /&gt;
All XML-RPC requests are sent to a single Bugzilla CGI called &amp;lt;i&amp;gt;tr_xmlrpc.cgi&amp;lt;/i&amp;gt;.  Its location will be based on your specific Bugzilla installation.  Normally the CGI will be found at the root URL of Bugzilla, for example, http://bugzilla.company.com/tr_xmlrpc.cgi&lt;br /&gt;
&lt;br /&gt;
===Objects===&lt;br /&gt;
&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Build |Build]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Product |Component]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Environment |Environment]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Product |Product]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Tag |Tag]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:User |User]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCase |TestCase]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestRun |TestRun]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCaseRun |TestCaseRun]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
# Where can I find more coding examples?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:User |Here]].&lt;br /&gt;
# Where can I find the query examples again?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Query_Examples |Here]].&lt;br /&gt;
# Where can I find how to setup Apache for use with the API and Basic Authentication?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Apache |Here]].&lt;br /&gt;
# The example above doesn&#039;t compile for me because I&#039;m too bleeding edge for my own good, what gives?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Newer_Client_Example |A newer java sample client]]&lt;br /&gt;
# When I try to pass any sort of complicated parameters through XmlRpcClient.execute(), I get an error like &amp;quot;XmlRpcClientException: Failure writing request&amp;quot; and/or &amp;quot;XmlRpcException: Unsupported Java type: class java.util.TreeMap&amp;quot;.  &lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Java_XMLRPC_Struct_Passing | Passing data between Java and XmlRpc]]&lt;br /&gt;
# I&#039;m only getting back 25 cases when I do TestCase.list, even though I should be getting many more.&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:viewall |Setting viewall parameter]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Back to the [[Testopia |Testopia Main Page]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:Java_XMLRPC_Struct_Passing&amp;diff=72132</id>
		<title>Testopia:Documentation:XMLRPC:Java XMLRPC Struct Passing</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:Java_XMLRPC_Struct_Passing&amp;diff=72132"/>
		<updated>2007-10-26T17:46:41Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: New page: xmlrpc2 doesn&amp;#039;t want to mess about with any of the new-fangled Java Collections stuff (i.e. HashMap, TreeMap), but rather sticks with the older Hashtable and Vector classes.  If you try to...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;xmlrpc2 doesn&#039;t want to mess about with any of the new-fangled Java Collections stuff (i.e. HashMap, TreeMap), but rather sticks with the older Hashtable and Vector classes.  If you try to pass in newer collection classes to XmlRpcClient.execute(), you will get an XmlRpcException about failure to write request and/or unsupported class type.  &lt;br /&gt;
here&#039;s a simple code snippet showing how to pass in mapped values, and then extract them:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Hashtable&amp;lt;String,Object&amp;gt; query = new Hashtable&amp;lt;String,Object&amp;gt;();&lt;br /&gt;
Vector&amp;lt;Object&amp;gt; params = new Vector&amp;lt;Object&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
query.put(&amp;quot;plan_id&amp;quot;, plan_id);&lt;br /&gt;
query.put(&amp;quot;planidtype&amp;quot;, &amp;quot;equals&amp;quot;);&lt;br /&gt;
query.put(&amp;quot;case_status_id&amp;quot;, case_status);&lt;br /&gt;
query.put(&amp;quot;isautomated&amp;quot;, is_automated);&lt;br /&gt;
&lt;br /&gt;
params.add(query);&lt;br /&gt;
		&lt;br /&gt;
Vector&amp;lt;Hashtable&amp;lt;String,Object&amp;gt;&amp;gt; xmlrpc_result;&lt;br /&gt;
xmlrpc_result = (Vector)(client.execute(&amp;quot;TestCase.list&amp;quot;, params));&lt;br /&gt;
&lt;br /&gt;
for (Hashtable&amp;lt;String,Object&amp;gt; testcase : xmlrpc_result)&lt;br /&gt;
{&lt;br /&gt;
    System.out.println(&amp;quot;case_id&amp;quot;, (Integer)testcase.get(&amp;quot;case_id&amp;quot;));&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generally speaking, it seems to be the case that you are always passing in a Vector, which either contains Integers or a Hashmap of key/value pairs.  And the response from the server seems to follow the same pattern.&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=72130</id>
		<title>Testopia:Documentation:XMLRPC</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=72130"/>
		<updated>2007-10-26T17:34:38Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOEDITSECTION__&lt;br /&gt;
Back to the [[Testopia |Testopia Main Page]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s New!==&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| 2007-05-18 || &lt;br /&gt;
* TestCase: Added get_bugs method&lt;br /&gt;
* TestCaseRun: Added get_bugs method&lt;br /&gt;
* Product: Added get_milestones method&lt;br /&gt;
|-&lt;br /&gt;
| 2007-03-07 || &lt;br /&gt;
* TestCaseRun: Added a new_values attribute, called &amp;lt;b&amp;gt;update_bugs&amp;lt;/b&amp;gt;, to the update method&lt;br /&gt;
* TestCase:  The update method will not allow changes to a TestCase&#039;s author_id&lt;br /&gt;
|-&lt;br /&gt;
| 2007-01-09 || &lt;br /&gt;
* TestCase: Added add_tag method&lt;br /&gt;
* TestCase: Added remove_tag method&lt;br /&gt;
* TestCase: Added get_tags method&lt;br /&gt;
* TestPlan: Added add_tag method&lt;br /&gt;
* TestPlan: Added remove_tag method&lt;br /&gt;
* TestPlan: Added get_tags method&lt;br /&gt;
* TestRun:  Added add_tag method&lt;br /&gt;
* TestRun:  Added remove_tag method&lt;br /&gt;
* TestRun:  Added get_tags method&lt;br /&gt;
|-&lt;br /&gt;
| 2007-01-05 || &lt;br /&gt;
* Documentation Only: Corrected the data type of the query parameter for all list methods to hashmap&lt;br /&gt;
* TestCase: Modified create method to require a plan id number (plan_id)&lt;br /&gt;
* TestCase: Added link_plan method&lt;br /&gt;
* TestCase: Added unlink_plan method&lt;br /&gt;
* TestPlan: Added get_components method&lt;br /&gt;
|-&lt;br /&gt;
| 2006-12-14 || &lt;br /&gt;
* The &amp;lt;b&amp;gt;TestCaseRun.update&amp;lt;/b&amp;gt; method now requires environment_id as a parameter&lt;br /&gt;
|-&lt;br /&gt;
| 2006-12-12 || &lt;br /&gt;
===Welcome to Version 1.1===&lt;br /&gt;
* More consistent, more secure, more efficient, and faster!&lt;br /&gt;
* API returns native ID numbers for all objects and attributes&lt;br /&gt;
* Results are consistent across an object&#039;s methods calls&lt;br /&gt;
* Object attributes match query parameters&lt;br /&gt;
* Lookup functions available for converting from ID numbers to string names&lt;br /&gt;
* Objects updated: TestPlan, TestCase, TestRun, and TestCaseRun&lt;br /&gt;
* Consult the specific object documentation in this WIKI for more details&lt;br /&gt;
* Added get_test_plan method to TestRun object&lt;br /&gt;
* Added an Environment object&lt;br /&gt;
|-&lt;br /&gt;
| 2006-12-08 ||&lt;br /&gt;
* TestCase: Added setup and breadown to get/setText methods&lt;br /&gt;
* TestCase: Added component add/remove/list methods&lt;br /&gt;
* Component: New object!&lt;br /&gt;
* Build: Added get, create, and updated methods&lt;br /&gt;
* TestCaseRun:  Notes are now appended during an update method call&lt;br /&gt;
* TestPlan: Added get_builds method&lt;br /&gt;
* TestRun: Added get_test_cases and get_test_case_runs methods&lt;br /&gt;
|-&lt;br /&gt;
| 2006-11-27 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:Apache |instructions]] for using Basic Authorization with an Apache server&lt;br /&gt;
* New [[Testopia:Documentation:XMLRPC:Query_Examples |query examples]] that do not use binary charts&lt;br /&gt;
* New API [[Testopia:Documentation:XMLRPC#Objects |objects]]: &#039;&#039;&#039;Build&#039;&#039;&#039;, &#039;&#039;&#039;Product&#039;&#039;&#039;, and &#039;&#039;&#039;User&#039;&#039;&#039;&lt;br /&gt;
* New methods for [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]] object&lt;br /&gt;
* New parameters added for managing query result sizes.  &amp;lt;b&amp;gt;pagesize&amp;lt;/b&amp;gt; is used to set the number of records returned.  The default is 24.  &amp;lt;b&amp;gt;page&amp;lt;/b&amp;gt; is used to return a page of results based on pagesize.   The default value for page is zero.  For example, setting page equal to zero will return the first 24 records.  Setting page equal to 1 will return the second set of 24 records.&lt;br /&gt;
&lt;br /&gt;
The new parameters are added to any &amp;quot;list&amp;quot; method:&lt;br /&gt;
&lt;br /&gt;
 $proxy-&amp;gt;call(&#039;TestPlan.list&#039;, {pagesize=&amp;gt;10, page=&amp;gt;0});&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-18 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl (SOAP::Lite) on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-04 || &lt;br /&gt;
* Added an example of an error response&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-21 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;SSL (https)&amp;lt;/b&amp;gt; access to the Java client (not necessary for Perl client)&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-20 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;Basic Authorization&amp;lt;/b&amp;gt; to the sample clients&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Project Description==&lt;br /&gt;
Provide a means for the programmatic creation, modification, and reporting of inherent Bugzilla Testopia objects, such as test plans, test cases, and test runs.  Scope will later expand to cover actual bugs and products.&lt;br /&gt;
&lt;br /&gt;
The API is accessed through XML Remote Procedure Calls (XML-RPC).  Bascially, a client creates an XML document and sends it to the Bugzilla server via an HTTP post.&lt;br /&gt;
&lt;br /&gt;
An example of an XML request:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodCall&amp;gt;&lt;br /&gt;
       &amp;lt;methodName&amp;gt;TestPlan.get&amp;lt;/methodName&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodCall&amp;gt; &lt;br /&gt;
&lt;br /&gt;
An example of an XML response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;struct&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;author&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;editor&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;A Test Plan&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;default_product_version&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;other&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;plan_id&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;product&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;TestProduct&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;creation_date&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;2006-08-03 13:20:53&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;type&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;Unit&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;isactive&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;/struct&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example of an error response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;fault&amp;gt;&lt;br /&gt;
          &amp;lt;value&amp;gt;&lt;br /&gt;
             &amp;lt;struct&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultString&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;string&amp;gt;Too many parameters.&amp;lt;/string&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultCode&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;int&amp;gt;4&amp;lt;/int&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
             &amp;lt;/struct&amp;gt;&lt;br /&gt;
          &amp;lt;/value&amp;gt;&lt;br /&gt;
       &amp;lt;/fault&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
&lt;br /&gt;
The examples for this project use the following libraries:&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Programming Language&#039;&#039;&#039; || &#039;&#039;&#039;Software&#039;&#039;&#039; || &#039;&#039;&#039;Special Notes&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Perl || [http://www.soaplite.com SOAP::Lite] || [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| Java || [http://ws.apache.org/xmlrpc Apache XML-RPC] ||&lt;br /&gt;
|-&lt;br /&gt;
| PHP || [http://phpxmlrpc.sourceforge.net/ XML-RPC for PHP] ||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can, of course, code the XML document via strings or the Document Object Model (DOM) and then maually do a HTTP post, but why?&lt;br /&gt;
&lt;br /&gt;
===Sample Clients===&lt;br /&gt;
&lt;br /&gt;
====Perl====&lt;br /&gt;
&lt;br /&gt;
 use SOAP::Transport::HTTP;  # Need for Basic Authorization subroutine&lt;br /&gt;
&lt;br /&gt;
 use XMLRPC::Lite;           # From the SOAP::Lite Module&lt;br /&gt;
  &lt;br /&gt;
 my $proxy = XMLRPC::Lite-&amp;gt;proxy(&amp;quot;YOUR_URL_TO_BUGZILLA_GOES_HERE&amp;quot;/tr_xmlrpc.cgi);&lt;br /&gt;
 &lt;br /&gt;
 # Result is a hash map&lt;br /&gt;
 my $soapresult = $proxy-&amp;gt;call(&#039;TestPlan.get&#039;, 1);&lt;br /&gt;
 &lt;br /&gt;
 # Error checking&lt;br /&gt;
 die_on_fault($soapresult);&lt;br /&gt;
 &lt;br /&gt;
 # Print each key/value pair &lt;br /&gt;
 foreach (keys(%$soapresult)) &lt;br /&gt;
 {&lt;br /&gt;
 	print &amp;quot;$_: $$soapresult{$_}\n&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # Add the following subroutine to submit a userid/password for basic authorization&lt;br /&gt;
 sub SOAP::Transport::HTTP::Client::get_basic_credentials &lt;br /&gt;
 { &lt;br /&gt;
 	return &#039;userid&#039; =&amp;gt; &#039;password&#039;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 sub die_on_fault &lt;br /&gt;
 {&lt;br /&gt;
 	my $soapresult = shift;&lt;br /&gt;
 &lt;br /&gt;
 	if ($soapresult-&amp;gt;fault) &lt;br /&gt;
 	{&lt;br /&gt;
 		die $soapresult-&amp;gt;faultcode . &#039; &#039; . $soapresult-&amp;gt;faultstring;&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
====Java====&lt;br /&gt;
&lt;br /&gt;
 import org.apache.xmlrpc.XmlRpcException;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClient;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;&lt;br /&gt;
 &lt;br /&gt;
 import java.net.URL;&lt;br /&gt;
 import java.util.HashMap;&lt;br /&gt;
 import java.util.ArrayList;&lt;br /&gt;
 &lt;br /&gt;
 // Needed for SSL&lt;br /&gt;
 import java.security.cert.X509Certificate;&lt;br /&gt;
 import javax.net.ssl.HostnameVerifier;&lt;br /&gt;
 import javax.net.ssl.HttpsURLConnection;&lt;br /&gt;
 import javax.net.ssl.SSLContext;&lt;br /&gt;
 import javax.net.ssl.SSLSession;&lt;br /&gt;
 import javax.net.ssl.TrustManager;&lt;br /&gt;
 import javax.net.ssl.X509TrustManager;&lt;br /&gt;
 &lt;br /&gt;
 public class RPCClient&lt;br /&gt;
 {&lt;br /&gt;
  	// &lt;br /&gt;
  	// Trust All Certificates - Needed for SSL Client&lt;br /&gt;
  	// &lt;br /&gt;
 	private static void TrustAllCerts()&lt;br /&gt;
 		throws java.security.NoSuchAlgorithmException,&lt;br /&gt;
 		       java.security.KeyManagementException  &lt;br /&gt;
 	{&lt;br /&gt;
 		// Create a trust manager that does not validate certificate chains&lt;br /&gt;
 &lt;br /&gt;
 		TrustManager[] trustAllCerts = new TrustManager[] &lt;br /&gt;
 	    {&lt;br /&gt;
 	        new X509TrustManager() &lt;br /&gt;
 	        {&lt;br /&gt;
 	            public X509Certificate[] getAcceptedIssuers() &lt;br /&gt;
 	            {&lt;br /&gt;
 	                return null;&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkClientTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkServerTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 	 &lt;br /&gt;
 	    // Install the all-trusting trust manager&lt;br /&gt;
 	    SSLContext sc = SSLContext.getInstance(&amp;quot;SSL&amp;quot;);&lt;br /&gt;
 	    &lt;br /&gt;
 	    // Create empty HostnameVerifier&lt;br /&gt;
 	    HostnameVerifier hv = new HostnameVerifier() &lt;br /&gt;
 	    {&lt;br /&gt;
 	    	public boolean verify(String arg0, SSLSession arg1) &lt;br /&gt;
 	    	{&lt;br /&gt;
 	    		return true;&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 &lt;br /&gt;
 	    sc.init(null, trustAllCerts, new java.security.SecureRandom());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultHostnameVerifier(hv);&lt;br /&gt;
 	}&lt;br /&gt;
  &lt;br /&gt;
 	public static void main(String[] args)&lt;br /&gt;
 	{&lt;br /&gt;
  		try&lt;br /&gt;
 		{&lt;br /&gt;
 		    TrustAllCerts();&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();&lt;br /&gt;
 		    config.setServerURL(new URL(&amp;quot;/* YOUR_URL_TO_BUGZILLA_GOES_HERE/tr_xmlrpc.cgi */&amp;quot;));&lt;br /&gt;
 		    config.setBasicUserName(&amp;quot;userid&amp;quot;);&lt;br /&gt;
 		    config.setBasicPassword(&amp;quot;password&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClient client = new XmlRpcClient();&lt;br /&gt;
 		    client.setConfig(config);&lt;br /&gt;
 &lt;br /&gt;
 		    ArrayList&amp;lt;Object&amp;gt; params = new ArrayList&amp;lt;Object&amp;gt;();&lt;br /&gt;
 		    params.add(1);&lt;br /&gt;
 &lt;br /&gt;
 		    HashMap result = (HashMap) client.execute(&amp;quot;TestPlan.get&amp;quot;, params);&lt;br /&gt;
 &lt;br /&gt;
 		    System.out.println(result);&lt;br /&gt;
 		}&lt;br /&gt;
  		catch (Exception e)&lt;br /&gt;
 		{&lt;br /&gt;
 			e.printStackTrace();&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==== PHP ====&lt;br /&gt;
&lt;br /&gt;
 include_once(&amp;quot;xmlrpc.inc&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 $client = new xmlrpc_client(&amp;quot;/tr_xmlrpc.cgi&amp;quot;, &amp;quot;apibugzillastage.provo.novell.com&amp;quot;, 443, &amp;quot;https&amp;quot;);&lt;br /&gt;
 $client-&amp;gt;setCredentials($username, $password);&lt;br /&gt;
 $client-&amp;gt;setSSLVerifyPeer(TRUE);&lt;br /&gt;
 $client-&amp;gt;setDebug(0);&lt;br /&gt;
 &lt;br /&gt;
 $call = new xmlrpcmsg(&#039;TestPlan.get&#039;, array(new xmlrpcval(1, &amp;quot;int&amp;quot;)));&lt;br /&gt;
 &lt;br /&gt;
 if (!($res = $client-&amp;gt;send($call))) {&lt;br /&gt;
        print &amp;quot;Could not connect to HTTPS server.&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 if ($res-&amp;gt;faultCode() == 0) {&lt;br /&gt;
        $value = $res-&amp;gt;value();&lt;br /&gt;
 }&lt;br /&gt;
 else {&lt;br /&gt;
        print &amp;quot;XML-RPC Fault #&amp;quot; . $res-&amp;gt;faultCode();&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==API Documentation==&lt;br /&gt;
&lt;br /&gt;
All XML-RPC requests are sent to a single Bugzilla CGI called &amp;lt;i&amp;gt;tr_xmlrpc.cgi&amp;lt;/i&amp;gt;.  Its location will be based on your specific Bugzilla installation.  Normally the CGI will be found at the root URL of Bugzilla, for example, http://bugzilla.company.com/tr_xmlrpc.cgi&lt;br /&gt;
&lt;br /&gt;
===Objects===&lt;br /&gt;
&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Build |Build]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Product |Component]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Environment |Environment]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Product |Product]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Tag |Tag]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:User |User]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCase |TestCase]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestRun |TestRun]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCaseRun |TestCaseRun]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
# Where can I find more coding examples?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:User |Here]].&lt;br /&gt;
# Where can I find the query examples again?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Query_Examples |Here]].&lt;br /&gt;
# Where can I find how to setup Apache for use with the API and Basic Authentication?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Apache |Here]].&lt;br /&gt;
# The example above doesn&#039;t compile for me because I&#039;m too bleeding edge for my own good, what gives?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Newer_Client_Example |A newer java sample client]]&lt;br /&gt;
# When I try to pass any sort of complicated parameters through XmlRpcClient.execute(), I get an error like &amp;quot;XmlRpcClientException: Failure writing request&amp;quot; and/or &amp;quot;XmlRpcException: Unsupported Java type: class java.util.TreeMap&amp;quot;.  &lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Java_XMLRPC_Struct_Passing | Passing data between Java and XmlRpc]]&lt;br /&gt;
&amp;lt;br&amp;gt;Back to the [[Testopia |Testopia Main Page]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:TestCaseRun&amp;diff=69476</id>
		<title>Testopia:Documentation:XMLRPC:TestCaseRun</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:TestCaseRun&amp;diff=69476"/>
		<updated>2007-09-25T21:33:01Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: fixed on-error results info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOEDITSECTION__&lt;br /&gt;
Back to [[Testopia:Documentation:XMLRPC |Testopia XML-RPC API]]&lt;br /&gt;
&lt;br /&gt;
==TestCaseRun==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
A test case run is a record in the test_case_runs table which joins test cases to test runs. Basically, for each test run a selection of &lt;br /&gt;
test cases is made to be included in that run. As a test run progresses, testers set statuses on each of the cases in the run.&lt;br /&gt;
&lt;br /&gt;
===Hiearchy===&lt;br /&gt;
Bugzilla::WebService::Testopia::TestCaseRun&lt;br /&gt;
&lt;br /&gt;
===Attributes===&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Attribute&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; || &#039;&#039;&#039;Create&#039;&#039;&#039; || &#039;&#039;&#039;Read&#039;&#039;&#039; || &#039;&#039;&#039;Update&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| assignee || integer || ID value || Required || X || X&lt;br /&gt;
|-&lt;br /&gt;
| build_id || integer || || Required || X || X&lt;br /&gt;
|-&lt;br /&gt;
| canview || integer ||  ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_id || integer ||  || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_run_id || integer ||   ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_run_status_id || integer ||  ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_text_version || integer || || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| close_date || string || Format: yyyy-mm-dd hh:mm:ss ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| environment_id || integer ||  || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| iscurrent || integer || || || X || &lt;br /&gt;
|-&lt;br /&gt;
| notes || string || || Optional || X || X&lt;br /&gt;
|-&lt;br /&gt;
| run_id || integer ||  || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| sortkey || integer ||  || || X || &lt;br /&gt;
|-&lt;br /&gt;
| testedby || integer || ID value || || X || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Methods===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====get - Get A TestCaseRun by ID====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.get&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| case_run_id || integer || Must be greater than 0.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
A hash map of key/value pairs for the attributes listed above on success; on error, an XmlRpcException is thrown.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $caserun_id = 1;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.get&amp;quot;, $caserun_id);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
====list - Get A List of TestCaseRuns Based on A Query====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.list&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| query || hashmap || Can not be null.  See [[Bugzilla_XML-RPC_API_Query_Examples |Query Examples]].&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
An array of TestCaseRun hash maps or a hash map containing values for the keys on success; on error, an XmlRpcException is thrown.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.list&amp;quot;, {build_id =&amp;gt; 1, case_id =&amp;gt; 1});&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====create - Create A New TestCaseRun====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.create&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| new_values || hashmap || See required attributes list&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; below.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; Required attributes: assignee, build_id, case_id, case_text_version, environment_id, and run_id&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; case_run_status_id always set to 1 (IDLE) on create&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
An integer value representing the new test case run id on success; on error, an XmlRpcException is thrown.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.list&amp;quot;, {assignee =&amp;gt; 1, build_id =&amp;gt; 1, case_id =&amp;gt; 1, case_text_version =&amp;gt; 1, environment_id =&amp;gt; 1, run_id =&amp;gt; 1});&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====update - Update An Existing TestCaseRun====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.update&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| run_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| case_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| build_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| environment_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| new_values&amp;lt;sup&amp;gt;1,2&amp;lt;/sup&amp;gt; || hashmap || See [[Testopia:Documentation:XMLRPC:TestCaseRun#Attributes |attributes list]] modifiable fields.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; The notes attribute can be used to &amp;lt;b&amp;gt;append&amp;lt;/b&amp;gt; a new note to the respective TestCaseRun.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; To automatically update an attached bug&#039;s status, set the new_values attribute, update_bugs, to 1.&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
The modified TestCaseRun on success; on failure, an XmlRpcException is thrown.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.update&amp;quot;, &lt;br /&gt;
                           $run_id,&lt;br /&gt;
                           $case_id,&lt;br /&gt;
                           $build_id,&lt;br /&gt;
                           $environment_id,&lt;br /&gt;
                           {assignee =&amp;gt; 1, caserun_status_id =&amp;gt; 1, notes =&amp;gt; &#039;Notes&#039;});&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====get_bugs - Get a list of bugs for the given TestCaseRun====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.get_bugs&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| case_run_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
An array of Bug hash maps or a hash map containing values for the keys on success; on error, an XmlRpcException is thrown.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $caserun_id;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.get_bugs&amp;quot;, $caserun_id);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====lookup_status_id_by_name - Lookup A TestCaseRun Status ID By Its Name====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.lookup_status_id_by_name&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| name || string || Cannot be null or empty string&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
The TestCaseRun status id for the respective name, empty string (&#039;&#039;) if the name is not found.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&#039;TestCaseRun.lookup_status_id_by_name&#039;, &#039;Name&#039;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====lookup_status_name_by_id - Lookup A TestCaseRun Status Name By Its ID====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.lookup_status_name_by_id&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Cannot be 0&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
The TestCaseRun status name for the respective id or 0 error occurs.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&#039;TestCaseRun.lookup_status_name_by_id&#039;, 1);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Back to the [[Testopia |Testopia Main Page]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:TestCaseRun&amp;diff=69471</id>
		<title>Testopia:Documentation:XMLRPC:TestCaseRun</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:TestCaseRun&amp;diff=69471"/>
		<updated>2007-09-25T21:21:13Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: changed .create Result to reflect throwing of XmlRpcException vs. hashmap of faultcode/faultstring&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOEDITSECTION__&lt;br /&gt;
Back to [[Testopia:Documentation:XMLRPC |Testopia XML-RPC API]]&lt;br /&gt;
&lt;br /&gt;
==TestCaseRun==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
A test case run is a record in the test_case_runs table which joins test cases to test runs. Basically, for each test run a selection of &lt;br /&gt;
test cases is made to be included in that run. As a test run progresses, testers set statuses on each of the cases in the run.&lt;br /&gt;
&lt;br /&gt;
===Hiearchy===&lt;br /&gt;
Bugzilla::WebService::Testopia::TestCaseRun&lt;br /&gt;
&lt;br /&gt;
===Attributes===&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Attribute&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; || &#039;&#039;&#039;Create&#039;&#039;&#039; || &#039;&#039;&#039;Read&#039;&#039;&#039; || &#039;&#039;&#039;Update&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| assignee || integer || ID value || Required || X || X&lt;br /&gt;
|-&lt;br /&gt;
| build_id || integer || || Required || X || X&lt;br /&gt;
|-&lt;br /&gt;
| canview || integer ||  ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_id || integer ||  || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_run_id || integer ||   ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_run_status_id || integer ||  ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| case_text_version || integer || || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| close_date || string || Format: yyyy-mm-dd hh:mm:ss ||  || X || &lt;br /&gt;
|-&lt;br /&gt;
| environment_id || integer ||  || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| iscurrent || integer || || || X || &lt;br /&gt;
|-&lt;br /&gt;
| notes || string || || Optional || X || X&lt;br /&gt;
|-&lt;br /&gt;
| run_id || integer ||  || Required || X || &lt;br /&gt;
|-&lt;br /&gt;
| sortkey || integer ||  || || X || &lt;br /&gt;
|-&lt;br /&gt;
| testedby || integer || ID value || || X || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Methods===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====get - Get A TestCaseRun by ID====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.get&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| case_run_id || integer || Must be greater than 0.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
A hash map of key/value pairs for the attributes listed above or a hash map containing values for the keys, &amp;quot;faultcode&amp;quot; and &amp;quot;faultstring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $caserun_id = 1;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.get&amp;quot;, $caserun_id);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
====list - Get A List of TestCaseRuns Based on A Query====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.list&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| query || hashmap || Can not be null.  See [[Bugzilla_XML-RPC_API_Query_Examples |Query Examples]].&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
An array of TestCaseRun hash maps or a hash map containing values for the keys, &amp;quot;faultcode&amp;quot; and &amp;quot;faultstring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.list&amp;quot;, {build_id =&amp;gt; 1, case_id =&amp;gt; 1});&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====create - Create A New TestCaseRun====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.create&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| new_values || hashmap || See required attributes list&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; below.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; Required attributes: assignee, build_id, case_id, case_text_version, environment_id, and run_id&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; case_run_status_id always set to 1 (IDLE) on create&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
An integer value representing the new test case run id or a hash map containing values for the keys, &amp;quot;faultcode&amp;quot; and &amp;quot;faultstring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.list&amp;quot;, {assignee =&amp;gt; 1, build_id =&amp;gt; 1, case_id =&amp;gt; 1, case_text_version =&amp;gt; 1, environment_id =&amp;gt; 1, run_id =&amp;gt; 1});&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====update - Update An Existing TestCaseRun====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.update&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| run_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| case_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| build_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| environment_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
| new_values&amp;lt;sup&amp;gt;1,2&amp;lt;/sup&amp;gt; || hashmap || See [[Testopia:Documentation:XMLRPC:TestCaseRun#Attributes |attributes list]] modifiable fields.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; The notes attribute can be used to &amp;lt;b&amp;gt;append&amp;lt;/b&amp;gt; a new note to the respective TestCaseRun.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; To automatically update an attached bug&#039;s status, set the new_values attribute, update_bugs, to 1.&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
The modified TestCaseRun on success; on failure, an XmlRpcException is thrown.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.update&amp;quot;, &lt;br /&gt;
                           $run_id,&lt;br /&gt;
                           $case_id,&lt;br /&gt;
                           $build_id,&lt;br /&gt;
                           $environment_id,&lt;br /&gt;
                           {assignee =&amp;gt; 1, caserun_status_id =&amp;gt; 1, notes =&amp;gt; &#039;Notes&#039;});&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====get_bugs - Get a list of bugs for the given TestCaseRun====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.get_bugs&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| case_run_id || integer ||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
An array of Bug hash maps or a hash map containing values for the keys, &amp;quot;faultcode&amp;quot; and &amp;quot;faultstring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $caserun_id;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&amp;quot;TestCaseRun.get_bugs&amp;quot;, $caserun_id);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====lookup_status_id_by_name - Lookup A TestCaseRun Status ID By Its Name====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.lookup_status_id_by_name&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| name || string || Cannot be null or empty string&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
The TestCaseRun status id for the respective name or 0 if an error occurs.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&#039;TestCaseRun.lookup_status_id_by_name&#039;, &#039;Name&#039;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
====lookup_status_name_by_id - Lookup A TestCaseRun Status Name By Its ID====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=====Usage=====&lt;br /&gt;
TestCaseRun.lookup_status_name_by_id&lt;br /&gt;
&lt;br /&gt;
=====Parameters=====&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Parameter&#039;&#039;&#039; || &#039;&#039;&#039;Data Type&#039;&#039;&#039; || &#039;&#039;&#039;Comments&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Cannot be 0&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Result=====&lt;br /&gt;
The TestCaseRun status name for the respective id or empty string if an error occurs.&lt;br /&gt;
&lt;br /&gt;
=====Example=====&lt;br /&gt;
&amp;lt;b&amp;gt;Perl&amp;lt;/b&amp;gt;&lt;br /&gt;
 my $result = $proxy-&amp;gt;call(&#039;TestCaseRun.lookup_status_name_by_id&#039;, 1);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Back to the [[Testopia |Testopia Main Page]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:Newer_Client_Example&amp;diff=69079</id>
		<title>Testopia:Documentation:XMLRPC:Newer Client Example</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:Newer_Client_Example&amp;diff=69079"/>
		<updated>2007-09-20T22:45:29Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The original example given uses the original version of xmlrpc, whereas only xmlrpc-2 might be available on your system.  The following code worked for me on FC7.  Note:&lt;br /&gt;
* I stripped out all the SSL stuff and switched to using very basic Hashtables and Vectors&lt;br /&gt;
* Your compiler will probably complain about using setBasicAuthentication as it is deprecated&lt;br /&gt;
* If you get an error like &amp;quot;XmlRpcException: Login Required&amp;quot;, you will need to edit your apache conf file per [[Testopia:Documentation:XMLRPC:Apache| this]].  In my case I eliminated the AuthUserFile and Require valid-user.&lt;br /&gt;
* If you are getting an HTTP 500 response, have a look at your apache logs and see if you haven&#039;t hit [https://bugzilla.mozilla.org/show_bug.cgi?id=396399 bug 396399].  The workaround is given in discussion [http://groups.google.com/group/mozilla.support.webtools/browse_thread/thread/950d3621f12420e9/1613c2cf336cf2a6#1613c2cf336cf2a6 here]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import org.apache.xmlrpc.XmlRpcClient;&lt;br /&gt;
&lt;br /&gt;
import java.util.Hashtable;&lt;br /&gt;
import java.util.Vector;&lt;br /&gt;
import java.lang.Integer;&lt;br /&gt;
&lt;br /&gt;
public class RPCClient&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
    public static void main(String[] args)&lt;br /&gt;
    {&lt;br /&gt;
         try&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            XmlRpcClient client = new XmlRpcClient(&amp;quot;http://bugzilla.mycompany.com/bugs/tr_xmlrpc.cgi&amp;quot;);&lt;br /&gt;
            client.setBasicAuthentication(&amp;quot;me@mycompany&amp;quot;,&amp;quot;password&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
            Vector params = new Vector();&lt;br /&gt;
            params.add(new java.lang.Integer(2));&lt;br /&gt;
&lt;br /&gt;
            Hashtable result = (Hashtable) client.execute(&amp;quot;TestPlan.get&amp;quot;, params);&lt;br /&gt;
&lt;br /&gt;
            System.out.println(result);&lt;br /&gt;
        }&lt;br /&gt;
         catch (Exception e)&lt;br /&gt;
        {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:Newer_Client_Example&amp;diff=69078</id>
		<title>Testopia:Documentation:XMLRPC:Newer Client Example</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC:Newer_Client_Example&amp;diff=69078"/>
		<updated>2007-09-20T22:43:46Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: New page: The original example given uses the original version of xmlrpc, whereas only xmlrpc-2 might be available on your system.  The following code worked for me on FC7.  Note: * I stripped out a...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The original example given uses the original version of xmlrpc, whereas only xmlrpc-2 might be available on your system.  The following code worked for me on FC7.  Note:&lt;br /&gt;
* I stripped out all the SSL stuff and switched to using very basic Hashtables and Vectors&lt;br /&gt;
* Your compiler will probably complain about using setBasicAuthentication as it is deprecated&lt;br /&gt;
* If you get an error like &amp;quot;XmlRpcException: Login Required&amp;quot;, you will need to edit your apache conf file per [[Testopia:Documentation:XMLRPC:Apache| this]].  In my case I eliminated the AuthUserFile and Require valid-user.&lt;br /&gt;
* If you are getting an HTTP 500 response, have a look at your apache logs and see if you haven&#039;t hit [https://bugzilla.mozilla.org/show_bug.cgi?id=396399 bug 396399].  The workaround is given in the bug.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import org.apache.xmlrpc.XmlRpcClient;&lt;br /&gt;
&lt;br /&gt;
import java.util.Hashtable;&lt;br /&gt;
import java.util.Vector;&lt;br /&gt;
import java.lang.Integer;&lt;br /&gt;
&lt;br /&gt;
public class RPCClient&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
    public static void main(String[] args)&lt;br /&gt;
    {&lt;br /&gt;
         try&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            XmlRpcClient client = new XmlRpcClient(&amp;quot;http://bugzilla.mycompany.com/bugs/tr_xmlrpc.cgi&amp;quot;);&lt;br /&gt;
            client.setBasicAuthentication(&amp;quot;me@mycompany&amp;quot;,&amp;quot;password&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
            Vector params = new Vector();&lt;br /&gt;
            params.add(new java.lang.Integer(2));&lt;br /&gt;
&lt;br /&gt;
            Hashtable result = (Hashtable) client.execute(&amp;quot;TestPlan.get&amp;quot;, params);&lt;br /&gt;
&lt;br /&gt;
            System.out.println(result);&lt;br /&gt;
        }&lt;br /&gt;
         catch (Exception e)&lt;br /&gt;
        {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=69076</id>
		<title>Testopia:Documentation:XMLRPC</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=69076"/>
		<updated>2007-09-20T22:31:49Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOEDITSECTION__&lt;br /&gt;
Back to the [[Testopia |Testopia Main Page]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s New!==&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| 2006-11-27 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:Apache |instructions]] for using Basic Authorization with an Apache server&lt;br /&gt;
* New [[Testopia:Documentation:XMLRPC:Query_Examples |query examples]] that do not use binary charts&lt;br /&gt;
* New API [[Testopia:Documentation:XMLRPC#Objects |objects]]: &#039;&#039;&#039;Build&#039;&#039;&#039;, &#039;&#039;&#039;Product&#039;&#039;&#039;, and &#039;&#039;&#039;User&#039;&#039;&#039;&lt;br /&gt;
* New methods for [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]] object&lt;br /&gt;
* New parameters added for managing query result sizes.  &amp;lt;b&amp;gt;pagesize&amp;lt;/b&amp;gt; is used to set the number of records returned.  The default is 24.  &amp;lt;b&amp;gt;page&amp;lt;/b&amp;gt; is used to return a page of results based on pagesize.   The default value for page is zero.  For example, setting page equal to zero will return the first 24 records.  Setting page equal to 1 will return the second set of 24 records.&lt;br /&gt;
&lt;br /&gt;
The new parameters are added to any &amp;quot;list&amp;quot; method:&lt;br /&gt;
&lt;br /&gt;
 $proxy-&amp;gt;call(&#039;TestPlan.list&#039;, {pagesize=&amp;gt;10, page=&amp;gt;0});&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-18 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl (SOAP::Lite) on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-04 || &lt;br /&gt;
* Added an example of an error response&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-21 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;SSL (https)&amp;lt;/b&amp;gt; access to the Java client (not necessary for Perl client)&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-20 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;Basic Authorization&amp;lt;/b&amp;gt; to the sample clients&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
Testopia&#039;s XMLRPC relies on Bugzilla&#039;s webservice which won&#039;t be generally available until Bugzilla 3.0. You will need to download and install the files found in Bugzilla/WebService. You can get the files from http://lxr.mozilla.org/bugzilla/source/Bugzilla/&lt;br /&gt;
&lt;br /&gt;
==Project Description==&lt;br /&gt;
Provide a means for the programmatic creation, modification, and reporting of inherent Bugzilla Testopia objects, such as test plans, test cases, and test runs.  Scope will later expand to cover actual bugs and products.&lt;br /&gt;
&lt;br /&gt;
The API is accessed through XML Remote Procedure Calls (XML-RPC).  Bascially, a client creates an XML document and sends it to the Bugzilla server via an HTTP post.&lt;br /&gt;
&lt;br /&gt;
An example of an XML request:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodCall&amp;gt;&lt;br /&gt;
       &amp;lt;methodName&amp;gt;TestPlan.get&amp;lt;/methodName&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodCall&amp;gt; &lt;br /&gt;
&lt;br /&gt;
An example of an XML response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;struct&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;author&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;editor&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;A Test Plan&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;default_product_version&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;other&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;plan_id&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;product&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;TestProduct&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;creation_date&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;2006-08-03 13:20:53&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;type&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;Unit&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;isactive&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;/struct&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example of an error response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;fault&amp;gt;&lt;br /&gt;
          &amp;lt;value&amp;gt;&lt;br /&gt;
             &amp;lt;struct&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultString&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;string&amp;gt;Too many parameters.&amp;lt;/string&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultCode&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;int&amp;gt;4&amp;lt;/int&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
             &amp;lt;/struct&amp;gt;&lt;br /&gt;
          &amp;lt;/value&amp;gt;&lt;br /&gt;
       &amp;lt;/fault&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
&lt;br /&gt;
The examples for this project use the following libraries:&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Programming Language&#039;&#039;&#039; || &#039;&#039;&#039;Software&#039;&#039;&#039; || &#039;&#039;&#039;Special Notes&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Perl || [http://www.soaplite.com SOAP::Lite] || [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| Java || [http://ws.apache.org/xmlrpc Apache XML-RPC] ||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can, of course, code the XML document via strings or the Document Object Model (DOM) and then maually do a HTTP post, but why?&lt;br /&gt;
&lt;br /&gt;
===Sample Clients===&lt;br /&gt;
&lt;br /&gt;
====Perl====&lt;br /&gt;
&lt;br /&gt;
 use SOAP::Transport::HTTP;  # Need for Basic Authorization subroutine&lt;br /&gt;
&lt;br /&gt;
 use XMLRPC::Lite;           # From the SOAP::Lite Module&lt;br /&gt;
  &lt;br /&gt;
 my $proxy = XMLRPC::Lite-&amp;gt;proxy(&amp;quot;YOUR_URL_TO_BUGZILLA_GOES_HERE&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 # Result is a hash map&lt;br /&gt;
 my $soapresult = $proxy-&amp;gt;call(&#039;TestPlan.get&#039;, 1);&lt;br /&gt;
 &lt;br /&gt;
 # Error checking&lt;br /&gt;
 die_on_fault($soapresult);&lt;br /&gt;
 &lt;br /&gt;
 # Print each key/value pair &lt;br /&gt;
 foreach (keys(%$soapresult)) &lt;br /&gt;
 {&lt;br /&gt;
 	print &amp;quot;$_: $$soapresult{$_}\n&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # Add the following subroutine to submit a userid/password for basic authorization&lt;br /&gt;
 sub SOAP::Transport::HTTP::Client::get_basic_credentials &lt;br /&gt;
 { &lt;br /&gt;
 	return &#039;userid&#039; =&amp;gt; &#039;password&#039;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 sub die_on_fault &lt;br /&gt;
 {&lt;br /&gt;
 	my $soapresult = shift;&lt;br /&gt;
 &lt;br /&gt;
 	if ($soapresult-&amp;gt;fault) &lt;br /&gt;
 	{&lt;br /&gt;
 		die $soapresult-&amp;gt;faultcode . &#039; &#039; . $soapresult-&amp;gt;faultstring;&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
====Java====&lt;br /&gt;
&lt;br /&gt;
 import org.apache.xmlrpc.XmlRpcException;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClient;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;&lt;br /&gt;
 &lt;br /&gt;
 import java.net.URL;&lt;br /&gt;
 import java.util.HashMap;&lt;br /&gt;
 import java.util.ArrayList;&lt;br /&gt;
 &lt;br /&gt;
 // Needed for SSL&lt;br /&gt;
 import java.security.cert.X509Certificate;&lt;br /&gt;
 import javax.net.ssl.HostnameVerifier;&lt;br /&gt;
 import javax.net.ssl.HttpsURLConnection;&lt;br /&gt;
 import javax.net.ssl.SSLContext;&lt;br /&gt;
 import javax.net.ssl.SSLSession;&lt;br /&gt;
 import javax.net.ssl.TrustManager;&lt;br /&gt;
 import javax.net.ssl.X509TrustManager;&lt;br /&gt;
 &lt;br /&gt;
 public class RPCClient&lt;br /&gt;
 {&lt;br /&gt;
  	// &lt;br /&gt;
  	// Trust All Certificates - Needed for SSL Client&lt;br /&gt;
  	// &lt;br /&gt;
 	private static void TrustAllCerts()&lt;br /&gt;
 		throws java.security.NoSuchAlgorithmException,&lt;br /&gt;
 		       java.security.KeyManagementException  &lt;br /&gt;
 	{&lt;br /&gt;
 		// Create a trust manager that does not validate certificate chains&lt;br /&gt;
 &lt;br /&gt;
 		TrustManager[] trustAllCerts = new TrustManager[] &lt;br /&gt;
 	    {&lt;br /&gt;
 	        new X509TrustManager() &lt;br /&gt;
 	        {&lt;br /&gt;
 	            public X509Certificate[] getAcceptedIssuers() &lt;br /&gt;
 	            {&lt;br /&gt;
 	                return null;&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkClientTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkServerTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 	 &lt;br /&gt;
 	    // Install the all-trusting trust manager&lt;br /&gt;
 	    SSLContext sc = SSLContext.getInstance(&amp;quot;SSL&amp;quot;);&lt;br /&gt;
 	    &lt;br /&gt;
 	    // Create empty HostnameVerifier&lt;br /&gt;
 	    HostnameVerifier hv = new HostnameVerifier() &lt;br /&gt;
 	    {&lt;br /&gt;
 	    	public boolean verify(String arg0, SSLSession arg1) &lt;br /&gt;
 	    	{&lt;br /&gt;
 	    		return true;&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 &lt;br /&gt;
 	    sc.init(null, trustAllCerts, new java.security.SecureRandom());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultHostnameVerifier(hv);&lt;br /&gt;
 	}&lt;br /&gt;
  &lt;br /&gt;
 	public static void main(String[] args)&lt;br /&gt;
 	{&lt;br /&gt;
  		try&lt;br /&gt;
 		{&lt;br /&gt;
 		    TrustAllCerts();&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();&lt;br /&gt;
 		    config.setServerURL(new URL(&amp;quot;/* YOUR_URL_TO_BUGZILLA_GOES_HERE */&amp;quot;));&lt;br /&gt;
 		    config.setBasicUserName(&amp;quot;userid&amp;quot;);&lt;br /&gt;
 		    config.setBasicPassword(&amp;quot;password&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClient client = new XmlRpcClient();&lt;br /&gt;
 		    client.setConfig(config);&lt;br /&gt;
 &lt;br /&gt;
 		    ArrayList&amp;lt;Object&amp;gt; params = new ArrayList&amp;lt;Object&amp;gt;();&lt;br /&gt;
 		    params.add(1);&lt;br /&gt;
 &lt;br /&gt;
 		    HashMap result = (HashMap) client.execute(&amp;quot;TestPlan.get&amp;quot;, params);&lt;br /&gt;
 &lt;br /&gt;
 		    System.out.println(result);&lt;br /&gt;
 		}&lt;br /&gt;
  		catch (Exception e)&lt;br /&gt;
 		{&lt;br /&gt;
 			e.printStackTrace();&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==API Documentation==&lt;br /&gt;
&lt;br /&gt;
All XML-RPC requests are sent to a single Bugzilla CGI called &amp;lt;i&amp;gt;tr_xmlrpc.cgi&amp;lt;/i&amp;gt;.  Its location will be based on your specific Bugzilla installation.  Normally the CGI will be found at the root URL of Bugzilla, for example, http://bugzilla.company.com/tr_xmlrpc.cgi&lt;br /&gt;
&lt;br /&gt;
===Objects===&lt;br /&gt;
&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Build |Build]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Product |Product]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:User |User]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCase |TestCase]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestRun |TestRun]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCaseRun |TestCaseRun]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
# Where can I find more coding examples?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Code_Examples |Here]].&lt;br /&gt;
# Where can I find the query examples again?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Query_Examples |Here]].&lt;br /&gt;
# Where can I find how to setup Apache for use with the API and Basic Authentication?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Apache |Here]].&lt;br /&gt;
# The example above doesn&#039;t compile for me because I&#039;m too bleeding edge for my own good, what gives?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Newer_Client_Example |A newer java sample client]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Back to the [[Testopia |Testopia Main Page]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Bugzilla_XML-RPC_API_Query_Examples&amp;diff=69038</id>
		<title>Bugzilla XML-RPC API Query Examples</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Bugzilla_XML-RPC_API_Query_Examples&amp;diff=69038"/>
		<updated>2007-09-20T01:25:59Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: a bunch of the API doc pages point here, they should point there, hence the redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Testopia:Documentation:XMLRPC:Query_Examples]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=69036</id>
		<title>Testopia:Documentation:XMLRPC</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Testopia:Documentation:XMLRPC&amp;diff=69036"/>
		<updated>2007-09-20T00:08:23Z</updated>

		<summary type="html">&lt;p&gt;Nparrish: xmlrpc, not xmlrcp&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOEDITSECTION__&lt;br /&gt;
Back to the [[Testopia |Testopia Main Page]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s New!==&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| 2006-11-27 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:Apache |instructions]] for using Basic Authorization with an Apache server&lt;br /&gt;
* New [[Testopia:Documentation:XMLRPC:Query_Examples |query examples]] that do not use binary charts&lt;br /&gt;
* New API [[Testopia:Documentation:XMLRPC#Objects |objects]]: &#039;&#039;&#039;Build&#039;&#039;&#039;, &#039;&#039;&#039;Product&#039;&#039;&#039;, and &#039;&#039;&#039;User&#039;&#039;&#039;&lt;br /&gt;
* New methods for [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]] object&lt;br /&gt;
* New parameters added for managing query result sizes.  &amp;lt;b&amp;gt;pagesize&amp;lt;/b&amp;gt; is used to set the number of records returned.  The default is 24.  &amp;lt;b&amp;gt;page&amp;lt;/b&amp;gt; is used to return a page of results based on pagesize.   The default value for page is zero.  For example, setting page equal to zero will return the first 24 records.  Setting page equal to 1 will return the second set of 24 records.&lt;br /&gt;
&lt;br /&gt;
The new parameters are added to any &amp;quot;list&amp;quot; method:&lt;br /&gt;
&lt;br /&gt;
 $proxy-&amp;gt;call(&#039;TestPlan.list&#039;, {pagesize=&amp;gt;10, page=&amp;gt;0});&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-18 || &lt;br /&gt;
* Added [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl (SOAP::Lite) on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| 2006-10-04 || &lt;br /&gt;
* Added an example of an error response&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-21 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;SSL (https)&amp;lt;/b&amp;gt; access to the Java client (not necessary for Perl client)&lt;br /&gt;
|-&lt;br /&gt;
| 2006-09-20 || &lt;br /&gt;
* Added code for &amp;lt;b&amp;gt;Basic Authorization&amp;lt;/b&amp;gt; to the sample clients&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
Testopia&#039;s XMLRPC relies on Bugzilla&#039;s webservice which won&#039;t be generally available until Bugzilla 3.0. You will need to download and install the files found in Bugzilla/WebService. You can get the files from http://lxr.mozilla.org/bugzilla/source/Bugzilla/&lt;br /&gt;
&lt;br /&gt;
==Project Description==&lt;br /&gt;
Provide a means for the programmatic creation, modification, and reporting of inherent Bugzilla Testopia objects, such as test plans, test cases, and test runs.  Scope will later expand to cover actual bugs and products.&lt;br /&gt;
&lt;br /&gt;
The API is accessed through XML Remote Procedure Calls (XML-RPC).  Bascially, a client creates an XML document and sends it to the Bugzilla server via an HTTP post.&lt;br /&gt;
&lt;br /&gt;
An example of an XML request:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodCall&amp;gt;&lt;br /&gt;
       &amp;lt;methodName&amp;gt;TestPlan.get&amp;lt;/methodName&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodCall&amp;gt; &lt;br /&gt;
&lt;br /&gt;
An example of an XML response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;params&amp;gt;&lt;br /&gt;
          &amp;lt;param&amp;gt;&lt;br /&gt;
             &amp;lt;value&amp;gt;&lt;br /&gt;
                &amp;lt;struct&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;author&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;editor&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;user@company.com&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;A Test Plan&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;default_product_version&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;other&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;plan_id&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;product&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;TestProduct&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;creation_date&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;2006-08-03 13:20:53&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;type&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;string&amp;gt;Unit&amp;lt;/string&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                   &amp;lt;member&amp;gt;&lt;br /&gt;
                      &amp;lt;name&amp;gt;isactive&amp;lt;/name&amp;gt;&lt;br /&gt;
                      &amp;lt;value&amp;gt;&lt;br /&gt;
                         &amp;lt;int&amp;gt;1&amp;lt;/int&amp;gt;&lt;br /&gt;
                      &amp;lt;/value&amp;gt;&lt;br /&gt;
                   &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;/struct&amp;gt;&lt;br /&gt;
             &amp;lt;/value&amp;gt;&lt;br /&gt;
          &amp;lt;/param&amp;gt;&lt;br /&gt;
       &amp;lt;/params&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example of an error response:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
    &amp;lt;methodResponse&amp;gt;&lt;br /&gt;
       &amp;lt;fault&amp;gt;&lt;br /&gt;
          &amp;lt;value&amp;gt;&lt;br /&gt;
             &amp;lt;struct&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultString&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;string&amp;gt;Too many parameters.&amp;lt;/string&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
                &amp;lt;member&amp;gt;&lt;br /&gt;
                   &amp;lt;name&amp;gt;faultCode&amp;lt;/name&amp;gt;&lt;br /&gt;
                   &amp;lt;value&amp;gt;&lt;br /&gt;
                      &amp;lt;int&amp;gt;4&amp;lt;/int&amp;gt;&lt;br /&gt;
                   &amp;lt;/value&amp;gt;&lt;br /&gt;
                &amp;lt;/member&amp;gt;&lt;br /&gt;
             &amp;lt;/struct&amp;gt;&lt;br /&gt;
          &amp;lt;/value&amp;gt;&lt;br /&gt;
       &amp;lt;/fault&amp;gt;&lt;br /&gt;
    &amp;lt;/methodResponse&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
&lt;br /&gt;
The examples for this project use the following libraries:&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=4&lt;br /&gt;
| &#039;&#039;&#039;Programming Language&#039;&#039;&#039; || &#039;&#039;&#039;Software&#039;&#039;&#039; || &#039;&#039;&#039;Special Notes&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Perl || [http://www.soaplite.com SOAP::Lite] || [[Testopia:Documentation:XMLRPC:PerlSSL |Instructions]] for using SSL and Perl on SLED10&lt;br /&gt;
|-&lt;br /&gt;
| Java || [http://ws.apache.org/xmlrpc Apache XML-RPC] ||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can, of course, code the XML document via strings or the Document Object Model (DOM) and then maually do a HTTP post, but why?&lt;br /&gt;
&lt;br /&gt;
===Sample Clients===&lt;br /&gt;
&lt;br /&gt;
====Perl====&lt;br /&gt;
&lt;br /&gt;
 use SOAP::Transport::HTTP;  # Need for Basic Authorization subroutine&lt;br /&gt;
&lt;br /&gt;
 use XMLRPC::Lite;           # From the SOAP::Lite Module&lt;br /&gt;
  &lt;br /&gt;
 my $proxy = XMLRPC::Lite-&amp;gt;proxy(&amp;quot;YOUR_URL_TO_BUGZILLA_GOES_HERE&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 # Result is a hash map&lt;br /&gt;
 my $soapresult = $proxy-&amp;gt;call(&#039;TestPlan.get&#039;, 1);&lt;br /&gt;
 &lt;br /&gt;
 # Error checking&lt;br /&gt;
 die_on_fault($soapresult);&lt;br /&gt;
 &lt;br /&gt;
 # Print each key/value pair &lt;br /&gt;
 foreach (keys(%$soapresult)) &lt;br /&gt;
 {&lt;br /&gt;
 	print &amp;quot;$_: $$soapresult{$_}\n&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # Add the following subroutine to submit a userid/password for basic authorization&lt;br /&gt;
 sub SOAP::Transport::HTTP::Client::get_basic_credentials &lt;br /&gt;
 { &lt;br /&gt;
 	return &#039;userid&#039; =&amp;gt; &#039;password&#039;;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 sub die_on_fault &lt;br /&gt;
 {&lt;br /&gt;
 	my $soapresult = shift;&lt;br /&gt;
 &lt;br /&gt;
 	if ($soapresult-&amp;gt;fault) &lt;br /&gt;
 	{&lt;br /&gt;
 		die $soapresult-&amp;gt;faultcode . &#039; &#039; . $soapresult-&amp;gt;faultstring;&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
====Java====&lt;br /&gt;
&lt;br /&gt;
 import org.apache.xmlrpc.XmlRpcException;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClient;&lt;br /&gt;
 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;&lt;br /&gt;
 &lt;br /&gt;
 import java.net.URL;&lt;br /&gt;
 import java.util.HashMap;&lt;br /&gt;
 import java.util.ArrayList;&lt;br /&gt;
 &lt;br /&gt;
 // Needed for SSL&lt;br /&gt;
 import java.security.cert.X509Certificate;&lt;br /&gt;
 import javax.net.ssl.HostnameVerifier;&lt;br /&gt;
 import javax.net.ssl.HttpsURLConnection;&lt;br /&gt;
 import javax.net.ssl.SSLContext;&lt;br /&gt;
 import javax.net.ssl.SSLSession;&lt;br /&gt;
 import javax.net.ssl.TrustManager;&lt;br /&gt;
 import javax.net.ssl.X509TrustManager;&lt;br /&gt;
 &lt;br /&gt;
 public class RPCClient&lt;br /&gt;
 {&lt;br /&gt;
  	// &lt;br /&gt;
  	// Trust All Certificates - Needed for SSL Client&lt;br /&gt;
  	// &lt;br /&gt;
 	private static void TrustAllCerts()&lt;br /&gt;
 		throws java.security.NoSuchAlgorithmException,&lt;br /&gt;
 		       java.security.KeyManagementException  &lt;br /&gt;
 	{&lt;br /&gt;
 		// Create a trust manager that does not validate certificate chains&lt;br /&gt;
 &lt;br /&gt;
 		TrustManager[] trustAllCerts = new TrustManager[] &lt;br /&gt;
 	    {&lt;br /&gt;
 	        new X509TrustManager() &lt;br /&gt;
 	        {&lt;br /&gt;
 	            public X509Certificate[] getAcceptedIssuers() &lt;br /&gt;
 	            {&lt;br /&gt;
 	                return null;&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkClientTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	 &lt;br /&gt;
 	            public void checkServerTrusted(X509Certificate[] certs, String authType) &lt;br /&gt;
 	            {&lt;br /&gt;
 	                // Trust always&lt;br /&gt;
 	            }&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 	 &lt;br /&gt;
 	    // Install the all-trusting trust manager&lt;br /&gt;
 	    SSLContext sc = SSLContext.getInstance(&amp;quot;SSL&amp;quot;);&lt;br /&gt;
 	    &lt;br /&gt;
 	    // Create empty HostnameVerifier&lt;br /&gt;
 	    HostnameVerifier hv = new HostnameVerifier() &lt;br /&gt;
 	    {&lt;br /&gt;
 	    	public boolean verify(String arg0, SSLSession arg1) &lt;br /&gt;
 	    	{&lt;br /&gt;
 	    		return true;&lt;br /&gt;
 	        }&lt;br /&gt;
 	    };&lt;br /&gt;
 &lt;br /&gt;
 	    sc.init(null, trustAllCerts, new java.security.SecureRandom());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());&lt;br /&gt;
 	    HttpsURLConnection.setDefaultHostnameVerifier(hv);&lt;br /&gt;
 	}&lt;br /&gt;
  &lt;br /&gt;
 	public static void main(String[] args)&lt;br /&gt;
 	{&lt;br /&gt;
  		try&lt;br /&gt;
 		{&lt;br /&gt;
 		    TrustAllCerts();&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();&lt;br /&gt;
 		    config.setServerURL(new URL(&amp;quot;/* YOUR_URL_TO_BUGZILLA_GOES_HERE */&amp;quot;));&lt;br /&gt;
 		    config.setBasicUserName(&amp;quot;userid&amp;quot;);&lt;br /&gt;
 		    config.setBasicPassword(&amp;quot;password&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 		    XmlRpcClient client = new XmlRpcClient();&lt;br /&gt;
 		    client.setConfig(config);&lt;br /&gt;
 &lt;br /&gt;
 		    ArrayList&amp;lt;Object&amp;gt; params = new ArrayList&amp;lt;Object&amp;gt;();&lt;br /&gt;
 		    params.add(1);&lt;br /&gt;
 &lt;br /&gt;
 		    HashMap result = (HashMap) client.execute(&amp;quot;TestPlan.get&amp;quot;, params);&lt;br /&gt;
 &lt;br /&gt;
 		    System.out.println(result);&lt;br /&gt;
 		}&lt;br /&gt;
  		catch (Exception e)&lt;br /&gt;
 		{&lt;br /&gt;
 			e.printStackTrace();&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==API Documentation==&lt;br /&gt;
&lt;br /&gt;
All XML-RPC requests are sent to a single Bugzilla CGI called &amp;lt;i&amp;gt;tr_xmlrpc.cgi&amp;lt;/i&amp;gt;.  Its location will be based on your specific Bugzilla installation.  Normally the CGI will be found at the root URL of Bugzilla, for example, http://bugzilla.company.com/tr_xmlrpc.cgi&lt;br /&gt;
&lt;br /&gt;
===Objects===&lt;br /&gt;
&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Build |Build]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:Product |Product]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:User |User]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestPlan |TestPlan]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCase |TestCase]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestRun |TestRun]]&lt;br /&gt;
* [[Testopia:Documentation:XMLRPC:TestCaseRun |TestCaseRun]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
# Where can I find more coding examples?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Code_Examples |Here]].&lt;br /&gt;
# Where can I find the query examples again?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Query_Examples |Here]].&lt;br /&gt;
# Where can I find how to setup Apache for use with the API and Basic Authentication?&lt;br /&gt;
#* [[Testopia:Documentation:XMLRPC:Apache |Here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Back to the [[Testopia |Testopia Main Page]]&lt;/div&gt;</summary>
		<author><name>Nparrish</name></author>
	</entry>
</feed>