Ningam Posted August 24, 2012 Share Posted August 24, 2012 Hello all,I am trying to update a status in HP Quality Center trought an API with AutoIt.I understood that is possible with the "BugFactory", but I miss documentation to complete my script.Thanks in advance for any help.Regards,;-------------------------------------------------------------------------------------------------------;My current script (seems working fine, but I can not find how to update a case).;-------------------------------------------------------------------------------------------------------Func TestAPI()$ObjName = RegRead("HKEY_CLASSES_ROOT\TDApiOle80.TDConnection\CurVer", "")if $ObjName = "" Then MsgBox(270384,"","QC not found") ExitEndIf$HostName = "http://quality-center.fr:80/qcbin/"$Domain = "ERP"$Project = "01-Portefeuille"$UserID = "My_User"$PassWd = "My password"$objOTAapi = ObjCreate($ObjName)$objOTAapi.InitConnectionEx($HostName)$objOTAapi.Login($UserID,$PassWd)$LoginVal = $objOTAapi.LoggedInIf $LoginVal <> True ThenMsgBox(0, "", "Login Failed")ExitEndIf$objOTAapi.Connect($Domain, $Project)$ProjectVal = $objOTAapi.Connected;~ Get bug factory$bfact = $objOTAapi.BugFactory;Test bugfactory connection$FieldList = $bfact.Fields$bugfilter = $FieldList.countMsgBox(0, "", $FieldList.Count)$objOTAapi.DisconnectProject()$objOTAapi.ReleaseConnection()EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now