遅延器。
Inheritance: IFilter
        public DelayPanel(Delay aDelay)
        {
            mDelay = aDelay;
            InitializeComponent();

            BackColor = SystemColors.Control;
        }
Ejemplo n.º 2
0
        public void PipesDataUsingOfFromFirstToSecond()
        {
            var first = new SimpleMovingAverage(2);
            var second = new Delay(1);
            
            // this is a configuration step, but returns the reference to the second for method chaining
            second.Of(first);

            var data1 = new IndicatorDataPoint(DateTime.UtcNow, 1m);
            var data2 = new IndicatorDataPoint(DateTime.UtcNow, 2m);
            var data3 = new IndicatorDataPoint(DateTime.UtcNow, 3m);
            var data4 = new IndicatorDataPoint(DateTime.UtcNow, 4m);

            // sma has one item
            first.Update(data1);
            Assert.IsFalse(first.IsReady);
            Assert.AreEqual(0m, second.Current.Value);

            // sma is ready, delay will repeat this value
            first.Update(data2);
            Assert.IsTrue(first.IsReady);
            Assert.IsFalse(second.IsReady);
            Assert.AreEqual(1.5m, second.Current.Value);

            // delay is ready, and repeats its first input
            first.Update(data3);
            Assert.IsTrue(second.IsReady);
            Assert.AreEqual(1.5m, second.Current.Value);

            // now getting the delayed data
            first.Update(data4);
            Assert.AreEqual(2.5m, second.Current.Value);
        }
Ejemplo n.º 3
0
        public void MultiChain()
        {
            var identity = new Identity("identity");
            var sma = new SimpleMovingAverage(2);
            var delay = new Delay(2);

            // create the SMA of the delay of the identity
            sma.Of(delay.Of(identity));

            identity.Update(DateTime.UtcNow, 1m);
            Assert.IsTrue(identity.IsReady);
            Assert.IsFalse(delay.IsReady);
            Assert.IsFalse(sma.IsReady);

            identity.Update(DateTime.UtcNow, 2m);
            Assert.IsTrue(identity.IsReady);
            Assert.IsFalse(delay.IsReady);
            Assert.IsFalse(sma.IsReady);

            identity.Update(DateTime.UtcNow, 3m);
            Assert.IsTrue(identity.IsReady);
            Assert.IsTrue(delay.IsReady);
            Assert.IsFalse(sma.IsReady);

            identity.Update(DateTime.UtcNow, 4m);
            Assert.IsTrue(identity.IsReady);
            Assert.IsTrue(delay.IsReady);
            Assert.IsTrue(sma.IsReady);

            Assert.AreEqual(1.5m, sma);
        }
Ejemplo n.º 4
0
        public void CompositeIsReadyWhenBothAre()
        {
            var left = new Delay(1);
            var right = new Delay(2);
            var composite = new CompositeIndicator<IndicatorDataPoint>(left, right, (l, r) => l + r);

            left.Update(DateTime.Today.AddSeconds(0), 1m);
            right.Update(DateTime.Today.AddSeconds(0), 1m);
            Assert.IsFalse(composite.IsReady);
            Assert.IsFalse(composite.Left.IsReady);
            Assert.IsFalse(composite.Right.IsReady);

            left.Update(DateTime.Today.AddSeconds(1), 2m);
            right.Update(DateTime.Today.AddSeconds(1), 2m);
            Assert.IsFalse(composite.IsReady);
            Assert.IsTrue(composite.Left.IsReady);
            Assert.IsFalse(composite.Right.IsReady);

            left.Update(DateTime.Today.AddSeconds(2), 3m);
            right.Update(DateTime.Today.AddSeconds(2), 3m);
            Assert.IsTrue(composite.IsReady);
            Assert.IsTrue(composite.Left.IsReady);
            Assert.IsTrue(composite.Right.IsReady);

            left.Update(DateTime.Today.AddSeconds(3), 4m);
            right.Update(DateTime.Today.AddSeconds(3), 4m);
            Assert.IsTrue(composite.IsReady);
            Assert.IsTrue(composite.Left.IsReady);
            Assert.IsTrue(composite.Right.IsReady);
        }
        /// <summary>
        /// Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized.
        /// </summary>
        /// <seealso cref="QCAlgorithm.SetStartDate(System.DateTime)"/>
        /// <seealso cref="QCAlgorithm.SetEndDate(System.DateTime)"/>
        /// <seealso cref="QCAlgorithm.SetCash(decimal)"/>
        public override void Initialize()
        {
            SetStartDate(2009, 01, 01);
            SetEndDate(2015, 01, 01);

            AddSecurity(SecurityType.Equity, Symbol, Resolution.Minute);

            int count = 6;
            int offset = 5;
            int period = 15;

            // define our sma as the base of the ribbon
            var sma = new SimpleMovingAverage(period);

            _ribbon = Enumerable.Range(0, count).Select(x =>
            {
                // define our offset to the zero sma, these various offsets will create our 'displaced' ribbon
                var delay = new Delay(offset*(x+1));

                // define an indicator that takes the output of the sma and pipes it into our delay indicator
                var delayedSma = delay.Of(sma);

                // register our new 'delayedSma' for automaic updates on a daily resolution
                RegisterIndicator(Symbol, delayedSma, Resolution.Daily, data => data.Value);

                return delayedSma;
            }).ToArray();
        }
Ejemplo n.º 6
0
 private Delay CreateDelayInternal(int delayMS, bool startRightNow = false)
 {
     var newDelay = new Delay(delayMS, startRightNow);
     Debug.Assert(delays != null);
     delays.Add(newDelay);
     return newDelay;
 }
Ejemplo n.º 7
0
        public void PipesDataUsingOfFromFirstToSecond()
        {
            var first = new SimpleMovingAverage(2);
            var second = new Delay(1);
            var sequential = second.Of(first);

            TestPipesData(sequential);
        }
Ejemplo n.º 8
0
        public void PipesDataFromFirstToSecond()
        {
            var first = new SimpleMovingAverage(2);
            var second = new Delay(1);
            var sequential = new SequentialIndicator<IndicatorDataPoint>(first, second);

            TestPipesData(sequential);
        }
Ejemplo n.º 9
0
 public void DelayForceDelayedObject()
 {
     FakeFn fn = new FakeFn();
     Delay delay = new Delay(fn);
     Assert.AreEqual(1, Delay.Force(delay));
     Assert.AreEqual(1, Delay.Force(delay));
     Assert.AreEqual(1, fn.Counter);
 }
Ejemplo n.º 10
0
	public object Clone()
	{
		Delay d = new Delay(this.buf.Count);
		for (int i = 0; i < this.buf.Count; ++i)
		{
			d.GetValue(this.buf[i]);
		}
		return d;
	}
Ejemplo n.º 11
0
 private void TestDelayTakesPeriodPlus2UpdatesToEmitNonInitialPoint(int period)
 {
     var delay = new Delay(period);
     for (int i = 0; i < period + 2; i++)
     {
         Assert.AreEqual(0m, delay.Current.Value);
         delay.Update(new IndicatorDataPoint(DateTime.Today.AddSeconds(i), i));
     }
     Assert.AreEqual(1m, delay.Current.Value);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// 设置间隔
 /// </summary>
 /// <param name="targetGo">需要绑定此脚本的对象</param>
 /// <param name="millisecond">毫秒数</param>
 /// <param name="delayCompleteHandler">回调</param>
 /// <param name="autoDestroy">是否在结束时销毁脚本</param>
 /// <param name="param">需要在回调函数中获取的参数</param>
 /// <returns></returns>
 public static void setDelay(GameObject targetGo, 
                             float millisecond, 
                             DelayCompleteHandler delayCompleteHandler, 
                             bool autoDestroy = true, 
                             System.Object param = null)
 {
     if (targetGo == null) return;
     Delay.delay = targetGo.GetComponent<Delay>();
     if (Delay.delay == null) Delay.delay = targetGo.AddComponent<Delay>();
     Delay.isComplete = false;
     Delay.millisecond = millisecond;
     Delay.delayCompleteHandler = delayCompleteHandler;
     Delay.autoDestroy = autoDestroy;
     Delay.param = param;
 }
Ejemplo n.º 13
0
        public void ResetsProperly()
        {
            var delay = new Delay(2);

            foreach (var data in TestHelper.GetDataStream(3))
            {
                delay.Update(data);
            }
            Assert.IsTrue(delay.IsReady);
            Assert.AreEqual(3, delay.Samples);

            delay.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(delay);
        }
Ejemplo n.º 14
0
        public ScrolledView()
            : base()
        {
            scroll = new ScrolledWindow  (null, null);
            this.Put (scroll, 0, 0);
            scroll.Show ();

            //ebox = new BlendBox ();
            ebox = new EventBox ();
            this.Put (ebox, 0, 0);
            ebox.ShowAll ();

            hide = new Delay (2000, new GLib.IdleHandler (HideControls));
            this.Destroyed += HandleDestroyed;
        }
Ejemplo n.º 15
0
        public void DelayOneRepeatsFirstInputValue()
        {
            var delay = new Delay(1);

            var data = new IndicatorDataPoint(DateTime.UtcNow, 1m);
            delay.Update(data);
            Assert.AreEqual(1m, delay.Current.Value);

            data = new IndicatorDataPoint(DateTime.UtcNow.AddSeconds(1), 2m);
            delay.Update(data);
            Assert.AreEqual(1m, delay.Current.Value);

            data = new IndicatorDataPoint(DateTime.UtcNow.AddSeconds(1), 2m);
            delay.Update(data);
            Assert.AreEqual(2m, delay.Current.Value);
        }
Ejemplo n.º 16
0
 void FixedUpdate()
 {
     if (Delay.isComplete) return;
     Delay.millisecond -= Time.deltaTime * 1000;
     if (Delay.millisecond <= 0)
     {
         Delay.isComplete = true;
         Delay.millisecond = 0;
         if (Delay.delayCompleteHandler != null)
             Delay.delayCompleteHandler.Invoke(Delay.param);
         if (Delay.autoDestroy)
         {
             //销毁
             GameObject.Destroy(Delay.delay);
             Delay.delay = null;
         }
     }
 }
Ejemplo n.º 17
0
        public void ResetsProperly()
        {
            var first = new Delay(1);
            var second = new Delay(1);
            var sequential = new SequentialIndicator<IndicatorDataPoint>(first, second);

            foreach (var data in TestHelper.GetDataStream(3))
            {
                sequential.Update(data);
            }
            Assert.IsTrue(first.IsReady);
            Assert.IsTrue(second.IsReady);
            Assert.IsTrue(sequential.IsReady);

            sequential.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(first);
            TestHelper.AssertIndicatorIsInDefaultState(second);
            TestHelper.AssertIndicatorIsInDefaultState(sequential);
        }
Ejemplo n.º 18
0
        public void DelayDereference()
        {
            FakeFn fn = new FakeFn();

            Delay delay = new Delay(fn);

            Assert.AreEqual(0, fn.Counter);

            object result = delay.Dereference();

            Assert.AreEqual(1, result);

            object result2 = delay.Dereference();

            Assert.AreEqual(1, result);
            Assert.AreEqual(1, fn.Counter);

            fn.Invoke();

            Assert.AreEqual(2, fn.Counter);
        }
Ejemplo n.º 19
0
        public void ComputesCorrectly()
        {
            var delay = new Delay(3);
            var sma = new SimpleMovingAverage(3);
            var momp = new MomentumPercent(3);
            foreach (var data in TestHelper.GetDataStream(4))
            {
                delay.Update(data);
                sma.Update(data);
                momp.Update(data);

                if (sma == 0m)
                {
                    Assert.AreEqual(0m, momp.Current.Value);
                }
                else
                {
                    decimal abs = data - delay;
                    decimal perc = abs / sma;
                    Assert.AreEqual(perc, momp.Current.Value);
                }
            }
        }
Ejemplo n.º 20
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            //Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://*****:*****@gurock.io' with focus on 'LoginTestRail.Name'.", repo.LoginTestRail.NameInfo, new RecordItemIndex(2));
            repo.LoginTestRail.Name.PressKeys("*****@*****.**");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'LoginTestRail.Password' at 129;16.", repo.LoginTestRail.PasswordInfo, new RecordItemIndex(3));
            repo.LoginTestRail.Password.Click("129;16");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'testrail123' with focus on 'LoginTestRail.Password'.", repo.LoginTestRail.PasswordInfo, new RecordItemIndex(4));
            repo.LoginTestRail.Password.PressKeys("testrail123");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}'.", new RecordItemIndex(5));
            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Automated Test') on item 'LoginTestRail.AutomatedTest'.", repo.LoginTestRail.AutomatedTestInfo, new RecordItemIndex(6));
            Validate.Attribute(repo.LoginTestRail.AutomatedTestInfo, "InnerText", "Automated Test");
            Delay.Milliseconds(100);
        }
Ejemplo n.º 21
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.FirstName' at Center.", repo.ApplicationUnderTest.FirstNameInfo, new RecordItemIndex(0));
            repo.ApplicationUnderTest.FirstName.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$varFirstName' with focus on 'ApplicationUnderTest.FirstName'.", repo.ApplicationUnderTest.FirstNameInfo, new RecordItemIndex(1));
            repo.ApplicationUnderTest.FirstName.PressKeys(varFirstName);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.LastName' at Center.", repo.ApplicationUnderTest.LastNameInfo, new RecordItemIndex(2));
            repo.ApplicationUnderTest.LastName.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$varLastName' with focus on 'ApplicationUnderTest.LastName'.", repo.ApplicationUnderTest.LastNameInfo, new RecordItemIndex(3));
            repo.ApplicationUnderTest.LastName.PressKeys(varLastName);
            Delay.Milliseconds(0);
        }
Ejemplo n.º 22
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Right Click item 'MainForm.NewTitle' at 68;11.", repo.MainForm.NewTitleInfo, new RecordItemIndex(0));
            repo.MainForm.NewTitle.Click(System.Windows.Forms.MouseButtons.Right, "68;11");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MCtxPwList.DeleteEntry' at 92;12.", repo.MCtxPwList.DeleteEntryInfo, new RecordItemIndex(1));
            repo.MCtxPwList.DeleteEntry.Click("92;12");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'KeePass.ButtonDelete' at 13;9.", repo.KeePass.ButtonDeleteInfo, new RecordItemIndex(2));
            repo.KeePass.ButtonDelete.Click("13;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainForm.Save' at 12;13.", repo.MainForm.SaveInfo, new RecordItemIndex(3));
            repo.MainForm.Save.Click("12;13");
            Delay.Milliseconds(200);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls'.", repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.SelfInfo, new RecordItemIndex(0));
            Validate.Attribute(repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.SelfInfo, "Visible", "True");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Combobox_FoundUSBDevices'.", repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Combobox_FoundUSBDevicesInfo, new RecordItemIndex(1));
            Validate.Attribute(repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Combobox_FoundUSBDevicesInfo, "Visible", "True");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Text_StartAdress'.", repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Text_StartAdressInfo, new RecordItemIndex(2));
            Validate.Attribute(repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Text_StartAdressInfo, "Visible", "True");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Text_EndAdress'.", repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Text_EndAdressInfo, new RecordItemIndex(3));
            Validate.Attribute(repo.DeviceCare.ApplicationArea.Page_Assistant.CommDTMConfigurationPages.OwnConfigurationControls.HARTCommunicationDTM.Text_EndAdressInfo, "Visible", "True");
            Delay.Milliseconds(0);
        }
Ejemplo n.º 24
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmMain.NewOrders' at 46;19.", repo.FrmMain.NewOrdersInfo, new RecordItemIndex(0));
            repo.FrmMain.NewOrders.Click("46;19");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmMain.ReleaseRow0' at 32;11.", repo.FrmMain.ReleaseRow0Info, new RecordItemIndex(1));
            repo.FrmMain.ReleaseRow0.Click("32;11");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'GenesisAutomation1.ButtonYes'.", repo.GenesisAutomation1.ButtonYesInfo, new RecordItemIndex(2));
            Validate.Exists(repo.GenesisAutomation1.ButtonYesInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'GenesisAutomation1.ButtonYes' at 34;12.", repo.GenesisAutomation1.ButtonYesInfo, new RecordItemIndex(3));
            repo.GenesisAutomation1.ButtonYes.Click("34;12");
            Delay.Milliseconds(0);
        }
Ejemplo n.º 25
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 30;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Save Draft
            Report.Log(ReportLevel.Info, "Section", "Save Draft", new RecordItemIndex(0));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.SaveDraft' at 63;21.", repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.SaveDraftInfo, new RecordItemIndex(1));
            repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.SaveDraft.Click("63;21");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(2));
            Delay.Duration(5000, false);

            // Submit
            Report.Log(ReportLevel.Info, "Section", "Submit", new RecordItemIndex(3));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.FO_Number' at 214;22.", repo.Login1.FO_NumberInfo, new RecordItemIndex(4));
            repo.Login1.FO_Number.Click("214;22");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{LShiftKey down}{Tab}{LShiftKey up}{Return}' with focus on 'Login1.FO_Number'.", repo.Login1.FO_NumberInfo, new RecordItemIndex(5));
            repo.Login1.FO_Number.PressKeys("{LShiftKey down}{Tab}{LShiftKey up}{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(6));
            Delay.Duration(500, false);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{enter}'.", new RecordItemIndex(7));
            Keyboard.Press("{enter}");
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'IncidentForm.mn_status' at Center.", repo.IncidentForm.mn_statusInfo, new RecordItemIndex(0));
            repo.IncidentForm.mn_status.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Down}{Down}{Down}{Down}{Down}{Return}' with focus on 'IncidentForm.mn_status'.", repo.IncidentForm.mn_statusInfo, new RecordItemIndex(1));
            repo.IncidentForm.mn_status.PressKeys("{Down}{Down}{Down}{Down}{Down}{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'IncidentForm.mn_statusReason' at Center.", repo.IncidentForm.mn_statusReasonInfo, new RecordItemIndex(2));
            repo.IncidentForm.mn_statusReason.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Down}{Down}{Down}{Return}' with focus on 'IncidentForm.mn_statusReason'.", repo.IncidentForm.mn_statusReasonInfo, new RecordItemIndex(3));
            repo.IncidentForm.mn_statusReason.PressKeys("{Down}{Down}{Down}{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'IncidentForm.txt_INC_Resolution' at Center.", repo.IncidentForm.txt_INC_ResolutionInfo, new RecordItemIndex(4));
            repo.IncidentForm.txt_INC_Resolution.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ResolveOriginalIncident' with focus on 'IncidentForm.txt_INC_Resolution'.", repo.IncidentForm.txt_INC_ResolutionInfo, new RecordItemIndex(5));
            repo.IncidentForm.txt_INC_Resolution.PressKeys("ResolveOriginalIncident");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'IncidentForm.btn_save' at Center.", repo.IncidentForm.btn_saveInfo, new RecordItemIndex(6));
            repo.IncidentForm.btn_save.Click();
            Delay.Milliseconds(0);
        }
Ejemplo n.º 27
0
        async void SmsSendBtn_OnClicked(object sender, EventArgs e)
        {
            var smsSender = DependencyService.Get <ISms>();

            if (smsSender != null)
            {
                delay    = new Delay();
                _delayDb = new DelayDB();

                //Hämtar senaste inknappade delayen i db:n
                double DBlatestDelay = _delayDb.GetDelays(delay.TimeDelay);

                //Gör om från double till int
                int latestDelay = Convert.ToInt32(DBlatestDelay);


                //Sätter den senaste inknappade delayen som nu är en int och väntar antal inknappade minuter
                await Task.Delay(latestDelay);

                //TimerLabel.Text = timer.ToString();
                smsSender.SendSms(SspNumberEntry.Text);
                smsSender.SendSmsMsg(MsgEntry.Text);
            }
        }
