I'm experiencing a weird problem with a test started from Jenkins. My Jenkins configuration uses slave machines for building apps under different systems. Jenkins build is smooth and the Ranorex test is started and most of the test works OK. It just fails on one particular code I'm using in my test.
I'm using this code, to check the existence of a file, before using it in the next test step (loading the file via Open File dialog)...
public void Test_File_Exists(string FilePath) { if (! System.IO.File.Exists(@FilePath)) { // skip the iteration in case of missing file throw new RanorexException("File Does not exist!"); } else Report.Log(ReportLevel.Success, "Validation", "File " + FilePath + " exists."); }The code works OK if I run the test project from Rx Studio or a windows command line (even on the Jenkins slave machine). From some mad reasons, exactly the same command line started from Jenkins runs the test, but the above code fails.
Here is a part of Rx log as seen in Jenkins (and Rx log file)...
As I said, the code works OK if the test is started from the Rx studio of manually from the command line. I tried both release and debug version of test. Any idea what to try or where to look? And yes, the files definitely exist[2013/05/28 09:30:30.715][Info ][Test]: Test Case Iteration #10' started.
[2013/05/28 09:30:30.715][Info ][Test]: Test Module 'Load_File_From_CSV' started.
[2013/05/28 09:30:30.871][Info ][Data]: Current variable values:
$SetJTFilePath = '\\krivan\projectmng\test_scenarios\jtmodels\_AFCC7101412.jt', $AUTProcessName = 'java'
[2013/05/28 09:30:30.996][Info ][Mouse]: Mouse Left Click item 'LiteBox3d.FileOpenBtn' at 17;7.
[2013/05/28 09:30:31.449][Error ][Module]: File Does not exist!
[2013/05/28 09:30:31.840][Failure][Test]: Test Module 'Load_File_From_CSV' completed with status 'Failed'.
[2013/05/28 09:30:31.840][Failure][Test]: Test Case Iteration #10 completed with status 'Failed'.

Thank you in advance!