I am trying to call a Ranorex test cases from a coded UI Test method.
Here's my code:
Code: Select all
public void StartRanorexTestCase(string tc)
{
Directory.SetCurrentDirectory(@"C:\Dlls\");
int error = TestSuiteRunner.Run(typeof(Framework.Program), "/tc:" + tc);
TestContext.AddResultFile("report.rxzlog");
if (error != 0)
throw new RanorexException("Test run failed! See report.rxzlog for further details!");
}
[TestMethod]
public void CodedUITestMethod1()
{
StartRanorexTestCase("SampleTestcase");
}
I have copied all the output files generated from both coded UI and Ranorex solution to a folder "C:\dlls".
How can I ensure that this code
Code: Select all
TestSuiteRunner.Run(typeof(Framework.Program), "/tc:" + tc);
Is there any way that I can force "TestSuiteRunner.Run" to execute the test cases located in " a specific folder". Assuming all the required Ranorex output files are already available in same folder.