CODE:
$qcurl =$_GET["qcurl"];
$usr =$_GET["usr"];
$pwd =$_GET["pwd"];
$dmn =$_GET["dmn"];
$prj =$_GET["prj"];
$tdc = new COM("TDApiOle80.TDConnection") or die("Unable to instantiate Quality Center OTA API COM Object");
$tdc->InitConnectionEx($qcurl);
$tdc->Login($usr, $pwd);
If ($tdc->LoggedIn == 1)
echo "
Connected";
Connected";
Else
echo "Check the Attributes";
$tdc->Connect($dmn,$prj);
If ($tdc->Connected == 1)
echo "
Logged In : Domain - $dmn | Project :$prj ";
Logged In : Domain - $dmn | Project :$prj ";
//$tsttMgr = $tdc->TestSetTreeManager;
//Disconnect from the project
If ($tdc->Connected == 1)
{ $tdc->Disconnect();
echo "
Disconnected";
Disconnected";
}
//Log off the server
If ($tdc->LoggedIn == 1)
$tdc->Logout();
//Release the TDConnection object.
$tdc->ReleaseConnection();
echo "
Released Connection.";
Released Connection.";
Some Q&A regarding COM & PHP -> http://www.php-center.de/en-html-manual/faq.com.html
1 comment:
Hi!
How can I implement this code in drupal? Anyone knows?
Thaks.
Post a Comment