Throwing exception in Team City Server for exe file

Best practices, code snippets for common functionality, examples, and guidelines.
ravihraj
Posts: 6
Joined: Fri Aug 26, 2016 4:48 pm

Throwing exception in Team City Server for exe file

Post by ravihraj » Tue Oct 04, 2016 10:11 pm

Hi All,

Please help me or suggest to run my test cases in team city server.

I have mapped project exe file to execute in team city server. It is failing to run the test suite.

Below is the error it is throwing when i run it from team city server.

Note: I am attaching the screen shot


[16:00:18]Collecting changes in 1 VCS root

[16:00:19]Clearing temporary directory: D:\BuildAgentSvc2\BuildAgent\temp\buildTmp

[16:00:19]Publishing internal artifacts

[16:00:19]Checkout directory: D:\BuildAgentSvc2\BuildAgent\work\69e2327a3d6db026

[16:00:19]Updating sources: server side checkout (2s)

[16:00:22]Step 1/1: Execute MEDM (Command Line) (6s)

[16:00:22][Step 1/1] Starting: D:\BuildAgentSvc2\BuildAgent\work\69e2327a3d6db026\SCM\RanorexUITests\MEDM\MEDM.exe

[16:00:22][Step 1/1] in directory: D:\BuildAgentSvc2\BuildAgent\work\69e2327a3d6db026

[16:00:22][Step 1/1] Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Ranorex.Core, Version=6.1.0.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a' or one of its dependencies. The system cannot find the file specified.

[16:00:22][Step 1/1] at MEDM.Program.Main(String[] args)

[16:00:29][Step 1/1] Process exited with code 255

[16:00:29][Step 1/1] Step Execute MEDM (Command Line) failed

[16:00:29]Publishing internal artifacts

[16:00:31]Build finished
Attachments
Exception.png
Exception.png (34.95 KiB) Viewed 707 times

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Throwing exception in Team City Server for exe file

Post by krstcs » Wed Oct 05, 2016 2:41 pm

My guess is that you didn't install Ranorex on the agent. The test requires Ranorex be installed.
Shortcuts usually aren't...