Ejemplo n.º 28
0
 void Start()
 {
     delay = new Delay ((int)(1000/frequency));
     cam = GetComponent<CameraController>().cam.transform;
 }
Ejemplo n.º 29
0
    void Start()
    {
        spawnPosition = transform.position;
        spawnRotation = transform.rotation.eulerAngles;

        rigidbody = GetComponent<Rigidbody2D>();

        if (shadowPrefab)
        {
            shadow = Instantiate(shadowPrefab);
        }

        if (isAIControlled)
        {
            maxVelocity = AIDifficulty.AIPlayerVelocity;
            AIPanicChance = AIDifficulty.AIPlayerPanicChance;
            AIReactionDelay = DelayManager.CreateDelay(
                                    AIDifficulty.AIPlayerReactionDelayMS,
                                    true);
            Debug.Assert(AIReactionDelay != null);
        }
        gameMain = Camera.main.GetComponent<GameMain>();
        Debug.Assert(gameMain);
    }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 30;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Header
            Report.Log(ReportLevel.Info, "Section", "Header", new RecordItemIndex(0));

            // Apply
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nApply\r\nValidating AttributeEqual (InnerText=' Apply ') on item 'Login1.NavNavbarNavSamsNavbarNav.ATagApply'.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagApplyInfo, new RecordItemIndex(1));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.ATagApplyInfo, "InnerText", " Apply ", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(1)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagApply' at 93;58.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagApplyInfo, new RecordItemIndex(2));
            repo.Login1.NavNavbarNavSamsNavbarNav.ATagApply.Click("93;58");
            Delay.Milliseconds(200);

            // Funding Opportunity
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nFunding Opportunity\r\nValidating AttributeEqual (InnerText='Funding Opportunities') on item 'Login1.NavNavbarNavSamsNavbarNav.FundingOpportunities1'.", repo.Login1.NavNavbarNavSamsNavbarNav.FundingOpportunities1Info, new RecordItemIndex(3));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.FundingOpportunities1Info, "InnerText", "Funding Opportunities", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(3)); }

            // Navigate to Grants.gov
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nNavigate to Grants.gov\r\nValidating AttributeEqual (InnerText='Navigate to Grants.gov') on item 'Login1.NavNavbarNavSamsNavbarNav.NavigateToGrantsGov'.", repo.Login1.NavNavbarNavSamsNavbarNav.NavigateToGrantsGovInfo, new RecordItemIndex(4));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.NavigateToGrantsGovInfo, "InnerText", "Navigate to Grants.gov", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }

            // About the Process
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nAbout the Process\r\nValidating AttributeEqual (InnerText='About the Process') on item 'Login1.NavNavbarNavSamsNavbarNav.AboutTheProcess'.", repo.Login1.NavNavbarNavSamsNavbarNav.AboutTheProcessInfo, new RecordItemIndex(5));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.AboutTheProcessInfo, "InnerText", "About the Process", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); }

            // Apply Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(6));

            // Funding Opportunity
            Report.Log(ReportLevel.Info, "Section", "Funding Opportunity", new RecordItemIndex(7));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.FundingOpportunities1' at 92;18.", repo.Login1.NavNavbarNavSamsNavbarNav.FundingOpportunities1Info, new RecordItemIndex(8));
            repo.Login1.NavNavbarNavSamsNavbarNav.FundingOpportunities1.Click("92;18");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(9));
            repo.Login1.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (InnerText='Funding Opportunities') on item 'Login1.FormInlinePanelHeading.FundingOpportunities'.", repo.Login1.FormInlinePanelHeading.FundingOpportunitiesInfo, new RecordItemIndex(10));
                Validate.AttributeEqual(repo.Login1.FormInlinePanelHeading.FundingOpportunitiesInfo, "InnerText", "Funding Opportunities", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(10)); }

            // Funding Opportunity Table
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(11));

            // Home Button
            Report.Log(ReportLevel.Info, "Mouse", "Home Button\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.HOME' at 12;9.", repo.Login1.NavNavbarNavSamsNavbarNav.HOMEInfo, new RecordItemIndex(12));
            repo.Login1.NavNavbarNavSamsNavbarNav.HOME.Click("12;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'InnerText' to equal the specified value $OSDS_Grantee_WM. Associated repository item: 'Login1.HiRossGeller'", repo.Login1.HiRossGellerInfo, new RecordItemIndex(13));
            repo.Login1.HiRossGellerInfo.WaitForAttributeEqual(5000, "InnerText", OSDS_Grantee_WM);

            // Navigate to Grants.gov
            Report.Log(ReportLevel.Info, "Section", "Navigate to Grants.gov", new RecordItemIndex(14));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagApply' at 93;58.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagApplyInfo, new RecordItemIndex(15));
            repo.Login1.NavNavbarNavSamsNavbarNav.ATagApply.Click("93;58");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.NavigateToGrantsGov' at 112;14.", repo.Login1.NavNavbarNavSamsNavbarNav.NavigateToGrantsGovInfo, new RecordItemIndex(16));
            repo.Login1.NavNavbarNavSamsNavbarNav.NavigateToGrantsGov.Click("112;14");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'HomeGRANTSGOV'.", repo.HomeGRANTSGOV.SelfInfo, new RecordItemIndex(17));
            repo.HomeGRANTSGOV.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (Src='https://training.grants.gov/o/grants-blue-theme/images/grants/grants-gov-logo.png') on item 'HomeGRANTSGOV.GRANTSGOV'.", repo.HomeGRANTSGOV.GRANTSGOVInfo, new RecordItemIndex(18));
                Validate.AttributeEqual(repo.HomeGRANTSGOV.GRANTSGOVInfo, "Src", "https://training.grants.gov/o/grants-blue-theme/images/grants/grants-gov-logo.png", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(18)); }

            // Grants.gov Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(19));

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Ctrl+W' Press with focus on 'HomeGRANTSGOV'.", repo.HomeGRANTSGOV.SelfInfo, new RecordItemIndex(20));
            Keyboard.PrepareFocus(repo.HomeGRANTSGOV.Self);
            Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, Keyboard.DefaultScanCode, 100, 1, true);
            Delay.Milliseconds(0);

            // About the Process
            Report.Log(ReportLevel.Info, "Section", "About the Process", new RecordItemIndex(21));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagApply' at 72;58.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagApplyInfo, new RecordItemIndex(22));
            repo.Login1.NavNavbarNavSamsNavbarNav.ATagApply.Click("72;58");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.AboutTheProcess' at 100;21.", repo.Login1.NavNavbarNavSamsNavbarNav.AboutTheProcessInfo, new RecordItemIndex(23));
            repo.Login1.NavNavbarNavSamsNavbarNav.AboutTheProcess.Click("100;21");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(24));
            repo.Login1.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='About the Process') on item 'Login1.AboutTheProcess'.", repo.Login1.AboutTheProcessInfo, new RecordItemIndex(25));
            Validate.AttributeEqual(repo.Login1.AboutTheProcessInfo, "InnerText", "About the Process");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(26));
            repo.Login1.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            // About the Process Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(27));

            // Home Button
            Report.Log(ReportLevel.Info, "Mouse", "Home Button\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.HOME' at 12;9.", repo.Login1.NavNavbarNavSamsNavbarNav.HOMEInfo, new RecordItemIndex(28));
            repo.Login1.NavNavbarNavSamsNavbarNav.HOME.Click("12;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'InnerText' to equal the specified value $OSDS_Grantee_WM. Associated repository item: 'Login1.HiRossGeller'", repo.Login1.HiRossGellerInfo, new RecordItemIndex(29));
            repo.Login1.HiRossGellerInfo.WaitForAttributeEqual(5000, "InnerText", OSDS_Grantee_WM);
        }
Ejemplo n.º 31
0
 private PublicFutures()
 {
     request = Delay.GetInstance(delay);
     request.Run();
 }
Ejemplo n.º 32
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor = 1.00;

            Init();

            //Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://www.hearyourway.com/wps/wcm/connect/uk/n7/home' with browser 'chrome' in normal mode.", new RecordItemIndex(0));
            //Host.Current.OpenBrowser("http://www.hearyourway.com/wps/wcm/connect/uk/n7/home", "chrome", "", false, false, false, false, false);
            //Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Parent'.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo, new RecordItemIndex(1));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Parent' at 32;8.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo, new RecordItemIndex(2));
            repo.CochlearImplantSoundProcessorNucleus.UtilityNav.Parent.Click("32;8");
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Parent'.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo, new RecordItemIndex(3));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='http://www.hearyourway.com/wps/wcm/connect/22a81311-55b3-4d08-8166-4c1ea6846a3f/logo.svg?MOD=AJPERES&CACHEID=ROOTWORKSPACE-22a81311-55b3-4d08-8166-4c1ea6846a3f-lA0xVqM') on item 'CochlearImplantSoundProcessorNucleus.HttpWwwHearyourwayComWpsWcmConne'.", repo.CochlearImplantSoundProcessorNucleus.HttpWwwHearyourwayComWpsWcmConneInfo, new RecordItemIndex(4));
            Validate.AttributeEqual(repo.CochlearImplantSoundProcessorNucleus.HttpWwwHearyourwayComWpsWcmConneInfo, "Src", "http://www.hearyourway.com/wps/wcm/connect/22a81311-55b3-4d08-8166-4c1ea6846a3f/logo.svg?MOD=AJPERES&CACHEID=ROOTWORKSPACE-22a81311-55b3-4d08-8166-4c1ea6846a3f-lA0xVqM");
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.DownloadBrochure'.", repo.CochlearImplantSoundProcessorNucleus.DownloadBrochureInfo, new RecordItemIndex(5));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.DownloadBrochureInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ClinicFinder'.", repo.CochlearImplantSoundProcessorNucleus.ClinicFinderInfo, new RecordItemIndex(6));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ClinicFinderInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Adult'.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.AdultInfo, new RecordItemIndex(7));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.UtilityNav.AdultInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Parent'.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo, new RecordItemIndex(8));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Upgrade'.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.UpgradeInfo, new RecordItemIndex(9));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.UtilityNav.UpgradeInfo);
            Delay.Milliseconds(100);
            
            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='http://www.hearyourway.com/wps/wcm/connect/4e5417fe-94fd-44ab-b2ad-38288b434dbd/en_microsite_n7_tagline_hearyourway_1024x177.png?MOD=AJPERES&CACHEID=ROOTWORKSPACE-4e5417fe-94fd-44ab-b2ad-38288b434dbd-m157LsM') on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.HttpWwwHearyourwayComWpsWcmConne'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.HttpWwwHearyourwayComWpsWcmConneInfo, new RecordItemIndex(10));
            //Validate.AttributeEqual(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.HttpWwwHearyourwayComWpsWcmConneInfo, "Src", "http://www.hearyourway.com/wps/wcm/connect/4e5417fe-94fd-44ab-b2ad-38288b434dbd/en_microsite_n7_tagline_hearyourway_1024x177.png?MOD=AJPERES&CACHEID=ROOTWORKSPACE-4e5417fe-94fd-44ab-b2ad-38288b434dbd-m157LsM");
            //Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.MeetNucleus7TheWorldsFirstAndOnl'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.MeetNucleus7TheWorldsFirstAndOnlInfo, new RecordItemIndex(11));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.MeetNucleus7TheWorldsFirstAndOnlInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.Nucleus7CombinesProvenHearingPerfor'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.Nucleus7CombinesProvenHearingPerforInfo, new RecordItemIndex(12));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.Nucleus7CombinesProvenHearingPerforInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'CochlearImplantSoundProcessorNucleus.FluidContainer.FaFaAngleDownButton' at 36;22.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.FaFaAngleDownButtonInfo, new RecordItemIndex(13));
            repo.CochlearImplantSoundProcessorNucleus.FluidContainer.FaFaAngleDownButton.Click("36;22");
            Delay.Milliseconds(200);
            
            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='http://www.hearyourway.com/wps/wcm/connect/0d2feb8e-b3a1-430c-a4b2-95603ad0d88c/video_placeholder_overview_video.jpg?MOD=AJPERES&CACHEID=ROOTWORKSPACE-0d2feb8e-b3a1-430c-a4b2-95603ad0d88c-lRhNu92') on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.HttpWwwHearyourwayComWpsWcmConne4'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.HttpWwwHearyourwayComWpsWcmConne4Info, new RecordItemIndex(14));
            //Validate.AttributeEqual(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.HttpWwwHearyourwayComWpsWcmConne4Info, "Src", "http://www.hearyourway.com/wps/wcm/connect/0d2feb8e-b3a1-430c-a4b2-95603ad0d88c/video_placeholder_overview_video.jpg?MOD=AJPERES&CACHEID=ROOTWORKSPACE-0d2feb8e-b3a1-430c-a4b2-95603ad0d88c-lRhNu92");
            //Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1907;143.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(15));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1907;143");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1906;259.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(16));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1906;259");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.TheWorldsFirstAndOnlyMadeForIPhon'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.TheWorldsFirstAndOnlyMadeForIPhonInfo, new RecordItemIndex(17));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.TheWorldsFirstAndOnlyMadeForIPhonInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.ThanksToMadeForIPhoneTechnologyWi'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.ThanksToMadeForIPhoneTechnologyWiInfo, new RecordItemIndex(18));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.ThanksToMadeForIPhoneTechnologyWiInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.YouCanAlsoCheckTheStatusOfTheirD'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.YouCanAlsoCheckTheStatusOfTheirDInfo, new RecordItemIndex(19));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.YouCanAlsoCheckTheStatusOfTheirDInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='http://www.hearyourway.com/wps/wcm/connect/a887521d-97cc-4995-b7dd-f3abdf7d4252/made-for-iphone-large.png?MOD=AJPERES&CACHEID=ROOTWORKSPACE-a887521d-97cc-4995-b7dd-f3abdf7d4252-lMZjSYY') on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.MadeForIPodIPhoneIPad'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.MadeForIPodIPhoneIPadInfo, new RecordItemIndex(20));
            Validate.AttributeEqual(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.MadeForIPodIPhoneIPadInfo, "Src", "http://www.hearyourway.com/wps/wcm/connect/a887521d-97cc-4995-b7dd-f3abdf7d4252/made-for-iphone-large.png?MOD=AJPERES&CACHEID=ROOTWORKSPACE-a887521d-97cc-4995-b7dd-f3abdf7d4252-lMZjSYY");
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1909;254.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(21));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1909;254");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1910;342.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(22));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1910;342");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.Nucleus7IsTheSmallestAndLightestB'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.Nucleus7IsTheSmallestAndLightestBInfo, new RecordItemIndex(23));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.Nucleus7IsTheSmallestAndLightestBInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.ProvenToOptimiseYourChildsHearingP'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.ProvenToOptimiseYourChildsHearingPInfo, new RecordItemIndex(24));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.ProvenToOptimiseYourChildsHearingPInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.HearingInNoiseIsTheMostChallenging'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.HearingInNoiseIsTheMostChallengingInfo, new RecordItemIndex(25));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.HearingInNoiseIsTheMostChallengingInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.FromTheParkToSchoolToANoisyPlayd'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.FromTheParkToSchoolToANoisyPlaydInfo, new RecordItemIndex(26));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.FromTheParkToSchoolToANoisyPlaydInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1907;352.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(27));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1907;352");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1919;491.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(28));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1919;491");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.AChoiceOfWearingOptionsToFitYour'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.AChoiceOfWearingOptionsToFitYourInfo, new RecordItemIndex(29));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.AChoiceOfWearingOptionsToFitYourInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.AvailableIn6ColourOptionsTheNucle'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.AvailableIn6ColourOptionsTheNucleInfo, new RecordItemIndex(30));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.AvailableIn6ColourOptionsTheNucleInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.FromThePlaygroundToTheSportsField'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.FromThePlaygroundToTheSportsFieldInfo, new RecordItemIndex(31));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.FromThePlaygroundToTheSportsFieldInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1908;451.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(32));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1908;451");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1903;509.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(33));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1903;509");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='http://www.hearyourway.com/wps/wcm/connect/7d484cbc-63eb-45d1-a57b-771128dcba14/N7_Aqua_Device.png?MOD=AJPERES&CACHEID=ROOTWORKSPACE-7d484cbc-63eb-45d1-a57b-771128dcba14-lLRX-uw') on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.N7AquaPlus'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.N7AquaPlusInfo, new RecordItemIndex(34));
            Validate.AttributeEqual(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.N7AquaPlusInfo, "Src", "http://www.hearyourway.com/wps/wcm/connect/7d484cbc-63eb-45d1-a57b-771128dcba14/N7_Aqua_Device.png?MOD=AJPERES&CACHEID=ROOTWORKSPACE-7d484cbc-63eb-45d1-a57b-771128dcba14-lLRX-uw");
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.MakeASplashWithAquaPlus'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.MakeASplashWithAquaPlusInfo, new RecordItemIndex(35));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.MakeASplashWithAquaPlusInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.WithTheHighestWaterResistanceRating'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.WithTheHighestWaterResistanceRatingInfo, new RecordItemIndex(36));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.WithTheHighestWaterResistanceRatingInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.SomePTag'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.SomePTagInfo, new RecordItemIndex(37));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.SomePTagInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1907;510.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(38));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1907;510");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1903;598.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(39));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1903;598");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FluidContainer.DivTagRow1'.", repo.CochlearImplantSoundProcessorNucleus.FluidContainer.DivTagRow1Info, new RecordItemIndex(40));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FluidContainer.DivTagRow1Info);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1909;606.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(41));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1909;606");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1908;743.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(42));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1908;743");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.RequestABrochure'.", repo.CochlearImplantSoundProcessorNucleus.RequestABrochureInfo, new RecordItemIndex(43));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.RequestABrochureInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'CochlearImplantSoundProcessorNucleus' at 1913;754.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(44));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1913;754");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'CochlearImplantSoundProcessorNucleus' at 1919;846.", repo.CochlearImplantSoundProcessorNucleus.SelfInfo, new RecordItemIndex(45));
            repo.CochlearImplantSoundProcessorNucleus.Self.MoveTo("1919;846");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.References'.", repo.CochlearImplantSoundProcessorNucleus.ReferencesInfo, new RecordItemIndex(46));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ReferencesInfo);
            Delay.Milliseconds(100);
            
            //Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.PTagC2017CochlearLtdAllRightsRese'.", repo.CochlearImplantSoundProcessorNucleus.PTagC2017CochlearLtdAllRightsReseInfo, new RecordItemIndex(47));
            //Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.PTagC2017CochlearLtdAllRightsReseInfo);
            //Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.PTagC2018CochlearLtdAllRightsRese'.", repo.CochlearImplantSoundProcessorNucleus.PTagC2018CochlearLtdAllRightsReseInfo, new RecordItemIndex(48));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.PTagC2018CochlearLtdAllRightsReseInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.CookiePolicy'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.CookiePolicyInfo, new RecordItemIndex(49));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.CookiePolicyInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.PrivacyPolicy'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.PrivacyPolicyInfo, new RecordItemIndex(50));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.PrivacyPolicyInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.TermsOfUse'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.TermsOfUseInfo, new RecordItemIndex(51));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.TermsOfUseInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.ATagBlank'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.ATagBlankInfo, new RecordItemIndex(52));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledFooterLinks.ATagBlankInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.FollowUsOnSocialMedia'.", repo.CochlearImplantSoundProcessorNucleus.FollowUsOnSocialMediaInfo, new RecordItemIndex(53));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.FollowUsOnSocialMediaInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaFacebookFaSocialCircular'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaFacebookFaSocialCircularInfo, new RecordItemIndex(54));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaFacebookFaSocialCircularInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaTwitterFaSocialCircular'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaTwitterFaSocialCircularInfo, new RecordItemIndex(55));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaTwitterFaSocialCircularInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaYoutubeFaSocialCircular'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaYoutubeFaSocialCircularInfo, new RecordItemIndex(56));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaYoutubeFaSocialCircularInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaLinkedinFaSocialCircular'.", repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaLinkedinFaSocialCircularInfo, new RecordItemIndex(57));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.ListInlineListUnstyledSocialLinks.FaFaLinkedinFaSocialCircularInfo);
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'CochlearImplantSoundProcessorNucleus.TypcnTypcnArrowUp' at 26;22.", repo.CochlearImplantSoundProcessorNucleus.TypcnTypcnArrowUpInfo, new RecordItemIndex(58));
            repo.CochlearImplantSoundProcessorNucleus.TypcnTypcnArrowUp.Click("26;22");
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'CochlearImplantSoundProcessorNucleus1' at 29;67.", repo.CochlearImplantSoundProcessorNucleus1.SelfInfo, new RecordItemIndex(59));
            repo.CochlearImplantSoundProcessorNucleus1.Self.Click("29;67");
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'CochlearImplantSoundProcessorNucleus1' at 32;69.", repo.CochlearImplantSoundProcessorNucleus1.SelfInfo, new RecordItemIndex(60));
            repo.CochlearImplantSoundProcessorNucleus1.Self.Click("32;69");
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'CochlearImplantSoundProcessorNucleus.UtilityNav.Parent'.", repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo, new RecordItemIndex(61));
            Validate.Exists(repo.CochlearImplantSoundProcessorNucleus.UtilityNav.ParentInfo);
            Delay.Milliseconds(100);
            
        }
