at the moment we are working on a solution that integrates Ranorex into our own testing solution, so Ranorex can handle the GUI based testing issues that our software does not support in that detail. Our own testing solution is technically based on the Windows Workflow Foundation, so the plan is to trigger single Ranorex recording modules or other Ranorex API functionality (e.g. validation of a specific control value) on the System Under Test (SUT) within Workflow activities. The recordings are created using the Ranorex Recorder and will be executed remotely by our own testing solution (and not by Ranorex Studio) within our test workflows. It should also be possible to use the Ranorex data binding process, so we can send parameters to a specific recording that are than bound to existing TestVariables within the recording module. So far, so good.
For executing Ranorex recordings (ITestModule instances) a single recording and additional parameters are transferred to the SUT (physically separated from the test execution system). The SUT also hosts the Ranorex API. Here I'm then using Reflection to create an instance of the compiled recording and inspect the members of it (e.g. to set values of certain TestVariables directly without using a separate data source) . This instance is than handed over to the TestModuleRunner of the Ranorex API I use for executing the requested test recording on the SUT. The problem is: what is the best way to do that with the ModuleRunner for that special setup? I already tried the following approaches (module is the ITestModule instance):
Code: Select all
Ranorex.Core.Testing.TestModuleRunner.RunStandalone(module, module.ToString(), true);
Code: Select all
Ranorex.Core.Testing.TestModuleRunner.Run(module);
Do you have a hint or suggestion that helps me finding a solution for our approach (or maybe I should try a different one)? It would be great to be able to execute the recordings and set the values of TestVariables and have a complete logfile indicating the result.
Thanks and best regards,
Andreas Schulze.