3.0

Table Of Contents
VMware, Inc. 21
Chapter 2 Getting Started with the Lab Manager SOAP API
f.Close();
Console.WriteLine(String.Format("Testing {0} at location {1}",
buildversion, buildlocation));
string config = CheckoutDeployConfiguration(buildversion);
RunQCTestset();
CaptureUndeployConfiguration(config);
} //** End Main() method
//
//** Initialize parameters
//
static string library_config = "ProofOfBuild-R2";
static string storage_server ="LM Server";
static string perform_capture =”Yes”;
static string soap_server = "LM Server";
///<summary>
/// The RunQCTestset()method executes a series of predefined
/// tests using Mercury Interactive’s Quality Center product.
///</summary>
static void RunQCTestset()
{
string server = "https://demo12.Lab Manager.com/qcbin";
string domain = "Lab Manager_SYSTEMS";
string project = "Snapshot_20";
string username = "jaya";
string password = "Lab Manager";
string host = "10.6.1.34";
string chosenTestSet = "Install_Verify";
// ----
TDConnection tdc = new TDConnection();
tdc.InitConnection(server, domain, "");
tdc.ConnectProjectEx(domain, project, username, password);
if ( tdc.Connected)
{
TestSetFactory testSetFactory
=(TestSetFactory)tdc.TestSetFactory;
List testSetList;
testSetList = testSetFactory.NewList("");
foreach ( TestSet testSet in testSetList)