Ejemplo n.º 33
0
        /// <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()
        {
            while (!Objects.Internet.IsConnectToInternetOKWithOutConfig())
            {
                MessageBox.Show(new WinForms.Form {
                    TopMost = true
                }, "The SUT does not connect to the internet. Please connect to the internect and click OK when you are done.");
            }
            Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://dell.com/support' with browser 'IE' in maximized mode.");
            Host.Local.OpenBrowser("http://dell.com/support", "IE", "", false, true, false, false, false);
            Delay.Milliseconds(500);

//			if IE11 runs at first time, the FirstRunWizard must be closed
            firstRun fr = new firstRun();

            fr.checkIEForm();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Detect Product'.");
            repo.DellSupport.ProductSupportDellUS.BtnDetectmyProductInfo.WaitForExists(120000);
            repo.DellSupport.ProductSupportDellUS.BtnDetectmyProduct.Click();
            Delay.Seconds(5);
            int i = 0;

            while (true)
            {
                if (repo.DellSupport.ProductSupportDellUS.BtnDetectmyProductInfo.Exists(5000))
                {
                    repo.DellSupport.ProductSupportDellUS.BtnDetectmyProduct.Click();
                    i++;
                    if (i >= 50)
                    {
                        break;
                    }
                }
                else
                {
                    break;
                }
                Delay.Seconds(5);
            }

            repo.DellSupport.ProductSupportDellUS.ProductNameInfo.WaitForExists(120000);
            if (repo.DellSupport.ProductSupportDellUS.ProductNameInfo.Exists(5000))
            {
                Report.Info("Check Infomation is ready or not.");
                repo.DellSupport.ProductSupportDellUS.ProductName.Click();
                //=> continue getinfo
            }
            else
            {
                //start setup for getinfo
                repo.DHS_HaiNT21_Page.AgreeTerm.Click();
                Delay.Seconds(3);
                repo.DHS_HaiNT21_Page.Continue.Click();
                Delay.Seconds(30);
                Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, 17, Keyboard.DefaultKeyPressTime, 1, true);
                //Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, 17, Keyboard.DefaultKeyPressTime, 1, true);

                Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://dell.com/support' with browser 'IE' in maximized mode.");
                Host.Local.OpenBrowser("http://dell.com/support", "IE", "", false, true, false, false, false);
                Delay.Milliseconds(0);
                Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Detect Product'.");
                while (repo.DellSupport.ProductSupportDellUS.BtnDetectmyProductInfo.Exists(1000))
                {
                    repo.DellSupport.ProductSupportDellUS.BtnDetectmyProduct.Click();
                    Delay.Seconds(5);
                }
            }


            GetDellSystemInfo();
            Delay.Milliseconds(0);


            Delay.Duration(3000, false);

            // Close browser window
            Report.Log(ReportLevel.Info, "Keyboard", "Close browser window\r\nKey 'Ctrl+W' Press.");
            Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, 17, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);
        }
Ejemplo n.º 34
0
        static void testClone(SBase s)
        {
            string ename = s.getElementName();
            SBase  c     = s.clone();

            if (c is Compartment)
            {
                Compartment x = (s as Compartment).clone(); c = x;
            }
            else if (c is CompartmentType)
            {
                CompartmentType x = (s as CompartmentType).clone(); c = x;
            }
            else if (c is Constraint)
            {
                Constraint x = (s as Constraint).clone(); c = x;
            }
            else if (c is Delay)
            {
                Delay x = (s as Delay).clone(); c = x;
            }
            else if (c is Event)
            {
                Event x = (s as Event).clone(); c = x;
            }
            else if (c is EventAssignment)
            {
                EventAssignment x = (s as EventAssignment).clone(); c = x;
            }
            else if (c is FunctionDefinition)
            {
                FunctionDefinition x = (s as FunctionDefinition).clone(); c = x;
            }
            else if (c is InitialAssignment)
            {
                InitialAssignment x = (s as InitialAssignment).clone(); c = x;
            }
            else if (c is KineticLaw)
            {
                KineticLaw x = (s as KineticLaw).clone(); c = x;
            }
            // currently return type of ListOf::clone() is SBase
            else if (c is ListOf)
            {
                SBase x = (s as ListOf).clone(); c = x;
            }
            else if (c is Model)
            {
                Model x = (s as Model).clone(); c = x;
            }
            else if (c is Parameter)
            {
                Parameter x = (s as Parameter).clone(); c = x;
            }
            else if (c is Reaction)
            {
                Reaction x = (s as Reaction).clone(); c = x;
            }
            else if (c is AlgebraicRule)
            {
                AlgebraicRule x = (s as AlgebraicRule).clone(); c = x;
            }
            else if (c is AssignmentRule)
            {
                AssignmentRule x = (s as AssignmentRule).clone(); c = x;
            }
            else if (c is RateRule)
            {
                RateRule x = (s as RateRule).clone(); c = x;
            }
            else if (c is SBMLDocument)
            {
                SBMLDocument x = (s as SBMLDocument).clone(); c = x;
            }
            else if (c is Species)
            {
                Species x = (s as Species).clone(); c = x;
            }
            else if (c is SpeciesReference)
            {
                SpeciesReference x = (s as SpeciesReference).clone(); c = x;
            }
            else if (c is SpeciesType)
            {
                SpeciesType x = (s as SpeciesType).clone(); c = x;
            }
            else if (c is SpeciesReference)
            {
                SpeciesReference x = (s as SpeciesReference).clone(); c = x;
            }
            else if (c is StoichiometryMath)
            {
                StoichiometryMath x = (s as StoichiometryMath).clone(); c = x;
            }
            else if (c is Trigger)
            {
                Trigger x = (s as Trigger).clone(); c = x;
            }
            else if (c is Unit)
            {
                Unit x = (s as Unit).clone(); c = x;
            }
            else if (c is UnitDefinition)
            {
                UnitDefinition x = (s as UnitDefinition).clone(); c = x;
            }
            else if (c is ListOfCompartmentTypes)
            {
                ListOfCompartmentTypes x = (s as ListOfCompartmentTypes).clone(); c = x;
            }
            else if (c is ListOfCompartments)
            {
                ListOfCompartments x = (s as ListOfCompartments).clone(); c = x;
            }
            else if (c is ListOfConstraints)
            {
                ListOfConstraints x = (s as ListOfConstraints).clone(); c = x;
            }
            else if (c is ListOfEventAssignments)
            {
                ListOfEventAssignments x = (s as ListOfEventAssignments).clone(); c = x;
            }
            else if (c is ListOfEvents)
            {
                ListOfEvents x = (s as ListOfEvents).clone(); c = x;
            }
            else if (c is ListOfFunctionDefinitions)
            {
                ListOfFunctionDefinitions x = (s as ListOfFunctionDefinitions).clone(); c = x;
            }
            else if (c is ListOfInitialAssignments)
            {
                ListOfInitialAssignments x = (s as ListOfInitialAssignments).clone(); c = x;
            }
            else if (c is ListOfParameters)
            {
                ListOfParameters x = (s as ListOfParameters).clone(); c = x;
            }
            else if (c is ListOfReactions)
            {
                ListOfReactions x = (s as ListOfReactions).clone(); c = x;
            }
            else if (c is ListOfRules)
            {
                ListOfRules x = (s as ListOfRules).clone(); c = x;
            }
            else if (c is ListOfSpecies)
            {
                ListOfSpecies x = (s as ListOfSpecies).clone(); c = x;
            }
            else if (c is ListOfSpeciesReferences)
            {
                ListOfSpeciesReferences x = (s as ListOfSpeciesReferences).clone(); c = x;
            }
            else if (c is ListOfSpeciesTypes)
            {
                ListOfSpeciesTypes x = (s as ListOfSpeciesTypes).clone(); c = x;
            }
            else if (c is ListOfUnitDefinitions)
            {
                ListOfUnitDefinitions x = (s as ListOfUnitDefinitions).clone(); c = x;
            }
            else if (c is ListOfUnits)
            {
                ListOfUnits x = (s as ListOfUnits).clone(); c = x;
            }
            else
            {
                ERR("[testClone] Error: (" + ename + ") : clone() failed.");
                return;
            }

            if (c == null)
            {
                ERR("[testClone] Error: (" + ename + ") : clone() failed.");
                return;
            }

            string enameClone = c.getElementName();

            if (ename == enameClone)
            {
                //Console.Out.WriteLine("[testClone] OK: (" + ename + ") clone(" + enameClone + ") : type match.");
                OK();
            }
            else
            {
                ERR("[testClone] Error: (" + ename + ") clone(" + enameClone + ") : type mismatch.");
            }
        }
Ejemplo n.º 35
0
 public void DelayExecution(Delay node)
 {
     waitingNodes.Push(node);
 }
Ejemplo n.º 36
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.WirelessSignal' at 80;12.", repo.WebDocument19216801.WirelessSignalInfo, new RecordItemIndex(0));
            repo.WebDocument19216801.WirelessSignal.Click("80;12");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='fmRbtn-Disable24') on item 'WebDocument19216801.FmRbtnDisable24'.", repo.WebDocument19216801.FmRbtnDisable24Info, new RecordItemIndex(1));
            Validate.Attribute(repo.WebDocument19216801.FmRbtnDisable24Info, "Id", "fmRbtn-Disable24");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagName='a') on item 'WebDocument19216801.FmRbtnDisable24'.", repo.WebDocument19216801.FmRbtnDisable24Info, new RecordItemIndex(2));
            Validate.Attribute(repo.WebDocument19216801.FmRbtnDisable24Info, "TagName", "a");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=33,Height=33}) on item 'WebDocument19216801.FmRbtnDisable24'.", repo.WebDocument19216801.FmRbtnDisable24Info, new RecordItemIndex(3));
            Validate.ContainsImage(repo.WebDocument19216801.FmRbtnDisable24Info, FmRbtnDisable24_Screenshot2, FmRbtnDisable24_Screenshot2_Options);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='fmRadio checked') on item 'WebDocument19216801.FmRbtnEnable24'.", repo.WebDocument19216801.FmRbtnEnable24Info, new RecordItemIndex(4));
            Validate.Attribute(repo.WebDocument19216801.FmRbtnEnable24Info, "Class", "fmRadio checked");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='fmRbtn-Enable24') on item 'WebDocument19216801.FmRbtnEnable24'.", repo.WebDocument19216801.FmRbtnEnable24Info, new RecordItemIndex(5));
            Validate.Attribute(repo.WebDocument19216801.FmRbtnEnable24Info, "Id", "fmRbtn-Enable24");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagName='a') on item 'WebDocument19216801.FmRbtnEnable24'.", repo.WebDocument19216801.FmRbtnEnable24Info, new RecordItemIndex(6));
            Validate.Attribute(repo.WebDocument19216801.FmRbtnEnable24Info, "TagName", "a");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=33,Height=33}) on item 'WebDocument19216801.FmRbtnEnable24'.", repo.WebDocument19216801.FmRbtnEnable24Info, new RecordItemIndex(7));
            Validate.ContainsImage(repo.WebDocument19216801.FmRbtnEnable24Info, FmRbtnEnable24_Screenshot2, FmRbtnEnable24_Screenshot2_Options);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='div_radiobox_without_tt') on item 'WebDocument19216801.TrEnable24'.", repo.WebDocument19216801.TrEnable24Info, new RecordItemIndex(8));
            Validate.Attribute(repo.WebDocument19216801.TrEnable24Info, "Class", "div_radiobox_without_tt");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='tr_Enable24') on item 'WebDocument19216801.TrEnable24'.", repo.WebDocument19216801.TrEnable24Info, new RecordItemIndex(9));
            Validate.Attribute(repo.WebDocument19216801.TrEnable24Info, "Id", "tr_Enable24");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=283,Height=33}) on item 'WebDocument19216801.TrEnable24'.", repo.WebDocument19216801.TrEnable24Info, new RecordItemIndex(10));
            Validate.ContainsImage(repo.WebDocument19216801.TrEnable24Info, TrEnable24_Screenshot2, TrEnable24_Screenshot2_Options);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnDisable24' at 16;26.", repo.WebDocument19216801.FmRbtnDisable24Info, new RecordItemIndex(11));
            repo.WebDocument19216801.FmRbtnDisable24.Click("16;26");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnEnable24' at 17;17.", repo.WebDocument19216801.FmRbtnEnable24Info, new RecordItemIndex(12));
            repo.WebDocument19216801.FmRbtnEnable24.Click("17;17");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnDisable24' at 22;22.", repo.WebDocument19216801.FmRbtnDisable24Info, new RecordItemIndex(13));
            repo.WebDocument19216801.FmRbtnDisable24.Click("22;22");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnDisable50' at 15;22.", repo.WebDocument19216801.FmRbtnDisable50Info, new RecordItemIndex(14));
            repo.WebDocument19216801.FmRbtnDisable50.Click("15;22");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnEnable50' at 18;17.", repo.WebDocument19216801.FmRbtnEnable50Info, new RecordItemIndex(15));
            repo.WebDocument19216801.FmRbtnEnable50.Click("18;17");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='div_radiobox_without_tt') on item 'WebDocument19216801.TrEnable50'.", repo.WebDocument19216801.TrEnable50Info, new RecordItemIndex(16));
            Validate.Attribute(repo.WebDocument19216801.TrEnable50Info, "Class", "div_radiobox_without_tt");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='tr_Enable50') on item 'WebDocument19216801.TrEnable50'.", repo.WebDocument19216801.TrEnable50Info, new RecordItemIndex(17));
            Validate.Attribute(repo.WebDocument19216801.TrEnable50Info, "Id", "tr_Enable50");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=283,Height=33}) on item 'WebDocument19216801.TrEnable50'.", repo.WebDocument19216801.TrEnable50Info, new RecordItemIndex(18));
            Validate.ContainsImage(repo.WebDocument19216801.TrEnable50Info, TrEnable50_Screenshot2, TrEnable50_Screenshot2_Options);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='div_radiobox_without_tt') on item 'WebDocument19216801.TrDisable50'.", repo.WebDocument19216801.TrDisable50Info, new RecordItemIndex(19));
            Validate.Attribute(repo.WebDocument19216801.TrDisable50Info, "Class", "div_radiobox_without_tt");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='tr_Disable50') on item 'WebDocument19216801.TrDisable50'.", repo.WebDocument19216801.TrDisable50Info, new RecordItemIndex(20));
            Validate.Attribute(repo.WebDocument19216801.TrDisable50Info, "Id", "tr_Disable50");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=283,Height=33}) on item 'WebDocument19216801.TrDisable50'.", repo.WebDocument19216801.TrDisable50Info, new RecordItemIndex(21));
            Validate.ContainsImage(repo.WebDocument19216801.TrDisable50Info, TrDisable50_Screenshot2, TrDisable50_Screenshot2_Options);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnEnable24' at 18;20.", repo.WebDocument19216801.FmRbtnEnable24Info, new RecordItemIndex(22));
            repo.WebDocument19216801.FmRbtnEnable24.Click("18;20");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'WebDocument19216801.WebDocument19216801' at 1908;530.", repo.WebDocument19216801.WebDocument19216801Info, new RecordItemIndex(23));
            repo.WebDocument19216801.WebDocument19216801.MoveTo("1908;530");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'WebDocument19216801.WebDocument19216801' at 1919;759.", repo.WebDocument19216801.WebDocument19216801Info, new RecordItemIndex(24));
            repo.WebDocument19216801.WebDocument19216801.MoveTo("1919;759");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.Security' at 32;10.", repo.WebDocument19216801.SecurityInfo, new RecordItemIndex(25));
            repo.WebDocument19216801.Security.Click("32;10");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='fmZero') on item 'WebDocument19216801.SSID'.", repo.WebDocument19216801.SSIDInfo, new RecordItemIndex(26));
            Validate.Attribute(repo.WebDocument19216801.SSIDInfo, "Class", "fmZero");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='SSID') on item 'WebDocument19216801.SSID'.", repo.WebDocument19216801.SSIDInfo, new RecordItemIndex(27));
            Validate.Attribute(repo.WebDocument19216801.SSIDInfo, "Id", "SSID");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue='VM0365087') on item 'WebDocument19216801.SSID'.", repo.WebDocument19216801.SSIDInfo, new RecordItemIndex(28));
            Validate.Attribute(repo.WebDocument19216801.SSIDInfo, "TagValue", "VM0365087");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Tabindex='2') on item 'WebDocument19216801.SSID'.", repo.WebDocument19216801.SSIDInfo, new RecordItemIndex(29));
            Validate.Attribute(repo.WebDocument19216801.SSIDInfo, "Tabindex", "2");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Value='VM0365087') on item 'WebDocument19216801.SSID'.", repo.WebDocument19216801.SSIDInfo, new RecordItemIndex(30));
            Validate.Attribute(repo.WebDocument19216801.SSIDInfo, "Value", "VM0365087");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot1' with region {X=0,Y=0,Width=202,Height=27}) on item 'WebDocument19216801.SSID'.", repo.WebDocument19216801.SSIDInfo, new RecordItemIndex(31));
            Validate.ContainsImage(repo.WebDocument19216801.SSIDInfo, SSID_Screenshot1, SSID_Screenshot1_Options);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='fmZero') on item 'WebDocument19216801.SSID50'.", repo.WebDocument19216801.SSID50Info, new RecordItemIndex(32));
            Validate.Attribute(repo.WebDocument19216801.SSID50Info, "Class", "fmZero");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='SSID50') on item 'WebDocument19216801.SSID50'.", repo.WebDocument19216801.SSID50Info, new RecordItemIndex(33));
            Validate.Attribute(repo.WebDocument19216801.SSID50Info, "Id", "SSID50");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue='VM0365087_T') on item 'WebDocument19216801.SSID50'.", repo.WebDocument19216801.SSID50Info, new RecordItemIndex(34));
            Validate.Attribute(repo.WebDocument19216801.SSID50Info, "TagValue", "VM0365087_T");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Tabindex='7') on item 'WebDocument19216801.SSID50'.", repo.WebDocument19216801.SSID50Info, new RecordItemIndex(35));
            Validate.Attribute(repo.WebDocument19216801.SSID50Info, "Tabindex", "7");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Value='VM0365087_T') on item 'WebDocument19216801.SSID50'.", repo.WebDocument19216801.SSID50Info, new RecordItemIndex(36));
            Validate.Attribute(repo.WebDocument19216801.SSID50Info, "Value", "VM0365087_T");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot1' with region {X=0,Y=0,Width=202,Height=27}) on item 'WebDocument19216801.SSID50'.", repo.WebDocument19216801.SSID50Info, new RecordItemIndex(37));
            Validate.ContainsImage(repo.WebDocument19216801.SSID50Info, SSID50_Screenshot1, SSID50_Screenshot1_Options);
            Delay.Milliseconds(100);
        }
