Use ranorex remote agent with teamcity?

Ask general questions here.
MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Use ranorex remote agent with teamcity?

Post by MJesper » Tue Mar 26, 2019 2:08 pm

Hi, I'm able to start a ranorex remote agent by using the /agent command line parameter from TeamCity, but whenever I stop a TeamCity build it wont stop the ranorex agent, it will continue running (if I manually stop it). What I want is some sort of communciation between the two where if I stop a TeamCity build I want it to stop in ranorex studio and when I stop it in Ranorex studio I want it to stop in teamcity too.

McTurtle
Posts: 255
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Use ranorex remote agent with teamcity?

Post by McTurtle » Mon Apr 01, 2019 3:11 pm

Hi MJesper,

It's the same with Jenkins. But the issue is not with Ranorex. When you abort a job in Jenkins, then it kills the Ranorex test. When the Ranorex test process is killed, then that process does not have time to send a signal to the agent to stop the test execution. The agent on the other hand does not care what happened to the process that started the job, it just tends to it's job queue.

The issue is probably exactly the same as what is written here: Cancelling build does not cancel tests

IMHO, this is not resolvable by Ranorex devs, but can only be resolved by TeamCity devs.

Regards,
McTurtle