Bamboo CI Integration: Ranorex dependencies for msbuild

Ranorex Spy, Recorder, and Studio.
lawrence
Posts: 10
Joined: Tue May 09, 2017 4:15 pm

Bamboo CI Integration: Ranorex dependencies for msbuild

Post by lawrence » Fri Oct 13, 2017 1:50 pm

Hi everyone

I'm currently trying to integrate our Ranorex test solution (Ranorex 7.2.0, C#, AUT Java) into our Bamboo CI infrastructure (based on this blogpost: https://www.ranorex.com/blog/bamboo-ci- ... utomation/). So far I've manged to set up a build plan that checks out the the git repo of our Ranorex solution and then tries to use msbuild to build the Ranorex solution:
build_task.PNG
build_task.PNG (45.55 KiB) Viewed 518 times
However, I'm getting this error message:
error.PNG
error.PNG (52.67 KiB) Viewed 518 times
So, from the error log I infer that msbuild on the Bamboo agent is missing the core ranorex libraries. How and where in the Ranorex solution do I tell msbuild to resolve those dependencies?
Or do I have to install Ranorex (or maybe the Ranorex Agent) on the Bamboo agent (however, my idea was to only build the Ranorex solution using the Bamboo Agent and then deploy the bin/release folder to the VM where the Ranorex agent is installed and from where I have access to the latest build of our AUT)

My idea for a solution was as follows, however I'm doing this post because maybe there's a much easier solution (I imagined sth like when you add a dependency to a maven pom file for Java projects...):
Add the relevant dll's manually to a lib folder (to avoid having to add them to the git repo) that I can access from my local env and that can be accessed by the Bamboo agent as well. Then add the path of that folder as a reference path in the Ranorex Project Options.

CI world is confusing :roll:

Any help is appreciated

Many thanks!
/Lawrence

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3921
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Bamboo CI Integration: Ranorex dependencies for msbuild

Post by odklizec » Fri Oct 13, 2017 2:01 pm

Hi,

I'm afraid, you need to install Ranorex on the build server. Check for example this post:
https://www.ranorex.com/forum/ranorex-p ... tml#p28429
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

lawrence
Posts: 10
Joined: Tue May 09, 2017 4:15 pm

Re: Bamboo CI Integration: Ranorex dependencies for msbuild

Post by lawrence » Fri Oct 13, 2017 2:19 pm

Thanks a lot for the quick reply, odklizec. So it seems I need to schedule the build to a time when I’m not working on the tests or get another node locked license for the agent....
odklizec wrote:Hi,

I'm afraid, you need to install Ranorex on the build server. Check for example this post:
https://www.ranorex.com/forum/ranorex-p ... tml#p28429