Ejemplo n.º 37
0
 /// <summary>
 ///  Create Initialize tagop
 /// </summary>
 /// <param name="passwordLevel">Password level</param> 
 /// <param name="password">Password</param>
 public Initialize(Level passwordLevel, UInt32 password)
     : base(0xAC, passwordLevel, password)
 {
     DelayTime = new Delay();
     AppData = new ApplicationData();
 }
Ejemplo n.º 38
0
 /// <summary>
 ///  Create Initialize tagop
 /// </summary>
 public Initialize()
     : base(0xAC)
 {
     DelayTime = new Delay();
     AppData = new ApplicationData();
 }
 /// <summary>
 /// Can round up value.
 /// </summary>
 private static AVal For(bool unassigned, bool assigned, Delay delay) {
   if (unassigned) {
     if (assigned) {
       return Bottom; // These all map to bottom
     }
     else {
       switch (delay.delay) {
         case Delay.DelayStatus.NoDelay:
           return UnassignedOnly;
         case Delay.DelayStatus.UniversalDelay:
           return UnassignedUniversalDelay;
         case Delay.DelayStatus.ExistentialDelay:
           return UnassignedExistentialDelay;
         case Delay.DelayStatus.Bottom:
           return UnassignedBottomDelay;
         default:
           return UnassignedTopDelay;
       }
     }
   } else { // not definitely unassigned
     if (assigned) {
       switch (delay.delay) {
         case Delay.DelayStatus.NoDelay:
           return AssignedNoDelay;
         case Delay.DelayStatus.UniversalDelay:
           return AssignedUniversalDelay;
         case Delay.DelayStatus.ExistentialDelay:
           return AssignedExistentialDelay;
         case Delay.DelayStatus.Bottom:
           return AssignedBottomDelay;
         default:
           return AssignedTopDelay;
       }
     }
     else { // neither definitely assigned, nor definitely unassigned
       switch (delay.delay) {
         case Delay.DelayStatus.NoDelay:
           return NoDelayOnly;
         case Delay.DelayStatus.UniversalDelay:
           return UniversalDelayOnly;
         case Delay.DelayStatus.ExistentialDelay:
           return ExistentialDelayOnly;
         case Delay.DelayStatus.Bottom:
           return BottomDelayOnly;
         default:
           return Top;
       }
     }
   }
 }
Ejemplo n.º 40
0
        //
        //   public Packet(byte[] raw):(byte[] raw, DateTime time
        //   {
        //    Packet(raw, DateTime.Now);
        //   }
        public Packet(byte[] raw, DateTime time)
        {
            if (raw == null)
            {
                throw new ArgumentNullException();
            }
            if (raw.Length < 20)
            {
                throw new ArgumentException();
            }

            this.m_Raw = raw;
            this.m_Time = time;
            this.m_HeaderLength = (raw[0] & 0xF) * 4;
            if ((raw[0] & 0xF) < 5) { throw new ArgumentException(); }
            this.m_Precedence = (Precedence)((raw[1] & 0xE0) >> 5);
            this.m_Delay = (Delay)((raw[1] & 0x10) >> 4);
            this.m_Throughput = (Throughput)((raw[1] & 0x8) >> 3);
            this.m_Reliability = (Reliability)((raw[1] & 0x4) >> 2);
            this.m_TotalLength = raw[2] * 256 + raw[3];
            if (!(this.m_TotalLength == raw.Length)) { throw new ArgumentException(); } // invalid size of packet;
            this.m_Identification = raw[4] * 256 + raw[5];
            this.m_TimeToLive = raw[8];

            m_Protocol = (InternetProtocol)raw[9];

            m_Checksum = new byte[2];
            m_Checksum[0] = raw[11];
            m_Checksum[1] = raw[10];

            try
            {
                m_SourceAddress = GetIPAddress(raw, 12);
                m_DestinationAddress = GetIPAddress(raw, 16);
            }
            catch (Exception e)
            {
                throw;
            }

            if (m_Protocol == InternetProtocol.Tcp || m_Protocol == InternetProtocol.Udp)
            {
                m_SourcePort = raw[m_HeaderLength] * 256 + raw[m_HeaderLength + 1];
                m_DestinationPort = raw[m_HeaderLength + 2] * 256 + raw[m_HeaderLength + 3];
            }
            else
            {

                m_SourcePort = -1;
                m_DestinationPort = -1;
            }
        }
Ejemplo n.º 41
0
			internal Train () {
				this.Acceleration = new Acceleration();
				this.Performance = new Performance();
				this.Delay = new Delay();
				this.Move = new Move();
				this.Brake = new Brake();
				this.Pressure = new Pressure();
				this.Handle = new Handle();
				this.Cab = new Cab();
				this.Car = new Car();
				this.Device = new Device();
				this.MotorP1 = new Motor();
				this.MotorP2 = new Motor();
				this.MotorB1 = new Motor();
				this.MotorB2 = new Motor();
			}
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Header Links
            Report.Log(ReportLevel.Info, "Section", "Header Links", new RecordItemIndex(0));

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(1));
            repo.Login1.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            // Planning Tile
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nPlanning Tile\r\nValidating AttributeEqual (InnerText=' Planning ') on item 'Login1.NavNavbarNavSamsNavbarNav.ATagPlanning'.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagPlanningInfo, new RecordItemIndex(2));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.ATagPlanningInfo, "InnerText", " Planning ", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(2)); }

            // Planning Tile
            Report.Log(ReportLevel.Info, "Mouse", "Planning Tile\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagPlanning' at 109;58.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagPlanningInfo, new RecordItemIndex(3));
            repo.Login1.NavNavbarNavSamsNavbarNav.ATagPlanning.Click("109;58");
            Delay.Milliseconds(200);

            // Planning -> Programs
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nPlanning -> Programs\r\nValidating AttributeEqual (InnerText='Programs') on item 'Login1.NavNavbarNavSamsNavbarNav.Programs1'.", repo.Login1.NavNavbarNavSamsNavbarNav.Programs1Info, new RecordItemIndex(4));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.Programs1Info, "InnerText", "Programs", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }

            // Planning -> Projects
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nPlanning -> Projects\r\nValidating AttributeEqual (InnerText='Projects') on item 'Login1.NavNavbarNavSamsNavbarNav.Projects'.", repo.Login1.NavNavbarNavSamsNavbarNav.ProjectsInfo, new RecordItemIndex(5));
                Validate.AttributeEqual(repo.Login1.NavNavbarNavSamsNavbarNav.ProjectsInfo, "InnerText", "Projects", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); }

            // Homepage Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(6));

            // Programs
            Report.Log(ReportLevel.Info, "Section", "Programs", new RecordItemIndex(7));

            // Planning -> Programs
            Report.Log(ReportLevel.Info, "Mouse", "Planning -> Programs\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.Programs1' at 59;23.", repo.Login1.NavNavbarNavSamsNavbarNav.Programs1Info, new RecordItemIndex(8));
            repo.Login1.NavNavbarNavSamsNavbarNav.Programs1.Click("59;23");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(9));
            repo.Login1.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            // Program Table
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nProgram Table\r\nValidating AttributeEqual (InnerText='Federal Assistance Programs') on item 'Login1.FederalAssistancePrograms'.", repo.Login1.FederalAssistanceProgramsInfo, new RecordItemIndex(10));
                Validate.AttributeEqual(repo.Login1.FederalAssistanceProgramsInfo, "InnerText", "Federal Assistance Programs", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(10)); }

            // Program Table Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(11));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.HOME' at 17;9.", repo.Login1.NavNavbarNavSamsNavbarNav.HOMEInfo, new RecordItemIndex(12));
            repo.Login1.NavNavbarNavSamsNavbarNav.HOME.Click("17;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'InnerText' to equal the specified value $Domestic_Grantor_WM. Associated repository item: 'Login1.HiJoeyTribbiani'", repo.Login1.HiJoeyTribbianiInfo, new RecordItemIndex(13));
            repo.Login1.HiJoeyTribbianiInfo.WaitForAttributeEqual(5000, "InnerText", Domestic_Grantor_WM);

            // Projects
            Report.Log(ReportLevel.Info, "Section", "Projects", new RecordItemIndex(14));

            // Planning Tile
            Report.Log(ReportLevel.Info, "Mouse", "Planning Tile\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagPlanning' at 87;67.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagPlanningInfo, new RecordItemIndex(15));
            repo.Login1.NavNavbarNavSamsNavbarNav.ATagPlanning.Click("87;67");
            Delay.Milliseconds(200);

            // Planning -> Projects
            Report.Log(ReportLevel.Info, "Mouse", "Planning -> Projects\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.Projects' at 77;12.", repo.Login1.NavNavbarNavSamsNavbarNav.ProjectsInfo, new RecordItemIndex(16));
            repo.Login1.NavNavbarNavSamsNavbarNav.Projects.Click("77;12");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(17));
            repo.Login1.Self.WaitForDocumentLoaded();
            Delay.Milliseconds(0);

            // Project Table
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nProject Table\r\nValidating AttributeEqual (InnerText='Federal Assistance Projects') on item 'Login1.FederalAssistanceProjects'.", repo.Login1.FederalAssistanceProjectsInfo, new RecordItemIndex(18));
                Validate.AttributeEqual(repo.Login1.FederalAssistanceProjectsInfo, "InnerText", "Federal Assistance Projects", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(18)); }

            // Project Table Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(19));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.HOME' at 17;9.", repo.Login1.NavNavbarNavSamsNavbarNav.HOMEInfo, new RecordItemIndex(20));
            repo.Login1.NavNavbarNavSamsNavbarNav.HOME.Click("17;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'InnerText' to equal the specified value $Domestic_Grantor_WM. Associated repository item: 'Login1.HiJoeyTribbiani'", repo.Login1.HiJoeyTribbianiInfo, new RecordItemIndex(21));
            repo.Login1.HiJoeyTribbianiInfo.WaitForAttributeEqual(5000, "InnerText", Domestic_Grantor_WM);
        }
 public static Delay Meet(Delay a, Delay b) {
   if (a.delay == DelayStatus.Top) return b;
   if (b.delay == DelayStatus.Top) return a;
   if (a.delay != b.delay) return Bottom; // keep this intact with existential delay
   return a; 
 }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Footer Links
            Report.Log(ReportLevel.Info, "Section", "Footer Links", new RecordItemIndex(0));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -840 units.", new RecordItemIndex(1));
            Mouse.ScrollWheel(-840);
            Delay.Milliseconds(500);

            // Footer - Planning
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nFooter - Planning\r\nValidating AttributeEqual (InnerText='Planning') on item 'Login1.NgScope.Planning'.", repo.Login1.NgScope.PlanningInfo, new RecordItemIndex(2));
                Validate.AttributeEqual(repo.Login1.NgScope.PlanningInfo, "InnerText", "Planning", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(2)); }

            // Footer - Programs
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nFooter - Programs\r\nValidating AttributeEqual (InnerText='Programs') on item 'Login1.NgScope.Programs1'.", repo.Login1.NgScope.Programs1Info, new RecordItemIndex(3));
                Validate.AttributeEqual(repo.Login1.NgScope.Programs1Info, "InnerText", "Programs", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(3)); }

            // Footer - Projects
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nFooter - Projects\r\nValidating AttributeEqual (InnerText='Projects') on item 'Login1.NgScope.Projects'.", repo.Login1.NgScope.ProjectsInfo, new RecordItemIndex(4));
                Validate.AttributeEqual(repo.Login1.NgScope.ProjectsInfo, "InnerText", "Projects", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }

            // Footer - Programs
            Report.Log(ReportLevel.Info, "Mouse", "Footer - Programs\r\nMouse Left Click item 'Login1.NgScope.Planning' at 34;7.", repo.Login1.NgScope.PlanningInfo, new RecordItemIndex(5));
            repo.Login1.NgScope.Planning.Click("34;7");
            Delay.Milliseconds(200);

            // Planning Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(6));

            // Programs
            Report.Log(ReportLevel.Info, "Section", "Programs", new RecordItemIndex(7));

            // Footer - Programs
            Report.Log(ReportLevel.Info, "Mouse", "Footer - Programs\r\nMouse Left Click item 'Login1.NgScope.Programs1' at 34;7.", repo.Login1.NgScope.Programs1Info, new RecordItemIndex(8));
            repo.Login1.NgScope.Programs1.Click("34;7");
            Delay.Milliseconds(200);

            // Program Table
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nProgram Table\r\nValidating AttributeEqual (InnerText='Federal Assistance Programs') on item 'Login1.FederalAssistancePrograms'.", repo.Login1.FederalAssistanceProgramsInfo, new RecordItemIndex(9));
                Validate.AttributeEqual(repo.Login1.FederalAssistanceProgramsInfo, "InnerText", "Federal Assistance Programs", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(9)); }

            // Program Table Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(10));

            // Home Button
            Report.Log(ReportLevel.Info, "Mouse", "Home Button\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.HOME' at 12;9.", repo.Login1.NavNavbarNavSamsNavbarNav.HOMEInfo, new RecordItemIndex(11));
            repo.Login1.NavNavbarNavSamsNavbarNav.HOME.Click("12;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'InnerText' to equal the specified value $RPM_Grantor_WM. Associated repository item: 'Login1.HiGuntherCentralPerk'", repo.Login1.HiGuntherCentralPerkInfo, new RecordItemIndex(12));
            repo.Login1.HiGuntherCentralPerkInfo.WaitForAttributeEqual(5000, "InnerText", RPM_Grantor_WM);

            // Projects
            Report.Log(ReportLevel.Info, "Section", "Projects", new RecordItemIndex(13));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -840 units.", new RecordItemIndex(14));
            Mouse.ScrollWheel(-840);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NgScope.Projects' at 70;14.", repo.Login1.NgScope.ProjectsInfo, new RecordItemIndex(15));
            repo.Login1.NgScope.Projects.Click("70;14");
            Delay.Milliseconds(200);

            // Project Table
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nProject Table\r\nValidating AttributeEqual (InnerText='Federal Assistance Projects') on item 'Login1.FederalAssistanceProjects'.", repo.Login1.FederalAssistanceProjectsInfo, new RecordItemIndex(16));
                Validate.AttributeEqual(repo.Login1.FederalAssistanceProjectsInfo, "InnerText", "Federal Assistance Projects", null, new Validate.Options()
                {
                    ReportScreenshot = Validate.ResultOption.OnFail
                });
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(16)); }

            // Project Table Screenshot
            Report.Screenshot(ReportLevel.Success, "User", "", null, false, new RecordItemIndex(17));

            // Home Button
            Report.Log(ReportLevel.Info, "Mouse", "Home Button\r\nMouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.HOME' at 12;9.", repo.Login1.NavNavbarNavSamsNavbarNav.HOMEInfo, new RecordItemIndex(18));
            repo.Login1.NavNavbarNavSamsNavbarNav.HOME.Click("12;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'InnerText' to equal the specified value $RPM_Grantor_WM. Associated repository item: 'Login1.HiGuntherCentralPerk'", repo.Login1.HiGuntherCentralPerkInfo, new RecordItemIndex(19));
            repo.Login1.HiGuntherCentralPerkInfo.WaitForAttributeEqual(5000, "InnerText", RPM_Grantor_WM);
        }
Ejemplo n.º 45
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ID_AI_FirmName' with focus on 'ApplicationUnderTest.ID_AI_FirmName'.", repo.ApplicationUnderTest.ID_AI_FirmNameInfo, new RecordItemIndex(0));
            repo.ApplicationUnderTest.ID_AI_FirmName.PressKeys("ID_AI_FirmName");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ID_AI_FirstName' with focus on 'ApplicationUnderTest.ID_AI_FirstName'.", repo.ApplicationUnderTest.ID_AI_FirstNameInfo, new RecordItemIndex(1));
            repo.ApplicationUnderTest.ID_AI_FirstName.PressKeys("ID_AI_FirstName");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ID_AI_LastName' with focus on 'ApplicationUnderTest.ID_AI_LastName'.", repo.ApplicationUnderTest.ID_AI_LastNameInfo, new RecordItemIndex(2));
            repo.ApplicationUnderTest.ID_AI_LastName.PressKeys("ID_AI_LastName");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ID_AI_Address1' with focus on 'ApplicationUnderTest.ID_AI_Address1'.", repo.ApplicationUnderTest.ID_AI_Address1Info, new RecordItemIndex(3));
            repo.ApplicationUnderTest.ID_AI_Address1.PressKeys("ID_AI_Address1");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ID_AI_Address2' with focus on 'ApplicationUnderTest.ID_AI_Address2'.", repo.ApplicationUnderTest.ID_AI_Address2Info, new RecordItemIndex(4));
            repo.ApplicationUnderTest.ID_AI_Address2.PressKeys("ID_AI_Address2");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'ID_AI_City' with focus on 'ApplicationUnderTest.ID_AI_City'.", repo.ApplicationUnderTest.ID_AI_CityInfo, new RecordItemIndex(5));
            repo.ApplicationUnderTest.ID_AI_City.PressKeys("ID_AI_City");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'CT' on item 'ApplicationUnderTest.ID_AI_State'.", repo.ApplicationUnderTest.ID_AI_StateInfo, new RecordItemIndex(6));
            repo.ApplicationUnderTest.ID_AI_State.Element.SetAttributeValue("TagValue", "CT");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(7));
            Delay.Duration(500, false);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '32132' with focus on 'ApplicationUnderTest.ID_AI_Zipcode'.", repo.ApplicationUnderTest.ID_AI_ZipcodeInfo, new RecordItemIndex(8));
            repo.ApplicationUnderTest.ID_AI_Zipcode.PressKeys("32132");
            Delay.Milliseconds(0);
            
            Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(9));
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '*****@*****.**' with focus on 'ApplicationUnderTest.ID_AI_Email'.", repo.ApplicationUnderTest.ID_AI_EmailInfo, new RecordItemIndex(10));
            repo.ApplicationUnderTest.ID_AI_Email.PressKeys("*****@*****.**");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to '06/04/2019' on item 'ApplicationUnderTest.ID_AI_RepresentationDate'.", repo.ApplicationUnderTest.ID_AI_RepresentationDateInfo, new RecordItemIndex(11));
            repo.ApplicationUnderTest.ID_AI_RepresentationDate.Element.SetAttributeValue("TagValue", "06/04/2019");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(12));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(13));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}'.", new RecordItemIndex(14));
            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);
            
            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'Personal' on item 'ApplicationUnderTest.ID_AI_UseType'.", repo.ApplicationUnderTest.ID_AI_UseTypeInfo, new RecordItemIndex(15));
            repo.ApplicationUnderTest.ID_AI_UseType.Element.SetAttributeValue("TagValue", "Personal");
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'Cell' on item 'ApplicationUnderTest.ID_AI_PhoneType'.", repo.ApplicationUnderTest.ID_AI_PhoneTypeInfo, new RecordItemIndex(16));
            repo.ApplicationUnderTest.ID_AI_PhoneType.Element.SetAttributeValue("TagValue", "Cell");
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'Caller ID' on item 'ApplicationUnderTest.ID_AI_Source'.", repo.ApplicationUnderTest.ID_AI_SourceInfo, new RecordItemIndex(17));
            repo.ApplicationUnderTest.ID_AI_Source.Element.SetAttributeValue("TagValue", "Caller ID");
            Delay.Milliseconds(100);
            
            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '9500095012' with focus on 'ApplicationUnderTest.ID_AI_Phone'.", repo.ApplicationUnderTest.ID_AI_PhoneInfo, new RecordItemIndex(18));
            repo.ApplicationUnderTest.ID_AI_Phone.PressKeys("9500095012");
            Delay.Milliseconds(0);
            
            Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(19));
            
            try {
                Report.Log(ReportLevel.Info, "Keyboard", "(Optional Action)\r\nKey sequence '{Tab}'.", new RecordItemIndex(20));
                Keyboard.Press("{Tab}");
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(20)); }
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.SubmitButton1' at 46;15.", repo.ApplicationUnderTest.SubmitButton1Info, new RecordItemIndex(21));
            repo.ApplicationUnderTest.SubmitButton1.Click("46;15");
            Delay.Milliseconds(0);
            
        }
