Beispiel #1
0
        static void Main(string[] args)
        {
            string novaPath = @"C:\Program Files (x86)\FOSS\MeatMaster II\FOSS.Nova.UI.Antonius.Core.exe";
            MeatMaster2Functions helper;

            applicationHelpers = new ApplicationHelpers();

            while (true)
            {
                applicationHelpers.StartApplication(novaPath);
                WaitForNovaWindow();
                helper = new MeatMaster2Functions();

                //helper.HandleInstrumentDiagnostic();

                helper.CancelStartup(TimeSpan.FromSeconds(60));
                helper.SelectProduct("Reference");
                helper.ClickStartStopButton();
                helper.WaitForReference();

                helper.ClickApplicationswitchButton();

                applicationHelpers.KillProcess(UiItems.MantaProcessname);
                applicationHelpers.KillProcess(MeatMaster2UiItems.Mm2ProcessName);

                Thread.Sleep(TimeSpan.FromMinutes(5));
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            MeatMaster2Functions functions = new MeatMaster2Functions();

            Random random = new Random();

            //int.Parse(Enumerable.FirstOrDefault<string>((IEnumerable<string>) args) ?? "120");
            while (true)
            {
                int secondsToWait = 3600 + random.Next(7200);
                functions.ClickStartStopButton();
                WaitHelpers.WaitSeconds(secondsToWait);
            }
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            MeatMaster2Functions functions = new MeatMaster2Functions();

            int csCounter = 0;

            while (true)
            {
                csCounter++;
                functions.ClickStartStopButton();
                Functions.logger.LogInfo("Running CS no {0}", csCounter);

                functions.StartAndWaitForCheckSample(25);
            }
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            MeatMaster2Functions helper = new MeatMaster2Functions();
            Logger logger = new Logger();

            int i = 0;

            while (true)
            {
                i++;

                helper.ClickStartStopButton();

                helper.WaitForReference();

                logger.LogInfo($"Reference number {i} done.");

                Thread.Sleep(TimeSpan.FromMinutes(30));
            }
        }