Is there any timeout in remote execution/automation?

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Is there any timeout in remote execution/automation?

Post by aostad »

I get "Remote execution connection failure - check you config" error when executing a test case takes longer time.

I'm pretty sure nothing wrong with the configuration as I can execute another test case with the same set up/configuration. I guess there is a timeout issue. Any idea?
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: Is there any timeout in remote execution/automation?

Post by aostad »

Regardless of what the timeout is set, Test link get disconnected from XMLRPC server after 1 min.
Is there any way to change timeout?
nuuk
TestLink user
Posts: 3
Joined: Fri Apr 27, 2012 7:18 pm

Re: Is there any timeout in remote execution/automation?

Post by nuuk »

Any updates on this topic?
NikoK
TestLink user
Posts: 2
Joined: Fri Apr 27, 2012 8:19 pm

Re: Is there any timeout in remote execution/automation?

Post by NikoK »

I hit the same problem while working on testing automation (Testlink + Robot Framework + Git), PHP's own timeout limit caused that problem in my case. You need to change session.gc_maxlifetime and max_execution_time values in php.ini, which is located in /etc/php5/apache2/ -folder on Linux system. Also if you are using several machines, like Testlink on one computer and testing environment on another, you need to edit php.ini on both machines.
nuuk
TestLink user
Posts: 3
Joined: Fri Apr 27, 2012 7:18 pm

Re: Is there any timeout in remote execution/automation?

Post by nuuk »

It worked, thank you very much!
nuuk
TestLink user
Posts: 3
Joined: Fri Apr 27, 2012 7:18 pm

Re: Is there any timeout in remote execution/automation?

Post by nuuk »

Actually i have to take that previous post back. I modified php.ini on testlink server and now it takes more than 1 minute to timeout but still not enough. My XMLRPC server is running as java servlet in tomcat so I don't have php installed on that server. Does anybody know how I can extend timeout in this situation? Is there timeout setting in servlet web.xml or in xmlrpc?
NikoK
TestLink user
Posts: 2
Joined: Fri Apr 27, 2012 8:19 pm

Re: Is there any timeout in remote execution/automation?

Post by NikoK »

Whoop, same here, got more timeouts. I found a third value from the php.ini that solved the issue, try editing default_socket_timeout in php.ini. This was only needed to be done on the machine that is running Testlink.
Post Reply