Ejemplo n.º 46
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ButtonX' at Center.", repo.ButtonXInfo, new RecordItemIndex(0));
            repo.ButtonX.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ButtonY' at Center.", repo.ButtonYInfo, new RecordItemIndex(2));
            repo.ButtonY.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ButtonZ' at Center.", repo.ButtonZInfo, new RecordItemIndex(3));
            repo.ButtonZ.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (WindowText='+0.0000        ') on item 'SnapXUntitled.X_DRO_Value'.", repo.SnapXUntitled.X_DRO_ValueInfo, new RecordItemIndex(4));
                Validate.Attribute(repo.SnapXUntitled.X_DRO_ValueInfo, "WindowText", "+0.0000        ", Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (WindowText='+0.0000        ') on item 'SnapXUntitled.Y_DRO_Value'.", repo.SnapXUntitled.Y_DRO_ValueInfo, new RecordItemIndex(5));
                Validate.Attribute(repo.SnapXUntitled.Y_DRO_ValueInfo, "WindowText", "+0.0000        ", Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); }

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (WindowText='+0.0           ') on item 'SnapXUntitled.Z_DRO_Value'.", repo.SnapXUntitled.Z_DRO_ValueInfo, new RecordItemIndex(6));
                Validate.Attribute(repo.SnapXUntitled.Z_DRO_ValueInfo, "WindowText", "+0.0           ", Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(6)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.MoveStageButton' at Center.", repo.SnapXUntitled.MoveStageButtonInfo, new RecordItemIndex(7));
            repo.SnapXUntitled.MoveStageButton.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'SnapXUntitled.MoveStageOption.X_Value' at 83;10.", repo.SnapXUntitled.MoveStageOption.X_ValueInfo, new RecordItemIndex(8));
            repo.SnapXUntitled.MoveStageOption.X_Value.DoubleClick("83;10");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("30");
            Delay.Milliseconds(200);

            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'SnapXUntitled.MoveStageOption.Y_Value' at 81;10.", repo.SnapXUntitled.MoveStageOption.Y_ValueInfo, new RecordItemIndex(11));
            repo.SnapXUntitled.MoveStageOption.Y_Value.DoubleClick("81;10");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("15");
            Delay.Milliseconds(200);

            Keyboard.Press("{Return}");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.MoveStageOption.ButtonGoTo' at 63;10.", repo.SnapXUntitled.MoveStageOption.ButtonGoToInfo, new RecordItemIndex(14));
            repo.SnapXUntitled.MoveStageOption.ButtonGoTo.Click("63;10");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}'.", new RecordItemIndex(15));
            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.X_DRO_Value' at 95;21.", repo.SnapXUntitled.X_DRO_ValueInfo, new RecordItemIndex(16));
            repo.SnapXUntitled.X_DRO_Value.Click("95;21");
            Delay.Milliseconds(200);

            string Hardcoded_X_Value = "30";
            string Actual_X_Value    = repo.SnapXUntitled.X_DRO_Value.TextValue;

            ComparingDROValues.DROValue(Hardcoded_X_Value, Actual_X_Value);
            Delay.Milliseconds(500);


            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.Y_DRO_Value' at 85;17.", repo.SnapXUntitled.Y_DRO_ValueInfo, new RecordItemIndex(17));
            repo.SnapXUntitled.Y_DRO_Value.Click("85;17");
            Delay.Milliseconds(200);

            string Hardcoded_Y_Value = "15";
            string Actual_Y_Value    = repo.SnapXUntitled.Y_DRO_Value.TextValue;

            ComparingDROValues.DROValue(Hardcoded_Y_Value, Actual_Y_Value);
            Delay.Milliseconds(200);


            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.MoveStageOption.ButtonClose' at 52;9.", repo.SnapXUntitled.MoveStageOption.ButtonCloseInfo, new RecordItemIndex(21));
            repo.SnapXUntitled.MoveStageOption.ButtonClose.Click("52;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{LMenu}'.", new RecordItemIndex(18));
            Keyboard.Press("{LMenu}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'f'.", new RecordItemIndex(19));
            Keyboard.Press("f");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'n'.", new RecordItemIndex(20));
            Keyboard.Press("n");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.AxisAlignmentButton' at 15;15.", repo.SnapXUntitled.AxisAlignmentButtonInfo, new RecordItemIndex(22));
            repo.SnapXUntitled.AxisAlignmentButton.Click("15;15");
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (WindowText='-0.0000        ') on item 'SnapXUntitled.Y_DRO_Value'.", repo.SnapXUntitled.Y_DRO_ValueInfo, new RecordItemIndex(23));
                Validate.Attribute(repo.SnapXUntitled.Y_DRO_ValueInfo, "WindowText", "-0.0000        ", Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(23)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.AxisAlignmentButton' at Center.", repo.SnapXUntitled.AxisAlignmentButtonInfo, new RecordItemIndex(24));
            repo.SnapXUntitled.AxisAlignmentButton.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating ContainsImage (Screenshot: 'Screenshot_mm_inch' with region {X=0,Y=0,Width=36,Height=36}) on item 'SnapXUntitled.InchMillimeterButton'.", repo.SnapXUntitled.InchMillimeterButtonInfo, new RecordItemIndex(25));
                Validate.ContainsImage(repo.SnapXUntitled.InchMillimeterButtonInfo, InchMillimeterButton_Screenshot_mm_inch, InchMillimeterButton_Screenshot_mm_inch_Options, Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(25)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.InchMillimeterButton' at Center.", repo.SnapXUntitled.InchMillimeterButtonInfo, new RecordItemIndex(26));
            repo.SnapXUntitled.InchMillimeterButton.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating ContainsImage (Screenshot: 'Screenshot_inch_mm' with region {X=0,Y=0,Width=36,Height=36}) on item 'SnapXUntitled.InchMillimeterButton'.", repo.SnapXUntitled.InchMillimeterButtonInfo, new RecordItemIndex(27));
                Validate.ContainsImage(repo.SnapXUntitled.InchMillimeterButtonInfo, InchMillimeterButton_Screenshot_inch_mm, InchMillimeterButton_Screenshot_inch_mm_Options, Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(27)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.InchMillimeterButton' at Center.", repo.SnapXUntitled.InchMillimeterButtonInfo, new RecordItemIndex(28));
            repo.SnapXUntitled.InchMillimeterButton.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating ContainsImage (Screenshot: 'ScreenshotXY_RA' with region {X=0,Y=0,Width=36,Height=36}) on item 'SnapXUntitled.CartesianPolarButton'.", repo.SnapXUntitled.CartesianPolarButtonInfo, new RecordItemIndex(29));
                Validate.ContainsImage(repo.SnapXUntitled.CartesianPolarButtonInfo, CartesianPolarButton_ScreenshotXY_RA, CartesianPolarButton_ScreenshotXY_RA_Options, Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(29)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.CartesianPolarButton' at Center.", repo.SnapXUntitled.CartesianPolarButtonInfo, new RecordItemIndex(30));
            repo.SnapXUntitled.CartesianPolarButton.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating ContainsImage (Screenshot: 'ScreenshotRA_XY' with region {X=0,Y=0,Width=36,Height=36}) on item 'SnapXUntitled.CartesianPolarButton'.", repo.SnapXUntitled.CartesianPolarButtonInfo, new RecordItemIndex(31));
                Validate.ContainsImage(repo.SnapXUntitled.CartesianPolarButtonInfo, CartesianPolarButton_ScreenshotRA_XY, CartesianPolarButton_ScreenshotRA_XY_Options, Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(31)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.CartesianPolarButton' at Center.", repo.SnapXUntitled.CartesianPolarButtonInfo, new RecordItemIndex(32));
            repo.SnapXUntitled.CartesianPolarButton.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating ContainsImage (Screenshot: 'ScreenshotAxisOff' with region {X=0,Y=0,Width=36,Height=36}) on item 'SnapXUntitled.AxisAlignmentButton'.", repo.SnapXUntitled.AxisAlignmentButtonInfo, new RecordItemIndex(33));
                Validate.ContainsImage(repo.SnapXUntitled.AxisAlignmentButtonInfo, AxisAlignmentButton_ScreenshotAxisOff, AxisAlignmentButton_ScreenshotAxisOff_Options, Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(33)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.AxisAlignmentButton' at Center.", repo.SnapXUntitled.AxisAlignmentButtonInfo, new RecordItemIndex(34));
            repo.SnapXUntitled.AxisAlignmentButton.Click();
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating ContainsImage (Screenshot: 'ScreenshotAxisOn' with region {X=0,Y=0,Width=36,Height=36}) on item 'SnapXUntitled.AxisAlignmentButton'.", repo.SnapXUntitled.AxisAlignmentButtonInfo, new RecordItemIndex(35));
                Validate.ContainsImage(repo.SnapXUntitled.AxisAlignmentButtonInfo, AxisAlignmentButton_ScreenshotAxisOn, AxisAlignmentButton_ScreenshotAxisOn_Options, Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(35)); }

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.AxisAlignmentButton' at Center.", repo.SnapXUntitled.AxisAlignmentButtonInfo, new RecordItemIndex(36));
            repo.SnapXUntitled.AxisAlignmentButton.Click();
            Delay.Milliseconds(200);


            //////////////////////////////////
            //////////////////////////////////////////////
            ////////////////////////////////////////////////////////////
            //Here we check the value when switching from MM to INCH and from XY to RAZ

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.MoveStageButton' at Center.", repo.SnapXUntitled.MoveStageButtonInfo, new RecordItemIndex(37));
            repo.SnapXUntitled.MoveStageButton.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'SnapXUntitled.MoveStageOption.X_Value' at 83;10.", repo.SnapXUntitled.MoveStageOption.X_ValueInfo, new RecordItemIndex(38));
            repo.SnapXUntitled.MoveStageOption.X_Value.DoubleClick("83;10");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("20");
            Delay.Milliseconds(200);

            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'SnapXUntitled.MoveStageOption.Y_Value' at 81;10.", repo.SnapXUntitled.MoveStageOption.Y_ValueInfo, new RecordItemIndex(42));
            repo.SnapXUntitled.MoveStageOption.Y_Value.DoubleClick("81;10");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("{Back}");
            Delay.Milliseconds(200);

            Keyboard.Press("10");
            Delay.Milliseconds(200);

            Keyboard.Press("{Return}");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.MoveStageOption.ButtonGoTo' at 63;10.", repo.SnapXUntitled.MoveStageOption.ButtonGoToInfo, new RecordItemIndex(14));
            repo.SnapXUntitled.MoveStageOption.ButtonGoTo.Click("63;10");
            Delay.Milliseconds(200);

            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.InchMillimeterButton' at Center.", repo.SnapXUntitled.InchMillimeterButtonInfo, new RecordItemIndex(26));
            repo.SnapXUntitled.InchMillimeterButton.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.X_DRO_Value' at 95;21.", repo.SnapXUntitled.X_DRO_ValueInfo, new RecordItemIndex(16));
            repo.SnapXUntitled.X_DRO_Value.Click("95;21");
            Delay.Milliseconds(200);

            string ActualInchValueX    = repo.SnapXUntitled.X_DRO_Value.TextValue;
            string HardcodedInchValueX = "0.787";

            ComparingDROValues.DROValueInch(HardcodedInchValueX, ActualInchValueX);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.Y_DRO_Value' at 85;17.", repo.SnapXUntitled.Y_DRO_ValueInfo, new RecordItemIndex(17));
            repo.SnapXUntitled.Y_DRO_Value.Click("85;17");
            Delay.Milliseconds(200);

            string ActualInchValueY    = repo.SnapXUntitled.Y_DRO_Value.TextValue;
            string HardcodedInchValueY = "0.392";

            ComparingDROValues.DROValueInch(HardcodedInchValueY, ActualInchValueY);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.CartesianPolarButton' at Center.", repo.SnapXUntitled.CartesianPolarButtonInfo, new RecordItemIndex(32));
            repo.SnapXUntitled.CartesianPolarButton.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.X_DRO_Value' at 95;21.", repo.SnapXUntitled.X_DRO_ValueInfo, new RecordItemIndex(16));
            repo.SnapXUntitled.X_DRO_Value.Click("95;21");
            Delay.Milliseconds(200);

            string ActualXValueRAZ    = repo.SnapXUntitled.X_DRO_Value.TextValue;
            string HardcodedXValueRAZ = "0.879";

            ComparingDROValues.DROValueInch(HardcodedXValueRAZ, ActualXValueRAZ);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.Y_DRO_Value' at 85;17.", repo.SnapXUntitled.Y_DRO_ValueInfo, new RecordItemIndex(17));
            repo.SnapXUntitled.Y_DRO_Value.Click("85;17");
            Delay.Milliseconds(200);

            string ActualYValueRAZ    = repo.SnapXUntitled.Y_DRO_Value.TextValue;
            string HardcodedYValueRAZ = "26.466";

            ComparingDROValues.DROValue(HardcodedYValueRAZ, ActualYValueRAZ);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.InchMillimeterButton' at Center.", repo.SnapXUntitled.InchMillimeterButtonInfo, new RecordItemIndex(26));
            repo.SnapXUntitled.InchMillimeterButton.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.X_DRO_Value' at 95;21.", repo.SnapXUntitled.X_DRO_ValueInfo, new RecordItemIndex(16));
            repo.SnapXUntitled.X_DRO_Value.Click("95;21");
            Delay.Milliseconds(200);

            string ActualXValueRAZinMM    = repo.SnapXUntitled.X_DRO_Value.TextValue;
            string HardcodedXValueRAZinMM = "22.329";

            ComparingDROValues.DROValue(HardcodedXValueRAZinMM, ActualXValueRAZinMM);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.Y_DRO_Value' at 85;17.", repo.SnapXUntitled.Y_DRO_ValueInfo, new RecordItemIndex(17));
            repo.SnapXUntitled.Y_DRO_Value.Click("85;17");
            Delay.Milliseconds(200);

            string ActualYValueRAZinMM    = repo.SnapXUntitled.Y_DRO_Value.TextValue;
            string HardcodedYValueRAZinMM = "26.468";

            ComparingDROValues.DROValue(HardcodedYValueRAZinMM, ActualYValueRAZinMM);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.CartesianPolarButton' at Center.", repo.SnapXUntitled.CartesianPolarButtonInfo, new RecordItemIndex(32));
            repo.SnapXUntitled.CartesianPolarButton.Click();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SnapXUntitled.MoveStageOption.ButtonClose' at 52;9.", repo.SnapXUntitled.MoveStageOption.ButtonCloseInfo, new RecordItemIndex(21));
            repo.SnapXUntitled.MoveStageOption.ButtonClose.Click("52;9");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{LMenu}'.", new RecordItemIndex(18));
            Keyboard.Press("{LMenu}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'f'.", new RecordItemIndex(19));
            Keyboard.Press("f");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'n'.", new RecordItemIndex(20));
            Keyboard.Press("n");
            Delay.Milliseconds(0);
        }
 public static Delay Join(Delay a, Delay b) {
   if (a.delay == DelayStatus.Bottom) return b;
   if (b.delay == DelayStatus.Bottom) return a;
   // existential delay
   if (a.delay == DelayStatus.ExistentialDelay && b.delay == DelayStatus.UniversalDelay)
     return ExistentialDelay;
   if (a.delay == DelayStatus.UniversalDelay && b.delay == DelayStatus.ExistentialDelay)
     return ExistentialDelay;
   if (a.delay == DelayStatus.ExistentialDelay && b.delay == DelayStatus.NoDelay)
     return ExistentialDelay;
   if (a.delay == DelayStatus.NoDelay && b.delay == DelayStatus.ExistentialDelay)
     return ExistentialDelay;
   // end existential delay
   if (a.delay != b.delay) return Top;
   return a;
 }
Ejemplo n.º 48
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Pre-condition: Initial setup is done.
            Report.Log(ReportLevel.Info, "Section", "Pre-condition: Initial setup is done.", new RecordItemIndex(0));

            // Step## Customer configured with audiogram exists. Enabled Custom molds
            Report.Log(ReportLevel.Info, "Section", "Step## Customer configured with audiogram exists. Enabled Custom molds", new RecordItemIndex(1));

            TapOnRightButton("Tap on 'Settings'");
            Delay.Milliseconds(0);

            SwitchSettingUseMold(ValueConverter.ArgumentFromString <bool>("YesNo", "True"));
            Delay.Milliseconds(0);

            TapOnLeftButton("Press Back key");
            Delay.Milliseconds(0);

            CreatePatient("Higher", "Cluster");
            Delay.Milliseconds(0);

            SelectCustomerContinue();
            Delay.Milliseconds(0);

            CloseApp();
            Delay.Milliseconds(0);

            // Step## Open the app and select the customer from the list
            Report.Log(ReportLevel.Info, "Section", "Step## Open the app and select the customer from the list", new RecordItemIndex(8));

            StartApp();
            Delay.Milliseconds(0);

            SearchCustomer("Cluster");
            Delay.Milliseconds(0);

            SelectCustomer("Higher", "Cluster");
            Delay.Milliseconds(0);

            // Step## Enter audiogram - Right 80 dB, 80 dB, 80 dB, 80 dB for the required frequencies
            Report.Log(ReportLevel.Info, "Section", "Step## Enter audiogram - Right 80 dB, 80 dB, 80 dB, 80 dB for the required frequencies", new RecordItemIndex(12));

            TapEnterAudiogram();
            Delay.Milliseconds(0);

            DrawAudiogramPoints("Right", "500,80;1000,80;2000,80;4000,80");
            Delay.Milliseconds(0);

            TapOnRightButton("Click on 'Done'");
            Delay.Milliseconds(0);

            ValidateALertMessage("Do you want to enter values for the \"right\" ear side too?");
            Delay.Milliseconds(0);

            ClickOnAlertMessage("No");
            Delay.Milliseconds(0);

            // Validation## Overview screen is displayed with Send data to Hearing Aid step highlighted. Run SP  & Custom Mold & P3 cluster is recommended
            Report.Log(ReportLevel.Info, "Section", "Validation## Overview screen is displayed with Send data to Hearing Aid step highlighted. Run SP  & Custom Mold & P3 cluster is recommended", new RecordItemIndex(18));

            ValidateMonauralHISelected(H2, "Right");
            Delay.Milliseconds(0);

            ValidateMonauralCouplingSelected("Custom Mold", "Right");
            Delay.Milliseconds(0);

            ValidateMonauralClusterSelected("P3", "Right");
            Delay.Milliseconds(0);

            // Step## Select the cluster tab and choose a Cluster higher than the recommended cluster(i.e. P4)
            Report.Log(ReportLevel.Info, "Section", "Step## Select the cluster tab and choose a Cluster higher than the recommended cluster(i.e. P4)", new RecordItemIndex(22));

            TapOn("P3");
            Delay.Milliseconds(0);

            TapOn("P4");
            Delay.Milliseconds(0);

            // Validation## The new cluster is selected and returns to overview screen
            Report.Log(ReportLevel.Info, "Section", "Validation## The new cluster is selected and returns to overview screen", new RecordItemIndex(25));

            ValidateMonauralClusterSelected("P4", "Right");
            Delay.Milliseconds(0);

            VerifyActionBarTitle("Higher, Cluster");
            Delay.Milliseconds(0);

            // Step## Press Send data to HI
            Report.Log(ReportLevel.Info, "Section", "Step## Press Send data to HI", new RecordItemIndex(28));

            // Validation## warning message is displayed as Selected sound profile has high amplification output.
            Report.Log(ReportLevel.Info, "Section", "Validation## warning message is displayed as Selected sound profile has high amplification output.", new RecordItemIndex(29));

            TapOn("Send Data to Hearing Aid");
            Delay.Milliseconds(0);

            ValidateALertMessage("Selected Sound Profile has high amplification output.");
            Delay.Milliseconds(0);

            // Step## Click on OK in the pop-up appeared and Tap on Connect HI
            Report.Log(ReportLevel.Info, "Section", "Step## Click on OK in the pop-up appeared and Tap on Connect HI", new RecordItemIndex(32));

            // Validation## Tapping yes in connect confirmation should show HI is connected successfully.
            Report.Log(ReportLevel.Info, "Section", "Validation## Tapping yes in connect confirmation should show HI is connected successfully.", new RecordItemIndex(33));

            ClickOnAlertMessage("OK");
            Delay.Milliseconds(0);

            try {
                ConnectHI();
                Delay.Milliseconds(0);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(35)); }

            ConfirmationToneYes();
            Delay.Milliseconds(0);

            // Step## Press Check Sound Comfort
            Report.Log(ReportLevel.Info, "Section", "Step## Press Check Sound Comfort", new RecordItemIndex(37));

            TapOn("Check Sound Comfort");
            Delay.Milliseconds(0);

            // Validation## Sound coumfort page displayed
            Report.Log(ReportLevel.Info, "Section", "Validation## Sound coumfort page displayed", new RecordItemIndex(39));

            VerifyActionBarTitle("Sound Comfort");
            Delay.Milliseconds(0);

            // Step## Select the cluster tab and choose a sound profile higher than the recommended cluster.Ex : P5
            Report.Log(ReportLevel.Info, "Section", "Step## Select the cluster tab and choose a sound profile higher than the recommended cluster.Ex : P5", new RecordItemIndex(41));

            TapOnWithContentDesc("P4");
            Delay.Milliseconds(0);

            TapOn("P5");
            Delay.Milliseconds(0);

            ValidateALertMessage("Selected Sound Profile provides higher amplification than the recommended Profile. Are you sure of your selection?");
            Delay.Milliseconds(0);

            ValidateContents("OK;Reselect");
            Delay.Milliseconds(0);

            ClickOnAlertMessage("OK");
            Delay.Milliseconds(0);

            ValidateMonauralClusterSelected("P5", "Right");
            Delay.Milliseconds(0);

            LogSnapshot();
            Delay.Milliseconds(0);

            // Step##Press OK and Close Session
            Report.Log(ReportLevel.Info, "Section", "Step##Press OK and Close Session", new RecordItemIndex(49));

            SoundComfortOk();
            Delay.Milliseconds(0);

            CloseSession();
            Delay.Milliseconds(0);

            // Validation## Back to Client page
            Report.Log(ReportLevel.Info, "Section", "Validation## Back to Client page", new RecordItemIndex(52));

            VerifyActionBarTitle("Client");
            Delay.Milliseconds(0);
        }
 private AVal(bool unassigned, bool assigned, Delay delay) {
   this.Unassigned = unassigned;
   this.Assigned = assigned; 
   this.Delay = delay;
 }
Ejemplo n.º 50
0
 public DelayViewModel(Delay delay) : base(delay)
 {
 }
 public AVal SameButWith(Delay delay) {
   return For(this.Unassigned, this.Assigned, delay);
 }
Ejemplo n.º 52
0
 public BaseData(Delay delay, DeviceTypes deviceType)
 {
     this.Delay      = delay.ToString();
     this.DeviceType = deviceType.ToString();
 }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.Save_Button' at 6;8.", repo.ApplicationUnderTest.Save_ButtonInfo, new RecordItemIndex(0));
            repo.ApplicationUnderTest.Save_Button.Click("6;8");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(1));
            Delay.Duration(5000, false);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_FirmName) on item 'ApplicationUnderTest.AO1_Attorney_FirmName'.", repo.ApplicationUnderTest.AO1_Attorney_FirmNameInfo, new RecordItemIndex(2));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_FirmNameInfo, "TagValue", AO1_Attorney_FirmName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_FirmName, new RecordItemIndex(3));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_FirstName) on item 'ApplicationUnderTest.AO1_Attorney_FirstName'.", repo.ApplicationUnderTest.AO1_Attorney_FirstNameInfo, new RecordItemIndex(4));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_FirstNameInfo, "TagValue", AO1_Attorney_FirstName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_FirstName, new RecordItemIndex(5));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_LastName) on item 'ApplicationUnderTest.AO1_Attorney_LastName'.", repo.ApplicationUnderTest.AO1_Attorney_LastNameInfo, new RecordItemIndex(6));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_LastNameInfo, "TagValue", AO1_Attorney_LastName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_LastName, new RecordItemIndex(7));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_Address1) on item 'ApplicationUnderTest.AO1_Attorney_Address1'.", repo.ApplicationUnderTest.AO1_Attorney_Address1Info, new RecordItemIndex(8));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_Address1Info, "TagValue", AO1_Attorney_Address1);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_Address1, new RecordItemIndex(9));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_Address2) on item 'ApplicationUnderTest.AO1_Attorney_Address2'.", repo.ApplicationUnderTest.AO1_Attorney_Address2Info, new RecordItemIndex(10));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_Address2Info, "TagValue", AO1_Attorney_Address2);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_Address2, new RecordItemIndex(11));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_City) on item 'ApplicationUnderTest.AO1_Attorney_City'.", repo.ApplicationUnderTest.AO1_Attorney_CityInfo, new RecordItemIndex(12));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_CityInfo, "TagValue", AO1_Attorney_City);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_City, new RecordItemIndex(13));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_State) on item 'ApplicationUnderTest.AO1_Attorney_State'.", repo.ApplicationUnderTest.AO1_Attorney_StateInfo, new RecordItemIndex(14));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_StateInfo, "TagValue", AO1_Attorney_State);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_State, new RecordItemIndex(15));

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO1_Attorney_Zip' and assigning its value to variable 'AO1_Attorney_Zip'.", repo.ApplicationUnderTest.AO1_Attorney_ZipInfo, new RecordItemIndex(16));
            AO1_Attorney_Zip = repo.ApplicationUnderTest.AO1_Attorney_Zip.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_Zip) on item 'ApplicationUnderTest.AO1_Attorney_Zip'.", repo.ApplicationUnderTest.AO1_Attorney_ZipInfo, new RecordItemIndex(17));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_ZipInfo, "TagValue", AO1_Attorney_Zip);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_Zip, new RecordItemIndex(18));

            Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(19));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.AO_AD_EmailId' at Center.", repo.ApplicationUnderTest.AO_AD_EmailIdInfo, new RecordItemIndex(20));
            repo.ApplicationUnderTest.AO_AD_EmailId.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO1_Attorney_RepDate' and assigning its value to variable 'AO1_Attorney_RepDate'.", repo.ApplicationUnderTest.AO1_Attorney_RepDateInfo, new RecordItemIndex(21));
            AO1_Attorney_RepDate = repo.ApplicationUnderTest.AO1_Attorney_RepDate.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_RepDate, new RecordItemIndex(22));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_RepDate) on item 'ApplicationUnderTest.AO1_Attorney_RepDate'.", repo.ApplicationUnderTest.AO1_Attorney_RepDateInfo, new RecordItemIndex(23));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO1_Attorney_RepDateInfo, "TagValue", AO1_Attorney_RepDate);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_UseType' and assigning its value to variable 'AO1_Attorney_UseType'.", repo.ApplicationUnderTest.AO_AD_UseTypeInfo, new RecordItemIndex(24));
            AO1_Attorney_UseType = repo.ApplicationUnderTest.AO_AD_UseType.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_UseType, new RecordItemIndex(25));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_UseType) on item 'ApplicationUnderTest.AO_AD_UseType'.", repo.ApplicationUnderTest.AO_AD_UseTypeInfo, new RecordItemIndex(26));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_UseTypeInfo, "TagValue", AO1_Attorney_UseType);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_PhoneType' and assigning its value to variable 'AO1_Attorney_PhoneType'.", repo.ApplicationUnderTest.AO_AD_PhoneTypeInfo, new RecordItemIndex(27));
            AO1_Attorney_PhoneType = repo.ApplicationUnderTest.AO_AD_PhoneType.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_PhoneType, new RecordItemIndex(28));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_PhoneType) on item 'ApplicationUnderTest.AO_AD_PhoneType'.", repo.ApplicationUnderTest.AO_AD_PhoneTypeInfo, new RecordItemIndex(29));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_PhoneTypeInfo, "TagValue", AO1_Attorney_PhoneType);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_Source' and assigning its value to variable 'AO1_Attorney_Source'.", repo.ApplicationUnderTest.AO_AD_SourceInfo, new RecordItemIndex(30));
            AO1_Attorney_Source = repo.ApplicationUnderTest.AO_AD_Source.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_Source, new RecordItemIndex(31));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_Source) on item 'ApplicationUnderTest.AO_AD_Source'.", repo.ApplicationUnderTest.AO_AD_SourceInfo, new RecordItemIndex(32));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_SourceInfo, "TagValue", AO1_Attorney_Source);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_PhoneNumber' and assigning its value to variable 'AO1_Attorney_PhoneNumber'.", repo.ApplicationUnderTest.AO_AD_PhoneNumberInfo, new RecordItemIndex(33));
            AO1_Attorney_PhoneNumber = repo.ApplicationUnderTest.AO_AD_PhoneNumber.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_PhoneNumber, new RecordItemIndex(34));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_PhoneNumber) on item 'ApplicationUnderTest.AO_AD_PhoneNumber'.", repo.ApplicationUnderTest.AO_AD_PhoneNumberInfo, new RecordItemIndex(35));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_PhoneNumberInfo, "TagValue", AO1_Attorney_PhoneNumber);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_EmailUseType' and assigning its value to variable 'AO1_Attorney_EmailUseType'.", repo.ApplicationUnderTest.AO_AD_EmailUseTypeInfo, new RecordItemIndex(36));
            AO1_Attorney_EmailUseType = repo.ApplicationUnderTest.AO_AD_EmailUseType.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_EmailUseType, new RecordItemIndex(37));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_EmailUseType) on item 'ApplicationUnderTest.AO_AD_EmailUseType'.", repo.ApplicationUnderTest.AO_AD_EmailUseTypeInfo, new RecordItemIndex(38));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_EmailUseTypeInfo, "TagValue", AO1_Attorney_EmailUseType);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_EmailSource' and assigning its value to variable 'AO1_Attorney_EmailSource'.", repo.ApplicationUnderTest.AO_AD_EmailSourceInfo, new RecordItemIndex(39));
            AO1_Attorney_EmailSource = repo.ApplicationUnderTest.AO_AD_EmailSource.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_EmailSource, new RecordItemIndex(40));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_EmailSource) on item 'ApplicationUnderTest.AO_AD_EmailSource'.", repo.ApplicationUnderTest.AO_AD_EmailSourceInfo, new RecordItemIndex(41));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_EmailSourceInfo, "TagValue", AO1_Attorney_EmailSource);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'TagValue' from item 'ApplicationUnderTest.AO_AD_EmailId' and assigning its value to variable 'AO1_Attorney_Email'.", repo.ApplicationUnderTest.AO_AD_EmailIdInfo, new RecordItemIndex(42));
            AO1_Attorney_Email = repo.ApplicationUnderTest.AO_AD_EmailId.Element.GetAttributeValueText("TagValue");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "User", AO1_Attorney_Email, new RecordItemIndex(43));

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue=$AO1_Attorney_Email) on item 'ApplicationUnderTest.AO_AD_EmailId'.", repo.ApplicationUnderTest.AO_AD_EmailIdInfo, new RecordItemIndex(44));
            Validate.AttributeEqual(repo.ApplicationUnderTest.AO_AD_EmailIdInfo, "TagValue", AO1_Attorney_Email);
            Delay.Milliseconds(0);

            Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(45));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.SubmitButton1' at 46;15.", repo.ApplicationUnderTest.SubmitButton1Info, new RecordItemIndex(46));
            repo.ApplicationUnderTest.SubmitButton1.Click("46;15");
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.InsuranceInformation' at 80;21.", repo.ApplicationUnderTest.InsuranceInformationInfo, new RecordItemIndex(0));
            repo.ApplicationUnderTest.InsuranceInformation.Click("80;21");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'TRANSGUARD INSURANCE' on item 'ApplicationUnderTest.AD1_LI_CompanyName'.", repo.ApplicationUnderTest.AD1_LI_CompanyNameInfo, new RecordItemIndex(1));
            repo.ApplicationUnderTest.AD1_LI_CompanyName.Element.SetAttributeValue("TagValue", "TRANSGUARD INSURANCE");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'AD1_PolicyNumber_1' with focus on 'ApplicationUnderTest.AD1_LI_PolicyNumber'.", repo.ApplicationUnderTest.AD1_LI_PolicyNumberInfo, new RecordItemIndex(2));
            repo.ApplicationUnderTest.AD1_LI_PolicyNumber.PressKeys("AD1_PolicyNumber_1");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(3));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(4));
            Delay.Duration(2000, false);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'AD1_ClaimNumber_1' with focus on 'ApplicationUnderTest.AD1_LI_ClaimNumber'.", repo.ApplicationUnderTest.AD1_LI_ClaimNumberInfo, new RecordItemIndex(5));
            repo.ApplicationUnderTest.AD1_LI_ClaimNumber.PressKeys("AD1_ClaimNumber_1");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(6));
            Delay.Duration(500, false);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(7));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'AD1_LI_ContactName' with focus on 'ApplicationUnderTest.AD1_LI_ContactName'.", repo.ApplicationUnderTest.AD1_LI_ContactNameInfo, new RecordItemIndex(8));
            repo.ApplicationUnderTest.AD1_LI_ContactName.PressKeys("AD1_LI_ContactName");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'CA' on item 'ApplicationUnderTest.AD1_LI_USStateCode'.", repo.ApplicationUnderTest.AD1_LI_USStateCodeInfo, new RecordItemIndex(9));
            repo.ApplicationUnderTest.AD1_LI_USStateCode.Element.SetAttributeValue("TagValue", "CA");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(10));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'AD1_LI_Address1' with focus on 'ApplicationUnderTest.AD1_LI_Address1'.", repo.ApplicationUnderTest.AD1_LI_Address1Info, new RecordItemIndex(11));
            repo.ApplicationUnderTest.AD1_LI_Address1.PressKeys("AD1_LI_Address1");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'AD1_LI_Address2' with focus on 'ApplicationUnderTest.AD1_LI_Address2'.", repo.ApplicationUnderTest.AD1_LI_Address2Info, new RecordItemIndex(12));
            repo.ApplicationUnderTest.AD1_LI_Address2.PressKeys("AD1_LI_Address2");
            Delay.Milliseconds(0);

            Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(13));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -240 units.", new RecordItemIndex(14));
            Mouse.ScrollWheel(-240);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'AD1_LI_City' with focus on 'ApplicationUnderTest.AD1_LI_City'.", repo.ApplicationUnderTest.AD1_LI_CityInfo, new RecordItemIndex(15));
            repo.ApplicationUnderTest.AD1_LI_City.PressKeys("AD1_LI_City");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '900019001' with focus on 'ApplicationUnderTest.AD1_LI_ZipCode'.", repo.ApplicationUnderTest.AD1_LI_ZipCodeInfo, new RecordItemIndex(16));
            repo.ApplicationUnderTest.AD1_LI_ZipCode.PressKeys("900019001");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(17));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}'.", new RecordItemIndex(18));
            Keyboard.Press("{Return}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'Business' on item 'ApplicationUnderTest.AD1_LI_PhoneUseType'.", repo.ApplicationUnderTest.AD1_LI_PhoneUseTypeInfo, new RecordItemIndex(19));
            repo.ApplicationUnderTest.AD1_LI_PhoneUseType.Element.SetAttributeValue("TagValue", "Business");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'Cell' on item 'ApplicationUnderTest.AD1_LI_PhoneType'.", repo.ApplicationUnderTest.AD1_LI_PhoneTypeInfo, new RecordItemIndex(20));
            repo.ApplicationUnderTest.AD1_LI_PhoneType.Element.SetAttributeValue("TagValue", "Cell");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to 'Skip Trace' on item 'ApplicationUnderTest.AD1_LI_PhoneSource'.", repo.ApplicationUnderTest.AD1_LI_PhoneSourceInfo, new RecordItemIndex(21));
            repo.ApplicationUnderTest.AD1_LI_PhoneSource.Element.SetAttributeValue("TagValue", "Skip Trace");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}' with focus on 'ApplicationUnderTest.AD1_LI_PhoneSource'.", repo.ApplicationUnderTest.AD1_LI_PhoneSourceInfo, new RecordItemIndex(22));
            repo.ApplicationUnderTest.AD1_LI_PhoneSource.PressKeys("{Tab}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '9500095001' with focus on 'ApplicationUnderTest.AD1_LI_PhoneNumber'.", repo.ApplicationUnderTest.AD1_LI_PhoneNumberInfo, new RecordItemIndex(23));
            repo.ApplicationUnderTest.AD1_LI_PhoneNumber.PressKeys("9500095001");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}'.", new RecordItemIndex(24));
            Keyboard.Press("{Tab}");
            Delay.Milliseconds(0);

            Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(25));
        }
