Techno Logica


Showing posts with label QC. Show all posts
Showing posts with label QC. Show all posts

Tuesday, February 16, 2010

Connect to QC Site Admin Api - SAClient.SaApi

src : http://forums11.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1321283

Using VBScript:

Dim objSAClient, resp
Set objSAClient = CreateObject("SAClient.SaApi.9")
'you have to know which is the correct reference to the SiteAdmin

'then login as admin:
objSAClient.login "http://ipaddress/sabin", qcuser, qcpassword



Using PHP:

$objSAClient = new COM("SAClient.SaApi.9") ;
'you have to know which is the correct reference to the SiteAdmin

'then login as admin:
$objSAClient->login "http://ipaddress/sabin", qcuser, qcpassword



NOTE:
If you want to know what is the reference for the SAAPI you have to go to the regedit, "HKEY_CLASSES_ROOT\SaClient.SAapi\CurrVer" and see what is the current version and use it.

For QC 9.2 : 
 The URL in the format http://[:]/sabin.

For QC 10.0 : 

 The URL in the format http://[:]/qcbin.

Tuesday, June 2, 2009

Connect to Quality Center OTA Client using PHP

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";
Else
        echo "Check the Attributes";

$tdc->Connect($dmn,$prj);

If ($tdc->Connected == 1)
echo "
Logged In : Domain - $dmn | Project :$prj ";

//$tsttMgr = $tdc->TestSetTreeManager; 


//Disconnect from the project
If ($tdc->Connected == 1)
{    $tdc->Disconnect();
echo "
Disconnected";
 }
//Log off the server
If ($tdc->LoggedIn == 1)
    $tdc->Logout();

//Release the TDConnection object.
$tdc->ReleaseConnection();
echo "
Released Connection.";



Tuesday, October 21, 2008

Quality Center Login Page - Using HTML & VBScript

Quality Center Login Page - Using HTML & VBScript


Quality Center - Login
QC Url
UserName
Password
Domain
Project
mail to: sunny.deb@gmail.com | http://technologicaguru.blogspot.com




Check out the file : QCDemo.html
Right-Click and View the Source.