Lines Matching refs:this

66         $this->DSN = $interopConfig['DSN'];
67 $this->baseURL = $interopConfig['baseURL'];
70 $this->dbc = DB::connect($this->DSN, true);
72 if (DB::isError($this->dbc)) {
73 echo $this->dbc->getMessage();
74 $this->dbc = NULL;
77 $this->localEndpoint['base'] = (object)array(
79 'endpointURL'=>$this->baseURL.'/server_round2_base.php',
80 'wsdlURL'=>$this->baseURL.'/interop.wsdl.php'
82 $this->localEndpoint['GroupB'] = (object)array(
84 'endpointURL'=>$this->baseURL.'/server_round2_groupB.php',
85 'wsdlURL'=>$this->baseURL.'/interopB.wsdl.php'
87 $this->localEndpoint['GroupC'] = (object)array(
89 'endpointURL'=>$this->baseURL.'/server_round2_groupC.php',
90 'wsdlURL'=>$this->baseURL.'/echoheadersvc.wsdl.php');
94 $this->_getEndpoints($test, 1);
99 if ($this->html) print "<pre>";
102 if ($this->html) print "</pre>";
108 if ($this->localEndpoint[$test]) {
109 array_push($endpointArray, $this->localEndpoint[$test]);
115 $res = $this->dbc->query("update endpoints set status = 0 where class='$test'");
122 if (array_key_exists($v->endpointName,$this->endpoints)) {
123 …$res = $this->dbc->query("update endpoints set endpointURL='{$v->endpointURL}', wsdlURL='{$v->wsdl…
125 …$res = $this->dbc->query("insert into endpoints (endpointName,endpointURL,wsdlURL,class) values('{…
144 $soapclient = new SoapClient($this->interopServer);
146 $this->_fetchEndpoints($soapclient, $test);
148 foreach ($this->tests as $test) {
149 $this->_fetchEndpoints($soapclient, $test);
154 if ($this->html) {
162 $this->currentTest = $test;
163 $x = $this->_getEndpoints($test);
177 if (!$this->_getEndpoints($base, $all)) {
178 return $this->fetchEndpoints($base);
193 $this->endpoints = array();
205 $db_ep = $this->dbc->getAll($sql,NULL, DB_FETCHMODE_ASSOC );
213 $this->endpoints[$entry['endpointName']] = $entry;
216 if (count($this->endpoints) > 0) {
217 $this->currentTest = $base;
231 $this->getEndpoints($test);
235 $results = $this->dbc->getAll($sql,NULL, DB_FETCHMODE_ASSOC );
238 foreach ($this->endpoints as $epn => $epi) {
241 $this->endpoints[$epn]['methods'][$result['function']] = $result;
255 if ($this->nosave) return;
275 "and class='$this->currentTest' and type='$this->paramType' ".
276 "and wsdl=$this->useWSDL and function=".
277 $this->dbc->quote($test_name);
279 $res = $this->dbc->query($sql);
286 "values($endpoint_id,".time().",'$this->currentTest',".
287 "'$this->paramType',$this->useWSDL,".
288 $this->dbc->quote($test_name).",".
289 $this->dbc->quote($success).",".
290 $this->dbc->quote($error).",".
291 ($wire?$this->dbc->quote($wire):"''").")";
293 $res = $this->dbc->query($sql);
326 $val[$k] = $this->decodeSoapval($v);
361 $soap_test->result['class'] = $this->currentTest;
362 $soap_test->result['type'] = $this->paramType;
363 $soap_test->result['wsdl'] = $this->useWSDL;
365 if ($this->useWSDL) {
400 // it's the only one that uses this soapaction, and breaks if
402 if ($this->currentTest == 'base' &&
422 if ($this->useWSDL && !$soap_test->headers && !$soap_test->headers_expect) {
455 … $headers_ok = $this->compareResult($soap_test->headers_expect, $result_headers);
459 $sent_d = $this->decodeSoapval($sent);
470 $ok = $this->compareResult($sent_d,$return, $sent->type);
472 $ok = $this->compareResult($soap_test->expect,$return);
542 $this->getEndpoints($this->currentTest);
544 $this->totals = array();
547 foreach($this->endpoints as $endpoint => $endpoint_info){
550 if ($this->specificEndpoint && $endpoint != $this->specificEndpoint) continue;
551 if ($this->useWSDL && !$endpoint_info['endpointURL']) continue;
554 $this->totals['servers']++;
557 if ($this->show) {
559 if ($this->html) print "<br>\n"; else print "\n";
562 foreach($soap_tests[$this->currentTest] as $soap_test) {
566 if ($soap_test->type != $this->paramType) continue;
569 if ($this->startAt && $this->startAt != $endpoint_info['endpointName']) continue;
570 $this->startAt = '';
573 if (in_array($endpoint, $this->skipEndpointList)) {
588 … if ($this->testMethod && strcmp($this->testMethod,$soap_test->test_name) != 0) continue;
597 $this->totals['fail']++;
600 if ($this->doEndpointMethod($endpoint_info, $soap_test)) {
601 $this->totals['success']++;
606 $this->totals['fail']++;
610 $soap_test->showTestResult($this->debug, $this->html);
611 $this->_saveResults($endpoint_info['id'], $soap_test);
613 $this->totals['calls']++;
615 if ($this->numservers && ++$i >= $this->numservers) break;
622 $this->useWSDL = $usewsdl;
623 foreach($this->paramTypes as $ptype) {
626 $this->paramType = $ptype;
627 $this->doTest();
641 foreach($this->tests as $test) {
642 $this->currentTest = $test;
644 $this->useWSDL = $usewsdl;
645 foreach($this->paramTypes as $ptype) {
648 $this->paramType = $ptype;
649 $this->doTest();
667 $results = $this->dbc->getAll($sql);
677 $methods = $this->getMethodList($this->currentTest);
679 $this->getResults($this->currentTest,$this->paramType,$this->useWSDL);
681 echo "<b>Testing $this->currentTest ";
682 if ($this->useWSDL) echo "using WSDL ";
684 echo "with $this->paramType values</b><br>\n";
687 $this->totals['success'] = 0;
688 $this->totals['fail'] = 0;
689 $this->totals['servers'] = 0; #count($this->endpoints);
690 foreach ($this->endpoints as $endpoint => $endpoint_info) {
692 $this->totals['servers']++;
695 if ($r == 'OK') $this->totals['success']++;
696 else $this->totals['fail']++;
699 unset($this->endpoints[$endpoint]);
702 $this->totals['calls'] = count($methods) * $this->totals['servers'];
704 …echo "\n\n<b>Servers: {$this->totals['servers']} Calls: {$this->totals['calls']} Success: {$this->…
724 foreach ($this->endpoints as $endpoint => $endpoint_info) {
746 if ($this->showFaults && count($faults) > 0) {
759 foreach($this->tests as $test) {
760 $this->currentTest = $test;
762 $this->useWSDL = $usewsdl;
763 foreach($this->paramTypes as $ptype) {
766 $this->paramType = $ptype;
767 $this->outputTable();
774 … $results = $this->dbc->getAll("select * from results where id=$id",NULL, DB_FETCHMODE_ASSOC );
777 if ($this->html) print "<pre>";
779 if ($this->html) print "</pre>";