Ejemplo n.º 55
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='MaxUsers') on item 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(0));
            Validate.Attribute(repo.WebDocument19216801.MaxUsersInfo, "Id", "MaxUsers");
            Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue='155') on item 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(1));
            //Validate.Attribute(repo.WebDocument19216801.MaxUsersInfo, "TagValue", "155");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Value='155') on item 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(2));
            //Validate.Attribute(repo.WebDocument19216801.MaxUsersInfo, "Value", "155");
            //Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.MaxUsers' at 15;14.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(3));
            repo.WebDocument19216801.MaxUsers.Click("15;14");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Ctrl+A' Press with focus on 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(4));
            Keyboard.PrepareFocus(repo.WebDocument19216801.MaxUsers);
            Keyboard.Press(System.Windows.Forms.Keys.A | System.Windows.Forms.Keys.Control, 30, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '277' with focus on 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(5));
            repo.WebDocument19216801.MaxUsers.PressKeys("277");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Tab}' with focus on 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(6));
            repo.WebDocument19216801.MaxUsers.PressKeys("{Tab}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.DHCPv4' at 58;24.", repo.WebDocument19216801.DHCPv4Info, new RecordItemIndex(7));
            repo.WebDocument19216801.DHCPv4.Click("58;24");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='errTipClose') on item 'WebDocument19216801.ErrCloseMaxUsers'.", repo.WebDocument19216801.ErrCloseMaxUsersInfo, new RecordItemIndex(8));
            Validate.Attribute(repo.WebDocument19216801.ErrCloseMaxUsersInfo, "Class", "errTipClose");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='errClose-MaxUsers') on item 'WebDocument19216801.ErrCloseMaxUsers'.", repo.WebDocument19216801.ErrCloseMaxUsersInfo, new RecordItemIndex(9));
            Validate.Attribute(repo.WebDocument19216801.ErrCloseMaxUsersInfo, "Id", "errClose-MaxUsers");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='settings-updates-success settings-updates-error') on item 'WebDocument19216801.SettingsUpdatesSuccessSettingsUpdate'.", repo.WebDocument19216801.SettingsUpdatesSuccessSettingsUpdateInfo, new RecordItemIndex(10));
            Validate.Attribute(repo.WebDocument19216801.SettingsUpdatesSuccessSettingsUpdateInfo, "Class", "settings-updates-success settings-updates-error");
            Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot1' with region {X=0,Y=0,Width=712,Height=61}) on item 'WebDocument19216801.SettingsUpdatesSuccessSettingsUpdate'.", repo.WebDocument19216801.SettingsUpdatesSuccessSettingsUpdateInfo, new RecordItemIndex(11));
            //Validate.ContainsImage(repo.WebDocument19216801.SettingsUpdatesSuccessSettingsUpdateInfo, SettingsUpdatesSuccessSettingsUpdate_Screenshot1, SettingsUpdatesSuccessSettingsUpdate_Screenshot1_Options);
            //Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='confirm-wizard-text') on item 'WebDocumentIE.SorryThereWasAnErrorWhileUpdating'.", repo.WebDocumentIE.SorryThereWasAnErrorWhileUpdatingInfo, new RecordItemIndex(12));
            Validate.Attribute(repo.WebDocumentIE.SorryThereWasAnErrorWhileUpdatingInfo, "Class", "confirm-wizard-text");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Sorry! There was an error while updating your settings. Please try again a bit later.') on item 'WebDocumentIE.SorryThereWasAnErrorWhileUpdating'.", repo.WebDocumentIE.SorryThereWasAnErrorWhileUpdatingInfo, new RecordItemIndex(13));
            Validate.Attribute(repo.WebDocumentIE.SorryThereWasAnErrorWhileUpdatingInfo, "InnerText", "Sorry! There was an error while updating your settings. Please try again a bit later.");
            Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.MaxUsers' at 49;14.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(14));
            //repo.WebDocument19216801.MaxUsers.Click("49;14");
            //Delay.Milliseconds(200);

            //Report.Log(ReportLevel.Info, "Keyboard", "Key 'Ctrl+A' Press with focus on 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(15));
            //Keyboard.PrepareFocus(repo.WebDocument19216801.MaxUsers);
            //Keyboard.Press(System.Windows.Forms.Keys.A | System.Windows.Forms.Keys.Control, 30, Keyboard.DefaultKeyPressTime, 1, true);
            //Delay.Milliseconds(0);

            //Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Delete}' with focus on 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(16));
            //repo.WebDocument19216801.MaxUsers.PressKeys("{Delete}");
            //Delay.Milliseconds(0);

            //Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'abb' with focus on 'WebDocument19216801.MaxUsers'.", repo.WebDocument19216801.MaxUsersInfo, new RecordItemIndex(17));
            //repo.WebDocument19216801.MaxUsers.PressKeys("abb");
            //Delay.Milliseconds(0);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.DHCPv4' at 58;24.", repo.WebDocument19216801.DHCPv4Info, new RecordItemIndex(18));
            //repo.WebDocument19216801.DHCPv4.Click("58;24");
            //Delay.Milliseconds(200);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.DHCPv4' at 73;20.", repo.WebDocument19216801.DHCPv4Info, new RecordItemIndex(19));
            //repo.WebDocument19216801.DHCPv4.Click("73;20");
            //Delay.Milliseconds(200);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='confirm-wizard') on item 'WebDocumentIE.ConfirmWizard1.ConfirmWizard'.", repo.WebDocumentIE.ConfirmWizard1.ConfirmWizardInfo, new RecordItemIndex(20));
            //Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.ConfirmWizardInfo, "Id", "confirm-wizard");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='confirm-wizard-text') on item 'WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdated'.", repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, new RecordItemIndex(21));
            //Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, "Class", "confirm-wizard-text");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Your settings have been updated.') on item 'WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdated'.", repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, new RecordItemIndex(22));
            //Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, "InnerText", "Your settings have been updated.");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=237,Height=48}) on item 'WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdated'.", repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, new RecordItemIndex(23));
            //Validate.ContainsImage(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, YourSettingsHaveBeenUpdated_Screenshot2, YourSettingsHaveBeenUpdated_Screenshot2_Options);
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Id='LeaseTime') on item 'WebDocument19216801.LeaseTime'.", repo.WebDocument19216801.LeaseTimeInfo, new RecordItemIndex(24));
            //Validate.Attribute(repo.WebDocument19216801.LeaseTimeInfo, "Id", "LeaseTime");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue='86400') on item 'WebDocument19216801.LeaseTime'.", repo.WebDocument19216801.LeaseTimeInfo, new RecordItemIndex(25));
            //Validate.Attribute(repo.WebDocument19216801.LeaseTimeInfo, "TagValue", "86400");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Tabindex='7') on item 'WebDocument19216801.LeaseTime'.", repo.WebDocument19216801.LeaseTimeInfo, new RecordItemIndex(26));
            //Validate.Attribute(repo.WebDocument19216801.LeaseTimeInfo, "Tabindex", "7");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Value='86400') on item 'WebDocument19216801.LeaseTime'.", repo.WebDocument19216801.LeaseTimeInfo, new RecordItemIndex(27));
            //Validate.Attribute(repo.WebDocument19216801.LeaseTimeInfo, "Value", "86400");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'WebDocument19216801.WebDocument19216801' at 1908;175.", repo.WebDocument19216801.WebDocument19216801Info, new RecordItemIndex(28));
            //repo.WebDocument19216801.WebDocument19216801.MoveTo("1908;175");
            //Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            //Delay.Milliseconds(200);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'WebDocument19216801.WebDocument19216801' at 1918;884.", repo.WebDocument19216801.WebDocument19216801Info, new RecordItemIndex(29));
            //repo.WebDocument19216801.WebDocument19216801.MoveTo("1918;884");
            //Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            //Delay.Milliseconds(200);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.IPDelete' at 90;27.", repo.WebDocument19216801.IPDeleteInfo, new RecordItemIndex(30));
            //repo.WebDocument19216801.IPDelete.Click("90;27");
            //Delay.Milliseconds(200);
        }
