Ranorex log from VS from Jenkins
Posted: Fri May 03, 2013 9:12 am
Hi
we are using Jenkins as a system for CI executing mstests inside which I am trying to use ranorex logging (not exactly the way recommended in best practices)
so the code might look like that
when the job is executed in jenkins it fails on ranorex logging providing the following message
do you have any ideas?
thanks,
sop
we are using Jenkins as a system for CI executing mstests inside which I am trying to use ranorex logging (not exactly the way recommended in best practices)
so the code might look like that
Code: Select all
[TestClass]
public class Test1
{
[TestInitialize]
public void MyTestInit()
{
TestReport.Setup(ReportLevel.Debug, @"logsreport.rxlog", true);
TestReport.BeginTestSuite("Testsuite");
}
[TestMethod]
public void TestMethod1()
{
TestReport.BeginTestCase("BeginTestCase");
TestReport.BeginTestModule("Module1");
Report.Debug("start application");
....
}
}
when the job is executed in jenkins it fails on ranorex logging providing the following message
please find the full stack trace in the attachment all the same works fine if executed form Visual studio for example so it must have to do with jenkinsMESSAGE:
Initialization method Ranorex_ExtractionCalculation.ExtractionCalculationTest.MyTestInit threw exception. Ranorex.Core.RanorexCoreException: Ranorex.Core.RanorexCoreException: Failed to load default plugins. Please reinstall Ranorex. ---> Ranorex.Core.RanorexCoreException: Failed to load plugins from assembly 'Ranorex.Plugin.Win32, Version=4.0.2.21666, Culture=neutral, PublicKeyToken=b798506b574ebc9a'. ---> Ranorex.Core.RanorexCoreException: Failed to initialize plugin 'win32'. ---> System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application..
do you have any ideas?
thanks,
sop