Page 1 of 1

Starting Ranorex as a Process on build server Report error

Posted: Fri Jul 24, 2015 4:03 pm
by niteshr
Hi Guys,

I am starting ranorex through TFS via a Build server. Here is the code block I am using:

Ranorex.Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;

Process pr = new Process();
ProcessStartInfo prs = new ProcessStartInfo();
prs.WorkingDirectory = @"C:\Builds\UI\bin\Debug\";

prs.Arguments = "/zr /zrf:report_"+tc+".rxzlog /testcase:" + tc;
prs.FileName = @"Banking.UI.Features.exe";
pr.StartInfo = prs;
pr.EnableRaisingEvents = true;
pr.Start();
pr.Exited += p_ExitedFeatures;
pr.WaitForExit();

var ReportName = File.ReadAllLines(@"C:\Builds\UI\bin\Debug\Report.txt").Last();

ReportName = ReportName + ".rxlog";

testContextInstance.AddResultFile(ReportName);

When I run on my local machine the report is generated as expected. When I run via the build server, I see the tmp file being generated, but the process stops there. I can't rename the file with an rxlog extension and open it unfortunately. Please explain to me how I can get past this problem. It is very urgent.

Re: Starting Ranorex as a Process on build server Report error

Posted: Tue Jul 28, 2015 6:44 am
by Support Team
Hi niteshr,

Unfortunately it is hard to analyze this issue. Therefore, may I ask you to provide additional information about your different systems?
Please also let me know which version of Ranorex you are currently using and if it is possible for you to send us your complete solution.

This helps us analyzing the issue directly on our machines.
Thank you in advance.

Regards,
Markus (S)