Starting Ranorex as a Process on build server Report error

Class library usage, coding and language questions.
niteshr
Posts: 18
Joined: Fri Jul 11, 2014 7:41 am

Starting Ranorex as a Process on build server Report error

Post by niteshr » Fri Jul 24, 2015 4:03 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Tue Jul 28, 2015 6:44 am

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)
.
Image