For Automation configuration, I've followed instructions explained here:
http://www.teamst.org/forum/viewtopic.p ... 35b#p15984
After running "testlink/third_party/user_contribution/fakeRemoteExecServer/client4fakeXMLRPCTestRunner.php"
I get "NULL". Here is what it looks like:
Sample Client to test remote execution
NULL
NULL
NULL
NULL
NULL
Automation
Moderators: Amaradana, TurboPT, TL Developers
Re: Automation
I have problem in configuring testlink to work with xmlrpc. Any help on this is much appreciated.
When I follow the example explained here: http://www.teamst.org/forum/viewtopic.p ... 35b#p15984
By going to http://localhost/testlink/third_party/u ... xecServer/
I get this:
Parent Directory
README.TXT
all_testsuites_remote_fake_exec.xml
client4fakeXMLRPCTestRunner.php
fakeXMLRPCTestRunner.php
By clicking on " client4fakeXMLRPCTestRunner.php", I get this:
Sample Client to test remote execution
array(5) {
["result"]=>
string(0) ""
["notes"]=>
string(0) ""
["scheduled"]=>
string(9) "scheduled"
["timestampISO"]=>
string(0) ""
["status"]=>
string(3) "now"
}
array(4) {
["result"]=>
string(1) "p"
["notes"]=>
string(16) "Test Case PASSED"
["scheduled"]=>
string(3) "now"
["timestampISO"]=>
string(25) "2012-01-04T21:25:48-08:00"
}
array(4) {
["result"]=>
string(1) "b"
["notes"]=>
string(17) "Test Case Blocked"
["scheduled"]=>
string(3) "now"
["timestampISO"]=>
string(25) "2012-01-04T21:25:48-08:00"
}
array(4) {
["result"]=>
string(1) "f"
["notes"]=>
string(16) "Test Case Failed"
["scheduled"]=>
string(3) "now"
["timestampISO"]=>
string(25) "2012-01-04T21:25:48-08:00"
}
array(4) {
["result"]=>
string(0) ""
["notes"]=>
string(33) "Test Case Scheduled for EXECUTION"
["scheduled"]=>
string(9) "scheduled"
["timestampISO"]=>
string(25) "2012-01-11T21:25:48-08:00"
}
When I try to run the example test cases (i.e. sayPassed, sayBlocked, etc.) by clicking on " Execute and Save result" button in execution page of teslink, Iget configuration error:
Remote Test Case Execution Feedback
Remote execution connection failure - check you config
And obviously the test is not executed and result is not updated.
Thanks for any help.
When I follow the example explained here: http://www.teamst.org/forum/viewtopic.p ... 35b#p15984
By going to http://localhost/testlink/third_party/u ... xecServer/
I get this:
Parent Directory
README.TXT
all_testsuites_remote_fake_exec.xml
client4fakeXMLRPCTestRunner.php
fakeXMLRPCTestRunner.php
By clicking on " client4fakeXMLRPCTestRunner.php", I get this:
Sample Client to test remote execution
array(5) {
["result"]=>
string(0) ""
["notes"]=>
string(0) ""
["scheduled"]=>
string(9) "scheduled"
["timestampISO"]=>
string(0) ""
["status"]=>
string(3) "now"
}
array(4) {
["result"]=>
string(1) "p"
["notes"]=>
string(16) "Test Case PASSED"
["scheduled"]=>
string(3) "now"
["timestampISO"]=>
string(25) "2012-01-04T21:25:48-08:00"
}
array(4) {
["result"]=>
string(1) "b"
["notes"]=>
string(17) "Test Case Blocked"
["scheduled"]=>
string(3) "now"
["timestampISO"]=>
string(25) "2012-01-04T21:25:48-08:00"
}
array(4) {
["result"]=>
string(1) "f"
["notes"]=>
string(16) "Test Case Failed"
["scheduled"]=>
string(3) "now"
["timestampISO"]=>
string(25) "2012-01-04T21:25:48-08:00"
}
array(4) {
["result"]=>
string(0) ""
["notes"]=>
string(33) "Test Case Scheduled for EXECUTION"
["scheduled"]=>
string(9) "scheduled"
["timestampISO"]=>
string(25) "2012-01-11T21:25:48-08:00"
}
When I try to run the example test cases (i.e. sayPassed, sayBlocked, etc.) by clicking on " Execute and Save result" button in execution page of teslink, Iget configuration error:
Remote Test Case Execution Feedback
Remote execution connection failure - check you config
And obviously the test is not executed and result is not updated.
Thanks for any help.
Re: Automation
And this is the CF for test case: RE-XMLRPC_url_tcase: localhost:80/testlink/third_party/user_contribution/fakeRemoteExecServer
I put a "echo" in class-IXR.php to print the server. When I run the test from TL or the example mentioned in the document,it prints:
$this->server = localhost
I try to print the parameter in response message by putting a "echo" command here:
function getResponse() {
echo '$this->message->params[0]= '. $this->message->params[0] . '<br>';
// methodResponses can only have one param - return that
return $this->message->params[0];
}
it prints this:
$this->message->params[0]=Array //when run the example in document
$this->message->params[0]= //Param is empty, when run a test from TL
I put a "echo" in class-IXR.php to print the server. When I run the test from TL or the example mentioned in the document,it prints:
$this->server = localhost
I try to print the parameter in response message by putting a "echo" command here:
function getResponse() {
echo '$this->message->params[0]= '. $this->message->params[0] . '<br>';
// methodResponses can only have one param - return that
return $this->message->params[0];
}
it prints this:
$this->message->params[0]=Array //when run the example in document
$this->message->params[0]= //Param is empty, when run a test from TL