Ejemplo n.º 56
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -480 units.", new RecordItemIndex(0));
            Mouse.ScrollWheel(-480);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.Footer_ClaimInfo' at 50;13.", repo.ApplicationUnderTest.Footer_ClaimInfoInfo, new RecordItemIndex(1));
            repo.ApplicationUnderTest.Footer_ClaimInfo.Click("50;13");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.AdverseInformation1' at 56;6.", repo.ApplicationUnderTest.AdverseInformation1Info, new RecordItemIndex(2));
            repo.ApplicationUnderTest.AdverseInformation1.Click("56;6");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -120 units.", new RecordItemIndex(3));
            Mouse.ScrollWheel(-120);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by 240 units.", new RecordItemIndex(4));
            Mouse.ScrollWheel(240);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Other Information') on item 'ApplicationUnderTest.FooterMappingOtherInformation'.", repo.ApplicationUnderTest.FooterMappingOtherInformationInfo, new RecordItemIndex(5));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOtherInformationInfo, "InnerText", "Other Information");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Personal Information') on item 'ApplicationUnderTest.FooterMappingPersonalInformation'.", repo.ApplicationUnderTest.FooterMappingPersonalInformationInfo, new RecordItemIndex(6));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingPersonalInformationInfo, "InnerText", "Personal Information");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_PI_FirstName') on item 'ApplicationUnderTest.FooterMappingOATPIFirstName'.", repo.ApplicationUnderTest.FooterMappingOATPIFirstNameInfo, new RecordItemIndex(7));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPIFirstNameInfo, "InnerText", "OAT_PI_FirstName");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_PI_LastName') on item 'ApplicationUnderTest.FooterMappingOATPILastName'.", repo.ApplicationUnderTest.FooterMappingOATPILastNameInfo, new RecordItemIndex(8));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPILastNameInfo, "InnerText", "OAT_PI_LastName");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_PI_Address1') on item 'ApplicationUnderTest.FooterMappingOATPIAddress1'.", repo.ApplicationUnderTest.FooterMappingOATPIAddress1Info, new RecordItemIndex(9));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPIAddress1Info, "InnerText", "OAT_PI_Address1");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_PI_Address2') on item 'ApplicationUnderTest.FooterMappingOATPIAddress2'.", repo.ApplicationUnderTest.FooterMappingOATPIAddress2Info, new RecordItemIndex(10));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPIAddress2Info, "InnerText", "OAT_PI_Address2");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_PI_City') on item 'ApplicationUnderTest.FooterMappingOATPICity'.", repo.ApplicationUnderTest.FooterMappingOATPICityInfo, new RecordItemIndex(11));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPICityInfo, "InnerText", "OAT_PI_City");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='AR') on item 'ApplicationUnderTest.FooterMappingOATPIState'.", repo.ApplicationUnderTest.FooterMappingOATPIStateInfo, new RecordItemIndex(12));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPIStateInfo, "InnerText", "AR");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='40001') on item 'ApplicationUnderTest.FooterMappingOATPIZip'.", repo.ApplicationUnderTest.FooterMappingOATPIZipInfo, new RecordItemIndex(13));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPIZipInfo, "InnerText", "40001");
            Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_PI_POE') on item 'ApplicationUnderTest.FooterMappingOATPIPOE'.", repo.ApplicationUnderTest.FooterMappingOATPIPOEInfo, new RecordItemIndex(14));
            //Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPIPOEInfo, "InnerText", "OAT_PI_POE");
            //Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Insurance Information') on item 'ApplicationUnderTest.FooterMapping_InsuranceInformation2'.", repo.ApplicationUnderTest.FooterMapping_InsuranceInformation2Info, new RecordItemIndex(15));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMapping_InsuranceInformation2Info, "InnerText", "Insurance Information");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='GRANITE STATE INSURANCE COMPANY') on item 'ApplicationUnderTest.FooterMappingOATInsuranceCompany'.", repo.ApplicationUnderTest.FooterMappingOATInsuranceCompanyInfo, new RecordItemIndex(16));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATInsuranceCompanyInfo, "InnerText", "GRANITE STATE INSURANCE COMPANY");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAIAAAD9MqGbAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAActJREFUOE+Nk72OAWEUhucSFHpW/IeMIEEoaMQWroCRCAmdiEQh7sA9KBQaFVHo3ACNTtBIRPwLESv+9uWMXbNY8xSTb86cd773O+d8zPlKqVRSqVQymezjX5CgVCqLxSIkFyVWCoXC6/UGRODz+ZBcKBSYVqul0+nS6fRms7lu/4btdpvNZg0GA5NIJEwm03g85r+8ptfr0WI2m9lsNiYUCrlcrvl8TtFXNJtNFILjuH6/v9vtPB4PEw6HnU7ndDrlU54Bh36/X6PRSKXSSqWCiNvtFqXM5XIorFqtxp77/X69XotSNhoNrVaLkrAs2+l0EFksFu+V5BNKuVyez+cpuFwuf5WTyYTy2u02fSbgExr4DAaDp9OJggIlXlarVTQaRZdrtRpl3PvsdrsUBALl4XCo1+soHfL0ej3W2OHRJyFQ4tDoUiaTQR7EiMRiMfzij0/iyTkBxhBi2MNueAKq5z0C5U9t8ftUKoU7YbFYHn0SvBLNxfTBLR8+n4/HYzKZlEgkjz4JTMJl+mDPaDQOBgM+fKNcLr9qMq6H1WplcANwmEgkMhwOv25gxCiJf79jNBrF43Gz2Xy52WggxHa7/VMEDocDHqvV6jdzIdUd0ubwVQAAAABJRU5ErkJggg==') on item 'ApplicationUnderTest.True1'.", repo.ApplicationUnderTest.True1Info, new RecordItemIndex(17));
            Validate.AttributeEqual(repo.ApplicationUnderTest.True1Info, "Src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAIAAAD9MqGbAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAActJREFUOE+Nk72OAWEUhucSFHpW/IeMIEEoaMQWroCRCAmdiEQh7sA9KBQaFVHo3ACNTtBIRPwLESv+9uWMXbNY8xSTb86cd773O+d8zPlKqVRSqVQymezjX5CgVCqLxSIkFyVWCoXC6/UGRODz+ZBcKBSYVqul0+nS6fRms7lu/4btdpvNZg0GA5NIJEwm03g85r+8ptfr0WI2m9lsNiYUCrlcrvl8TtFXNJtNFILjuH6/v9vtPB4PEw6HnU7ndDrlU54Bh36/X6PRSKXSSqWCiNvtFqXM5XIorFqtxp77/X69XotSNhoNrVaLkrAs2+l0EFksFu+V5BNKuVyez+cpuFwuf5WTyYTy2u02fSbgExr4DAaDp9OJggIlXlarVTQaRZdrtRpl3PvsdrsUBALl4XCo1+soHfL0ej3W2OHRJyFQ4tDoUiaTQR7EiMRiMfzij0/iyTkBxhBi2MNueAKq5z0C5U9t8ftUKoU7YbFYHn0SvBLNxfTBLR8+n4/HYzKZlEgkjz4JTMJl+mDPaDQOBgM+fKNcLr9qMq6H1WplcANwmEgkMhwOv25gxCiJf79jNBrF43Gz2Xy52WggxHa7/VMEDocDHqvV6jdzIdUd0ubwVQAAAABJRU5ErkJggg==");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_IL_PolicyNumber') on item 'ApplicationUnderTest.FooterMappingOATILPolicyNumber'.", repo.ApplicationUnderTest.FooterMappingOATILPolicyNumberInfo, new RecordItemIndex(18));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILPolicyNumberInfo, "InnerText", "OAT_IL_PolicyNumber");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_IL_ClaimNumber') on item 'ApplicationUnderTest.FooterMappingOATILClaimNumber'.", repo.ApplicationUnderTest.FooterMappingOATILClaimNumberInfo, new RecordItemIndex(19));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILClaimNumberInfo, "InnerText", "OAT_IL_ClaimNumber");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Phone/Fax Information') on item 'ApplicationUnderTest.FooterMappingAO1_PhoneInformation2'.", repo.ApplicationUnderTest.FooterMappingAO1_PhoneInformation2Info, new RecordItemIndex(20));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_PhoneInformation2Info, "InnerText", "Phone/Fax Information");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Use Type') on item 'ApplicationUnderTest.FooterMappingAO1_AttorneyUseType'.", repo.ApplicationUnderTest.FooterMappingAO1_AttorneyUseTypeInfo, new RecordItemIndex(21));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_AttorneyUseTypeInfo, "InnerText", "Use Type");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Phone Type') on item 'ApplicationUnderTest.FooterMappingAO1_AttorneyPhoneType'.", repo.ApplicationUnderTest.FooterMappingAO1_AttorneyPhoneTypeInfo, new RecordItemIndex(22));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_AttorneyPhoneTypeInfo, "InnerText", "Phone Type");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='VOIP') on item 'ApplicationUnderTest.FooterMappingOATVOIP'.", repo.ApplicationUnderTest.FooterMappingOATVOIPInfo, new RecordItemIndex(23));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATVOIPInfo, "InnerText", "VOIP");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Source') on item 'ApplicationUnderTest.FooterMappingAO1_AttorneySource'.", repo.ApplicationUnderTest.FooterMappingAO1_AttorneySourceInfo, new RecordItemIndex(24));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_AttorneySourceInfo, "InnerText", "Source");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Skip Trace') on item 'ApplicationUnderTest.FooterMappingOATSkipTrace'.", repo.ApplicationUnderTest.FooterMappingOATSkipTraceInfo, new RecordItemIndex(25));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATSkipTraceInfo, "InnerText", "Skip Trace");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Phone number') on item 'ApplicationUnderTest.FooterMappingAO1_AttorneyPhoneNumber'.", repo.ApplicationUnderTest.FooterMappingAO1_AttorneyPhoneNumberInfo, new RecordItemIndex(26));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_AttorneyPhoneNumberInfo, "InnerText", "Phone number");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='(950) 009-5007') on item 'ApplicationUnderTest.FooterMappingOATPhoneNumberValue'.", repo.ApplicationUnderTest.FooterMappingOATPhoneNumberValueInfo, new RecordItemIndex(27));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATPhoneNumberValueInfo, "InnerText", "(950) 009-5007");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Adjuster Information') on item 'ApplicationUnderTest.FooterMapping_AdjusterInformation'.", repo.ApplicationUnderTest.FooterMapping_AdjusterInformationInfo, new RecordItemIndex(28));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMapping_AdjusterInformationInfo, "InnerText", "Adjuster Information");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_IL_ContactName') on item 'ApplicationUnderTest.FooterMappingOATILContactName'.", repo.ApplicationUnderTest.FooterMappingOATILContactNameInfo, new RecordItemIndex(29));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILContactNameInfo, "InnerText", "OAT_IL_ContactName");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='NJ') on item 'ApplicationUnderTest.FooterMappingOATILState'.", repo.ApplicationUnderTest.FooterMappingOATILStateInfo, new RecordItemIndex(30));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILStateInfo, "InnerText", "NJ");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_IL_Address1') on item 'ApplicationUnderTest.FooterMappingOATILAddress1'.", repo.ApplicationUnderTest.FooterMappingOATILAddress1Info, new RecordItemIndex(31));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILAddress1Info, "InnerText", "OAT_IL_Address1");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_IL_Address2') on item 'ApplicationUnderTest.FooterMappingOATILAddress2'.", repo.ApplicationUnderTest.FooterMappingOATILAddress2Info, new RecordItemIndex(32));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILAddress2Info, "InnerText", "OAT_IL_Address2");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='30003') on item 'ApplicationUnderTest.FooterMappingOATILZip'.", repo.ApplicationUnderTest.FooterMappingOATILZipInfo, new RecordItemIndex(33));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILZipInfo, "InnerText", "30003");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='OAT_IL_City') on item 'ApplicationUnderTest.FooterMappingOATILCity'.", repo.ApplicationUnderTest.FooterMappingOATILCityInfo, new RecordItemIndex(34));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingOATILCityInfo, "InnerText", "OAT_IL_City");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Phone/Fax Information') on item 'ApplicationUnderTest.FooterMappingAO1_PhoneInformation2'.", repo.ApplicationUnderTest.FooterMappingAO1_PhoneInformation2Info, new RecordItemIndex(35));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_PhoneInformation2Info, "InnerText", "Phone/Fax Information");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Use Type') on item 'ApplicationUnderTest.FooterMappingAO1_AttorneyUseType'.", repo.ApplicationUnderTest.FooterMappingAO1_AttorneyUseTypeInfo, new RecordItemIndex(36));
            Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAO1_AttorneyUseTypeInfo, "InnerText", "Use Type");
            Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Other Information') on item 'ApplicationUnderTest.OtherInformation1'.", repo.ApplicationUnderTest.OtherInformation1Info, new RecordItemIndex(37));
            //Validate.AttributeEqual(repo.ApplicationUnderTest.OtherInformation1Info, "InnerText", "Other Information");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Fact of Loss') on item 'ApplicationUnderTest.FooterMappingFactOfLoss'.", repo.ApplicationUnderTest.FooterMappingFactOfLossInfo, new RecordItemIndex(38));
            //Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingFactOfLossInfo, "InnerText", "Fact of Loss");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Head on collisions') on item 'ApplicationUnderTest.FooterMappingHeadOnCollisions1'.", repo.ApplicationUnderTest.FooterMappingHeadOnCollisions1Info, new RecordItemIndex(39));
            //Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingHeadOnCollisions1Info, "InnerText", "Head on collisions");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Description') on item 'ApplicationUnderTest.FooterMappingDescription'.", repo.ApplicationUnderTest.FooterMappingDescriptionInfo, new RecordItemIndex(40));
            //Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingDescriptionInfo, "InnerText", "Description");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Accident description') on item 'ApplicationUnderTest.FooterMappingAccidentDescription1'.", repo.ApplicationUnderTest.FooterMappingAccidentDescription1Info, new RecordItemIndex(41));
            //Validate.AttributeEqual(repo.ApplicationUnderTest.FooterMappingAccidentDescription1Info, "InnerText", "Accident description");
            //Delay.Milliseconds(100);
        }
