1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?php
//Récupération des variables via la méthode POST du Formulaire
$qcurl =$_POST["ServerNameText"];
$usr =$_POST["UserNameText"];
$pwd =$_POST["PasswordText"];
$domain =$_POST["DomainText"];
$project =$_POST["ProjectText"];
//Connect to Quality Center OTA Client using PHP
$tdc = new COM("TDApiOle80.TDConnection") or die("Unable to instantiate Quality Center OTA API COM Object");
$tdc->InitConnectionEx($qcurl);
$tdc->Login($usr, $pwd);
//Vérification de la connection
if ($tdc->LoggedIn == 1)
{
echo "Connected","</br>";
}
else
{
echo "Check the Attributes";
}
$tdc->Connect($domain, $project);
if ($tdc->Connected== 1)
{
echo "Logged in : Domain - $domain | Project - $project","</br>";
la suite .......?
?> |
Partager