I have a solution with different projects and I experienced a problem with executing a test case. In two of the projects where I did not have a test suite with test suite with test cases I could not excute them after creating them. I am not sure if it has something to do with Ranorex 8.3.0 but I only had these problems after updating to 8.3.0.
When I try to execute one of the new test cases the console windows only pops up for a second and closes right away. There is no report or any other error message. I found a Ranorex compressed report (rxzlog-file) within the bin\Debug\ folder with the following error message:
Code: Select all
Test execution fatal crash
Test executable crashed with unhandled exception.
Please ensure all required prerequisites are installed:
- .Net Framework 4.5
- VC++ Redistributable (2017)
For more information visit: https://www.ranorex.com/help/v8.3/xcopy-deployment
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Ranorex.Core.Resolver.MainInvoker.Invoke(Assembly callerAssembly, String startUpObject, String[] args)
bei __RxMain.__RxProgram.Main(String[] args) in D:\5_Ranorex\Base\BaseLibrary\obj\Debug\__RxPrograms.g.cs:Zeile 32.
I tried the "Copy runtime to output"-setting and all the Target CPU settings but nothing helped. I never changed anything in the compiling settings before. I even copied the Ranorex.Core.Resolver.dll into the obj\Debug\ folder but nothing helped. The xcopy-deployment article did not help either as I am not trying to run the test where no Ranorex is installed.
The tests I created in another project but in the same solution before the update to Ranorex 8.3.0 still run.
I have no more ideas what I have to do to make the test run. Can anybody help me, please? Did anybody have the same issue maybe?
Thanks
U