Applications stops after splash screen

Ask general questions here.
ElSticky
Posts: 34
Joined: Tue Sep 17, 2013 1:45 pm

Applications stops after splash screen

Post by ElSticky » Tue Sep 17, 2013 1:49 pm

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Applications stops after splash screen

Post by Support Team » Wed Sep 18, 2013 12:35 pm

Hello,

Could you give me more information about the issue please?
Are there any error messages in the report file?

Regards,
Bernhard

ElSticky
Posts: 34
Joined: Tue Sep 17, 2013 1:45 pm

Re: Applications stops after splash screen

Post by ElSticky » Thu Sep 19, 2013 8:57 am

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.

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);
        }

    }
}
With this code it's solved.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Applications stops after splash screen

Post by Support Team » Thu Sep 19, 2013 9:41 am

ElSticky wrote:... and added the path.
You mean that you set the working directory for the RunApplication action, right?

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