Applications stops after splash screen
Applications stops after splash screen
I'm trying to run my application by using the 'Run application' option in a new recording module. When I run the test the splash screen appears for 1 second but the application doesn't really launch. Any idea why it stops launching the application after the splash screen?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Applications stops after splash screen
Hello,
Could you give me more information about the issue please?
Are there any error messages in the report file?
Regards,
Bernhard
Could you give me more information about the issue please?
Are there any error messages in the report file?
Regards,
Bernhard
Re: Applications stops after splash screen
Hi,
This issue was solved in a meeting with Christian from Ranorex. What he did is transfer the Run Application in to some User Code and added the path.
With this code it's solved.
This issue was solved in a meeting with Christian from Ranorex. What he did is transfer the Run Application in to some User Code and added the path.
Code: Select all
using System.Drawing;
using System.Threading;
using WinForms = System.Windows.Forms;
using Ranorex;
using Ranorex.Core;
using Ranorex.Core.Testing;
namespace app
{
public partial class StartApp
{
/// <summary>
/// This method gets called right after the recording has been started.
/// It can be used to execute recording specific initialization code.
/// </summary>
private void Init()
{
// Your recording specific initialization code goes here.
}
public void StartApp_Run_Application()
{
Report.Log(ReportLevel.Info, "Application", "Run application 'C:\\Program Files\\MyAppFolder\\MyAppFolder\\MyApp.exe' with arguments '' in normal mode.");
Host.Local.RunApplication("C:\\Program Files\\MyAppFolder\\MyAppFolder\\MyApp.exe", "", "C:\\Program Files\\MyAppFolder\\MyApp", false);
}
}
}
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Applications stops after splash screen
You mean that you set the working directory for the RunApplication action, right?ElSticky wrote:... and added the path.
Just for reference: You do not need to convert the RunApplication action to user code, you can also set the working directory from the Recorder UI directly by opening the properties for the action and setting the "Working Directory" property.
Regards,
Alex
Ranorex Team