Просмотр исходного кода

Fixed SOAP test

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1648 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 лет назад
Родитель
Сommit
e40539b558
2 измененных файлов с 4 добавлено и 3 удалено
  1. 1 1
      test/test.php
  2. 3 2
      test/testlist.inc.php

+ 1 - 1
test/test.php

@@ -104,7 +104,7 @@ if ($sTodo == '')
 		
 		
 		$sName = call_user_func(array($sClassName, 'GetName'));
 		$sName = call_user_func(array($sClassName, 'GetName'));
 		$sDescription = call_user_func(array($sClassName, 'GetDescription'));
 		$sDescription = call_user_func(array($sClassName, 'GetDescription'));
-		echo "<li><a href=\"?todo=exec&testid=$sClassName\">$sName</a> ($sDescription)</li\n";
+		echo "<li><a href=\"?todo=exec&testid=$sClassName\">$sName</a> ($sDescription)</li>\n";
 	}
 	}
 	echo "</ul>\n";
 	echo "</ul>\n";
 }
 }

+ 3 - 2
test/testlist.inc.php

@@ -2454,8 +2454,8 @@ $aCreateTicketSpecs = array(
 			'initial situation blah blah blah', /* sInitialSituation */
 			'initial situation blah blah blah', /* sInitialSituation */
 			new SOAPExternalKeySearch(array(new SOAPSearchCondition('id', 1))), /* aCallerDesc */
 			new SOAPExternalKeySearch(array(new SOAPSearchCondition('id', 1))), /* aCallerDesc */
 			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Demo'))), /* aCustomerDesc */
 			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Demo'))), /* aCustomerDesc */
-			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Computers and peripherals'))), /* aServiceDesc */
-			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Troubleshooting'))), /* aServiceSubcategoryDesc */
+			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Telecom and connectivity'))), /* aServiceDesc */
+			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Network Troubleshooting'))), /* aServiceSubcategoryDesc */
 			'sub product of the service', /* sProduct */
 			'sub product of the service', /* sProduct */
 			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Hardware support'))), /* aWorkgroupDesc */
 			new SOAPExternalKeySearch(array(new SOAPSearchCondition('name', 'Hardware support'))), /* aWorkgroupDesc */
 			array(
 			array(
@@ -2817,6 +2817,7 @@ abstract class TestSoap extends TestSoapWebService
 		foreach ($this->m_aTestSpecs as $iPos => $aWebService)
 		foreach ($this->m_aTestSpecs as $iPos => $aWebService)
 		{
 		{
 			echo "<h2>SOAP call #$iPos - {$aWebService['verb']}</h2>\n";
 			echo "<h2>SOAP call #$iPos - {$aWebService['verb']}</h2>\n";
+			echo "<p>Using WSDL: $sWsdlUriForService</p>\n";
 			echo "<p>{$aWebService['explain result']}</p>\n";
 			echo "<p>{$aWebService['explain result']}</p>\n";
 
 
 			$sWsdlUriForService = $sWsdlUri.'?service_category='.$aWebService['service_category'];
 			$sWsdlUriForService = $sWsdlUri.'?service_category='.$aWebService['service_category'];