Ejemplo n.º 57
0
        public static void records7()
        {
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_20' at 6;7.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_20.MoveTo("6;7", 1000);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(0);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas' at 87;63.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas.MoveTo("87;63", 1000);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(350);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonParsers' at 49;7.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonParsers.Click("49;7", 1000);
            //Delay.Milliseconds(3600);
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_6' at 9;10.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_6.MoveTo("9;10", 1000);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(120);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas' at 217;95.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas.MoveTo("217;95", 1000);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(560);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonFormatters' at 74;8.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonFormatters.Click("74;8", 1000);
            //Delay.Milliseconds(600);
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_8' at 6;11.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_8.MoveTo("6;11", 1000);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(0);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas' at 341;143.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas.MoveTo("341;143", 1000);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(710);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonEndpoints' at 81;13.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonEndpoints.Click("81;13", 1000);
            //Delay.Milliseconds(730);
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_1' at 8;16.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureIcon_1.MoveTo("8;16", 1000);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(290);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas' at 471;164.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas.MoveTo("471;164", 1000);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(280);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonRouters' at 52;10.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.ButtonRouters.Click("52;10", 1000);
            //Delay.Milliseconds(480);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureLine' at 10;5.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureLine.Click("10;5", 300);
            //Delay.Milliseconds(410);
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_20_3824' at 19;26.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_20_3824.MoveTo("19;26", 300);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(510);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_6_16856' at 11;15.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_6_16856.MoveTo("11;15", 300);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(1040);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureLine' at 7;9.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureLine.Click("7;9", 300);
            //Delay.Milliseconds(590);
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_6_16856' at 23;25.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_6_16856.MoveTo("23;25", 300);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(990);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_8_292104' at 4;9.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_8_292104.MoveTo("4;9", 300);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(1040);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureLine' at 13;7.");
            repo.WebDocumentLocalhost_8888.ContainerComponent_Palette.PictureLine.Click("13;7", 300);
            //Delay.Milliseconds(690);
            Report.Info("Mouse Left Down item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_8_292104' at 18;19.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_8_292104.MoveTo("18;19", 300);
            Mouse.ButtonDown(MouseButtons.Left);
            //Delay.Milliseconds(630);
            Report.Info("Mouse Left Up item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_1_422125' at 10;15.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_1_422125.MoveTo("10;15", 300);
            Mouse.ButtonUp(MouseButtons.Left);
            //Delay.Milliseconds(1900);
            Report.Info("Mouse Right Click item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_20_3824' at 22;20.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_20_3824.Click(MouseButtons.Right, "22;20", 300);
            //Delay.Milliseconds(690);
            Report.Info("Mouse Left Click item 'ContextMenuIexplore.MenuItemConfigure_Component' at 46;12.");
            repo.ContextMenuIexplore.MenuItemConfigure_Component.Click("46;12", 300);
            //Delay.Milliseconds(770);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___' at 89;5.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___.Click("89;5", 300);
            //Delay.Milliseconds(1180);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton' at 111;11.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton.Click("111;11", 300);
            //Delay.Milliseconds(1800);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextFtpsource' at 61;12.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextFtpsource.Click("61;12", 300);
            //Delay.Milliseconds(1520);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad' at 32;13.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad.Click("32;13", 300);
            //Delay.Milliseconds(3270);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId' at 92;9.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId.Click("92;9", 300);
            //Delay.Milliseconds(680);
            Report.Info("Key sequence 'source'.");
            Keyboard.Press("source", 100);
            //Delay.Milliseconds(2490);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave' at 37;8.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave.Click("37;8", 300);
            //Delay.Milliseconds(740);
            Report.Info("Mouse Right Click item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_6_16856' at 26;26.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_6_16856.Click(MouseButtons.Right, "26;26", 300);
            //Delay.Milliseconds(600);
            Report.Info("Mouse Left Click item 'ContextMenuIexplore.MenuItemConfigure_Component' at 26;10.");
            repo.ContextMenuIexplore.MenuItemConfigure_Component.Click("26;10", 300);
            //Delay.Milliseconds(930);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___' at 95;13.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___.Click("95;13", 300);
            //Delay.Milliseconds(930);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton' at 90;9.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton.Click("90;9", 300);
            //Delay.Milliseconds(910);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextParserfile' at 52;2.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextParserfile.Click("52;2", 300);
            //Delay.Milliseconds(1040);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad' at 30;12.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad.Click("30;12", 300);
            //Delay.Milliseconds(840);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId1' at 93;10.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId1.Click("93;10", 300);
            //Delay.Milliseconds(1400);
            Report.Info("Key sequence 'test'.");
            Keyboard.Press("test", 100);
            //Delay.Milliseconds(2990);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave' at 40;7.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave.Click("40;7", 300);
            //Delay.Milliseconds(800);
            Report.Info("Mouse Right Click item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_8_292104' at 23;24.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_8_292104.Click(MouseButtons.Right, "23;24", 300);
            //Delay.Milliseconds(570);
            Report.Info("Mouse Left Click item 'ContextMenuIexplore.MenuItemConfigure_Component' at 31;10.");
            repo.ContextMenuIexplore.MenuItemConfigure_Component.Click("31;10", 300);
            //Delay.Milliseconds(1040);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___' at 51;8.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___.Click("51;8", 300);
            //Delay.Milliseconds(940);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton' at 121;9.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton.Click("121;9", 300);
            //Delay.Milliseconds(1550);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextDbFormatter' at 78;10.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextDbFormatter.Click("78;10", 300);
            //Delay.Milliseconds(650);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad' at 27;10.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad.Click("27;10", 300);
            //Delay.Milliseconds(1090);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId2' at 90;11.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId2.Click("90;11", 300);
            //Delay.Milliseconds(460);
            Report.Info("Key sequence 'dbformat'.");
            Keyboard.Press("dbformat", 100);
            //Delay.Milliseconds(3340);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave' at 40;16.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave.Click("40;16", 300);
            //Delay.Milliseconds(910);
            Report.Info("Mouse Right Click item 'WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_1_422125' at 15;11.");
            repo.WebDocumentLocalhost_8888.ContainerGraphCanvas1.PictureIcon_1_422125.Click(MouseButtons.Right, "15;11", 300);
            //Delay.Milliseconds(540);
            Report.Info("Mouse Left Click item 'ContextMenuIexplore.MenuItemConfigure_Component' at 24;10.");
            repo.ContextMenuIexplore.MenuItemConfigure_Component.Click("24;10", 300);
            //Delay.Milliseconds(930);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId3' at 89;13.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextServiceId3.Click("89;13", 300);
            //Delay.Milliseconds(380);
            Report.Info("Key sequence 'dest'.");
            Keyboard.Press("dest", 100);
            //Delay.Milliseconds(2280);
            Report.Info("Key sequence 'db'.");
            Keyboard.Press("db", 100);
            //Delay.Milliseconds(2120);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___' at 48;16.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad_template___.Click("48;16", 300);
            //Delay.Milliseconds(870);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton' at 123;9.", repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButtonInfo, new RecordItemIndex(1));
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonButton.Click("123;9");
            Delay.Milliseconds(840);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.TextDbDest' at 73;6.", repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextDbDestInfo, new RecordItemIndex(2));
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.TextDbDest.Click("73;6");
            Delay.Milliseconds(1520);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad' at 47;11.", repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoadInfo, new RecordItemIndex(3));
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonLoad.Click("47;11");
            Delay.Milliseconds(2510);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave' at 32;10.", repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSaveInfo, new RecordItemIndex(4));
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonSave.Click("32;10");
            Delay.Milliseconds(870);

            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerVBox.TextNameText' at 89;10.");
            repo.WebDocumentLocalhost_8888.ContainerVBox.TextNameText.Click("89;10", 300);
            //Delay.Milliseconds(2820);
            Report.Info("Key sequence 'ftp{RShiftKey down}_{RShiftKey up}to'.");
            Keyboard.Press("ftp{RShiftKey down}_{RShiftKey up}to", 100);
            //Delay.Milliseconds(1980);
            Report.Info("Key sequence '{RShiftKey down}_{RShiftKey up}db'.");
            Keyboard.Press("{RShiftKey down}_{RShiftKey up}db", 100);
            //Delay.Milliseconds(1680);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerVBox.TextUITextField' at 83;19.");
            repo.WebDocumentLocalhost_8888.ContainerVBox.TextUITextField.Click("83;19", 300);
            //Delay.Milliseconds(70);
            Report.Info("Key sequence 'test'.");
            Keyboard.Press("test", 100);
            //Delay.Milliseconds(1020);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FormForm.CheckBoxRecovery' at 5;7.");
            repo.WebDocumentLocalhost_8888.FormForm.CheckBoxRecovery.Click("5;7", 300);
            //Delay.Milliseconds(600);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FormForm.CheckBoxPrcsEvntLog' at 5;7.");
            repo.WebDocumentLocalhost_8888.FormForm.CheckBoxPrcsEvntLog.Click("5;7", 300);
            //Delay.Milliseconds(730);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FormForm.CheckBoxMsgEvntLog' at 5;7.");
            repo.WebDocumentLocalhost_8888.FormForm.CheckBoxMsgEvntLog.Click("5;7", 300);
            //Delay.Milliseconds(850);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerVBox.ButtonSave1' at 18;14.");
            repo.WebDocumentLocalhost_8888.ContainerVBox.ButtonSave1.Click("18;14", 300);
            //Delay.Milliseconds(1260);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonOK' at 42;18.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonOK.Click("42;18", 300);
            //Delay.Milliseconds(880);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.ContainerVBox.ButtonPublish' at 13;16.");
            repo.WebDocumentLocalhost_8888.ContainerVBox.ButtonPublish.Click("13;16", 300);
            //Delay.Milliseconds(1760);
            Report.Info("Mouse Left Click item 'WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonOK1' at 31;10.");
            repo.WebDocumentLocalhost_8888.FlexObjectIceFish.ButtonOK1.Click("31;10", 300);
            //Delay.Milliseconds(900);
        }
Ejemplo n.º 58
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor = 1.00;

            Init();

            // B.3
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nB.3\r\nValidating AttributeRegex (Text~'HeavyBid') on item 'HeavyBidServerSetup.TextContainersForValidation.Titlebar'.", repo.HeavyBidServerSetup.TextContainersForValidation.TitlebarInfo, new RecordItemIndex(0));
                Validate.AttributeRegex(repo.HeavyBidServerSetup.TextContainersForValidation.TitlebarInfo, "Text", new Regex("HeavyBid"), null, false);
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(0)); }
            
            // B.3
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nB.3\r\nValidating AttributeRegex (Text~'Setup') on item 'HeavyBidServerSetup.TextContainersForValidation.Titlebar'.", repo.HeavyBidServerSetup.TextContainersForValidation.TitlebarInfo, new RecordItemIndex(1));
                Validate.AttributeRegex(repo.HeavyBidServerSetup.TextContainersForValidation.TitlebarInfo, "Text", new Regex("Setup"), null, false);
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(1)); }
            
            // B.3
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nB.3\r\nValidating AttributeRegex (Text~$YearVersion) on item 'HeavyBidServerSetup.TextContainersForValidation.Titlebar'.", repo.HeavyBidServerSetup.TextContainersForValidation.TitlebarInfo, new RecordItemIndex(2));
                Validate.AttributeRegex(repo.HeavyBidServerSetup.TextContainersForValidation.TitlebarInfo, "Text", new Regex(YearVersion), null, false);
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(2)); }
            
            // B.5
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nB.5\r\nValidating AttributeRegex (Enabled~'') on item 'HeavyBidServerSetup.InstallTypes.StandaloneInstallType'.", repo.HeavyBidServerSetup.InstallTypes.StandaloneInstallTypeInfo, new RecordItemIndex(3));
                Validate.AttributeRegex(repo.HeavyBidServerSetup.InstallTypes.StandaloneInstallTypeInfo, "Enabled", new Regex(""), null, false);
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(3)); }
            
            // B.5
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nB.5\r\nValidating AttributeRegex (Enabled~'') on item 'HeavyBidServerSetup.InstallTypes.MultiUserInstallType'.", repo.HeavyBidServerSetup.InstallTypes.MultiUserInstallTypeInfo, new RecordItemIndex(4));
                Validate.AttributeRegex(repo.HeavyBidServerSetup.InstallTypes.MultiUserInstallTypeInfo, "Enabled", new Regex(""), null, false);
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }
            
            // B.5
            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nB.5\r\nValidating AttributeRegex (Enabled~'') on item 'HeavyBidServerSetup.InstallTypes.TrainingInstallType'.", repo.HeavyBidServerSetup.InstallTypes.TrainingInstallTypeInfo, new RecordItemIndex(5));
                Validate.AttributeRegex(repo.HeavyBidServerSetup.InstallTypes.TrainingInstallTypeInfo, "Enabled", new Regex(""), null, false);
                Delay.Milliseconds(0);
            } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); }
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'HeavyBidServerSetup.InstallTypes.MultiUserInstallType' at Center.", repo.HeavyBidServerSetup.InstallTypes.MultiUserInstallTypeInfo, new RecordItemIndex(6));
            repo.HeavyBidServerSetup.InstallTypes.MultiUserInstallType.Click();
            Delay.Milliseconds(200);
            
            Report.Log(ReportLevel.Info, "Wait", "Waiting 1m to exist. Associated repository item: 'HeavyBidServerSetup.Buttons.NextButton'", repo.HeavyBidServerSetup.Buttons.NextButtonInfo, new ActionTimeout(60000), new RecordItemIndex(7));
            repo.HeavyBidServerSetup.Buttons.NextButtonInfo.WaitForExists(60000);
            
            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'HeavyBidServerSetup.Buttons.NextButton' at Center.", repo.HeavyBidServerSetup.Buttons.NextButtonInfo, new RecordItemIndex(8));
            repo.HeavyBidServerSetup.Buttons.NextButton.Click();
            Delay.Milliseconds(200);
            
        }
        public void Install()
        {
            string[] exeList = Directory.GetFiles(@"./Resources/", "DellUpdate*");


            if (repo.DHSForm.DellUpdateText1Info.Exists(15000) && repo.DHSForm.DellUpdateText2Info.Exists(15000) && repo.DHSForm.INSTALLInfo.Exists(15000))
            {
                Report.Success("Dell update text displayed correctly");
            }


            if (exeList.Length != 0)
            {
                File.Delete(exeList[0]);

                Delay.Seconds(15);
            }


            repo.DHSForm.INSTALL.Click();
            Delay.Seconds(2);
            Keyboard.Press("{ENTER}");
            Delay.Seconds(2);

            Keyboard.Press("{TAB 2}");
            Delay.Seconds(1);
            Keyboard.Press("{ENTER}");

            Delay.Seconds(2);
            repo.SaveAs.Item202.Click();
            Delay.Seconds(2);

            Keyboard.Press(Directory.GetCurrentDirectory() + "\\Resources\\");
            Delay.Seconds(2);

            Keyboard.Press("{ENTER}");
            Delay.Seconds(2);
            repo.SaveAs.Save.Click();
            Delay.Seconds(20);
            repo.MicrosoftEdge.Self.As <Ranorex.Form>().Close();

            exeList = Directory.GetFiles(@"./Resources/", "DellUpdate*");
            if (exeList.Length > 0)
            {
                Report.Success("Dell Update download successfull");
            }
            else
            {
                Report.Failure("Dell Update download failure");
            }

            exeList = Directory.GetFiles(@"./Resources/Installer", "DellUpdate*");


            Process.Start(Directory.GetCurrentDirectory() + exeList[0]);

            Delay.Seconds(5);

            if (repo.DellUpdate17Setup.SelfInfo.Exists(15000))
            {
                repo.DellUpdate17Setup.ButtonInstall.Click();
                Delay.Seconds(30);
                repo.DellUpdate17Setup.ButtonClose.Click();
                Delay.Seconds(2);
            }

//          repo.DellUpdateSetup.Next.Click();
//          Delay.Seconds(2);
//          repo.DellUpdateSetup.CheckNext.Click();
//          Delay.Seconds(2);
//          repo.DellUpdateSetup.Next.Click();
//          Delay.Seconds(2);
//          repo.DellUpdateSetup.ButtonInstall.Click();
//          Delay.Seconds(20);
//          repo.DellUpdateSetup.ButtonFinish.Click();
//          Delay.Seconds(2);

            if (File.Exists(@"C:\Program Files (x86)\Dell Update\DellUpService.exe"))
            {
                Report.Success("Dell Update install successfull");
            }
            else
            {
                Report.Failure("Dell update install failure");
            }
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 30;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Street Address 1
            Report.Log(ReportLevel.Info, "Section", "Street Address 1", new RecordItemIndex(0));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Street_Address1' with focus on 'Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.UStreetAddress1'.", repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.UStreetAddress1Info, new RecordItemIndex(1));
            repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.UStreetAddress1.PressKeys(Street_Address1);
            Delay.Milliseconds(30);

            // Street Address 2
            Report.Log(ReportLevel.Info, "Section", "Street Address 2", new RecordItemIndex(2));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Street_Address2' with focus on 'Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.UStreetAddress2'.", repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.UStreetAddress2Info, new RecordItemIndex(3));
            repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.UStreetAddress2.PressKeys(Street_Address2);
            Delay.Milliseconds(30);

            // City
            Report.Log(ReportLevel.Info, "Section", "City", new RecordItemIndex(4));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$City' with focus on 'Login1.SpFormfieldUCity'.", repo.Login1.SpFormfieldUCityInfo, new RecordItemIndex(5));
            repo.Login1.SpFormfieldUCity.PressKeys(City);
            Delay.Milliseconds(30);

            // County/Parish
            Report.Log(ReportLevel.Info, "Section", "County/Parish", new RecordItemIndex(6));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$County_Parish' with focus on 'Login1.SpFormfieldUCountyParish'.", repo.Login1.SpFormfieldUCountyParishInfo, new RecordItemIndex(7));
            repo.Login1.SpFormfieldUCountyParish.PressKeys(County_Parish);
            Delay.Milliseconds(30);

            // State
            Report.Log(ReportLevel.Info, "Section", "State", new RecordItemIndex(8));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$State' with focus on 'Login1.SpFormfieldUState'.", repo.Login1.SpFormfieldUStateInfo, new RecordItemIndex(9));
            repo.Login1.SpFormfieldUState.PressKeys(State);
            Delay.Milliseconds(30);

            // Province
            Report.Log(ReportLevel.Info, "Section", "Province", new RecordItemIndex(10));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Province' with focus on 'Login1.SpFormfieldUProvince'.", repo.Login1.SpFormfieldUProvinceInfo, new RecordItemIndex(11));
            repo.Login1.SpFormfieldUProvince.PressKeys(Province);
            Delay.Milliseconds(30);

            // Zip/Postal
            Report.Log(ReportLevel.Info, "Section", "Zip/Postal", new RecordItemIndex(12));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Zip' with focus on 'Login1.SpFormfieldUZipPostalCode'.", repo.Login1.SpFormfieldUZipPostalCodeInfo, new RecordItemIndex(13));
            repo.Login1.SpFormfieldUZipPostalCode.PressKeys(Zip);
            Delay.Milliseconds(30);

            // Country
            Report.Log(ReportLevel.Info, "Section", "Country", new RecordItemIndex(14));

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{LShiftKey down}{Tab}{LShiftKey up}' with focus on 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(15));
            repo.Login1.Self.EnsureVisible();
            Keyboard.Press("{LShiftKey down}{Tab}{LShiftKey up}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(16));
            Delay.Duration(300, false);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Country'.", new RecordItemIndex(17));
            Keyboard.Press(Country);
            Delay.Milliseconds(30);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(18));
            Delay.Duration(1000, false);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{enter}'.", new RecordItemIndex(19));
            Keyboard.Press("{enter}");
            Delay.Milliseconds(0);
        }