exportTestPlan インターフェイスは、テスト計画を XML ファイルにエクスポートするために使用されます。次の表は、exportTestPlan インターフェイスのパラメータを表しています。
| インターフェイス URL | パラメータ | 説明 | 
|---|---|---|
| http://<front-end URL>/servicesExchange?hid=exportTestPlan | sid | ユーザー認証用の Web サービス トークンまたはセッション識別子。Web サービス トークンは、Silk Central UI の 設定ページ から生成できます。このページにアクセスするには、Silk Central メニューに表示されているユーザー名にマウス カーソルを移動し、ユーザー設定 を選択します。セッション識別子は、利用可能な Web サービス のうちの logonUser メソッドを呼び出すことで取得できます。 | 
| nodeID | この ID のノードと、このノードの子ノードすべてが、再帰的にエクスポートされます。 | 
例:http://<front-end URL>/servicesExchange?hid=exportTestPlan&nodeID=<id>&sid=<webServiceToken>
以下のコードでは、Apache HttpClient を使用して、テストがエクスポートされます。
import org.apache.commons.httpclient.*; // Apache HttpClient
string webServiceToken = "e39a0b5b-45db-42db-84b2-b85028d954d5";
URL service = new URL("http", mWebServiceHelper.getHost(),
  mWebServiceHelper.getPort(), 
  String.format("/servicesExchange?hid=%s&sid=%s&nodeID=%d", 
  "exportTestPlan", webServiceToken,
  PARENT_NODE_ID));
	
HttpClient client = new HttpClient();
client.getHttpConnectionManager().getParams().setConnectionTimeout(60000);
HttpMethod fileGet = new GetMethod(service.toExternalForm());
int status = client.executeMethod(fileGet);
System.out.println(fileGet.getStatusLine());
String exportedTestPlanResponse = fileGet.getResponseBodyAsString();
System.out.println(exportedTestPlanResponse);
 
               		Apache HttpComponents をダウンロードするには、http://hc.apache.org/downloads.cgi を参照してください。必要なライブラリについては、コンポーネントのドキュメントを参照してください。