[SOLVED] XMLRPC- Execute and Save Results

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

[SOLVED] XMLRPC- Execute and Save Results

Postby sschmeel » Mon Feb 23, 2015 3:58 pm

Hi TestLink Community,

This is a wonderful tool! I have everything configured except the "Execute and Save Results" button under 'Execute Tests.' I cannot correct the output "Remote execution connection failure - check your config". The log files indicate it's a fsockopen problem from class-IXR.php line 530. All the config files look to be configured correctly and I executed 'sudo ./ctlscript.sh restart' to ensure all parameters were refreshed. Could someone please enlighten me on what obvious issue I'm missing so we can keep using this excellent tool?

Thank you very much!,
Suzanna
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Mon Feb 23, 2015 5:16 pm

I actually hard coded in the server ip and path, and then I'm left with error 'Trying to get property of non-object.' I'm guessing hard-coding in not the correct usage, but it works :-D Thanks, Suzanna
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby TurboPT » Tue Feb 24, 2015 4:03 am

Which version of TestLink?

Line 530, in 1.9.13 for me, is here:
Code: Select all
        if (!$fp) {

If that is the same for you, can you add a var_dump() statement, up before the condition at line 525:
Code: Select all
var_dump($this);
        if ($this->timeout) {  // line 525

Please post the output from the var_dump, as I'd like see if there might be some sub-object reference[s] contributing to this matter.
TurboPT
Member of TestLink Community
 
Posts: 339
Joined: Sun Dec 10, 2006 4:51 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Wed Mar 18, 2015 1:07 pm

Hi TurboPT,

OK. I have been around and around trying to get the fakeRemoteExecServer examples working. First, I imported the "all_testsuites_remote_fake_exec" file into my Test Specification. I defined one custom field for the URL which I set as "https://ip.ip.ip.ip/testlink/third_party/user_contribution/fakeRemoteExecServer/fakeXMLRPCTestRunner.php". But, when I go to "Execute Tests" test case "sayPassed" and hit the "Execute and Save Results". I'm still getting, "Remote execution connection failure - check your config". I just cannot determine what is failing with the basic sanity test that you all provide.

Everything else is PERFECT!!! We really want to get this up and running correctly before we move forward with it.

Thanks a lot!!!

Sincerely,
Suzanna
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Wed Mar 18, 2015 1:43 pm

Oh, and version is 1.9.12
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Wed Mar 18, 2015 2:36 pm

Ok. I basically cannot get the "Execute and Save" button to work correctly and cannot find a simple answer in the documentation or posts :) Please help :) We must be missing something minor somewhere.
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby TurboPT » Thu Mar 19, 2015 1:55 am

What PHP version do you have?
TurboPT
Member of TestLink Community
 
Posts: 339
Joined: Sun Dec 10, 2006 4:51 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Fri Mar 20, 2015 2:03 pm

Thanks, Turbo!

It's 5.4.37. I'm trying to get the 'remote_execution_quick_start.txt' configuration corrected. I've crafted a URL as it says in step 5 as follow:
https://192.168.10.6/testlink/third_par ... tsuite=TS1


The result is, however:
Sample Client to test remote execution
Our Fake server will be called using:
http://192.168.10.6:443/testlink/third_ ... Runner.php
Call number 1
Arguments
array(8) {
["testCaseName"]=>
string(7) "My TEST"
["testCaseID"]=>
int(1)
["testCaseVersionID"]=>
int(2)
["testProjectID"]=>
int(11)
["testPlanID"]=>
int(22)
["platformID"]=>
int(33)
["buildID"]=>
int(44)
["executionMode"]=>
string(3) "now"
}

Server response:
NULL

Call number 2
Arguments
array(8) {
["testCaseName"]=>
string(9) "sayPassed"
["testCaseID"]=>
int(1)
["testCaseVersionID"]=>
int(2)
["testProjectID"]=>
int(11)
["testPlanID"]=>
int(22)
["platformID"]=>
int(33)
["buildID"]=>
int(44)
["executionMode"]=>
string(3) "now"
}

Server response:
NULL
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Fri Mar 20, 2015 3:15 pm

Hi Turbo, I got the sample working. Turned out the php file did not require parameters. I guess that was what was bugging me. I also had to fix a https vs http:...:443 file. Suzanna
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am

Re: XMLRPC- Execute and Save Results

Postby sschmeel » Fri Mar 20, 2015 5:24 pm

Thanks, Turbo!!

I got the example working with the "Execute and Save" button by creating a "Custom Field" "RE-XMLRPC_url_link" in each test case specification as specified in the documentation. The item I finally diagnosed was using the url https://192.168.10.6/testlink/third_par ... Runner.php as it turned out apache was rejecting http://192.168.10.6:443/....
sschmeel
TestLink user
 
Posts: 8
Joined: Sun Feb 22, 2015 8:39 am


Return to Installation and configuration



Who is online

Users browsing this forum: No registered users and 3 guests

cron