Starting Ranorex as a Process on build server Report error
Posted: 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.
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.