Ejemplo n.º 1
0
        public void Edit_Event()
        {
            Add_New_Event();
            TempusSimulatorDemoTest1.Events myrepo2 = new Events();
            myrepo2.TempusProConfigurationUtility.EditButton.Click();
            myrepo2.EditEvent.EditingEventName.Click();
            TestDataFile TestDataFileReader = new TestDataFile();

            TestDataFileReader.TestDataFileReader();
            Ranorex.Keyboard.Press(TestDataFileReader.EditedEventName);
            //Ranorex.Keyboard.Press("Edited");
            myrepo2.EditEvent.OKButton.Click();
            Report.Log(ReportLevel.Success, "Edited Event Name");
        }
Ejemplo n.º 2
0
        public void Add_New_Event()
        {
            bool returned_value;

            new LoadConfig().LoadConfiguration();
            TempusSimulatorDemoTest1.Events myrepo2 = new Events();
            myrepo2.TempusProConfigurationUtility.AddEvent.Click();
            myrepo2.EventEditor.ButtonOK.Click();
            myrepo2.AddEvent.DgName.Code.Click();
            TestDataFile TestDataFileReader = new TestDataFile();

            TestDataFileReader.TestDataFileReader();
            //Ranorex.Keyboard.Press("Test");

            Ranorex.Keyboard.Press(TestDataFileReader.NewEventCode);

            //SendKeys.Send("NewEventCode");
            myrepo2.AddEvent.DgName.EventName.Click();

            Ranorex.Keyboard.Press(TestDataFileReader.NewEventName);
            //Ranorex.Keyboard.Press("NewEvent");
            myrepo2.AddEvent.DgName.OKButton.Click();

            string EventName = myrepo2.TempusProConfigurationUtility.MainDG.NewAddedEvent.ToString();

            //System.Diagnostics.Debug.WriteLine(EventText);
            //Console.WriteLine(EventText);
            returned_value = new CompareAttributes().CompareValidation(EventName, "{Cell:NewEvent}");
            if (returned_value == true)
            {
                Report.Log(ReportLevel.Success, "New Event is added under Assessment Tab");
            }

            //i = new LaunchAndCloseApp().CloseAppWithoutSaving();

            //return i;
        }