Exemplo n.º 1
0
        public override void Body()
        {
            ActualResult = QAliber.RemotingModel.TestCaseResult.Passed;

            try
            {
                UIControlBase c = UIControlBase.FindControlByPath(control);

                if (!c.Exists)
                {
                    ActualResult = QAliber.RemotingModel.TestCaseResult.Failed;
                    throw new InvalidOperationException("Control not found");
                }

                c.Write(keystrokes);
            }
            catch (System.Reflection.TargetInvocationException)
            {
                ActualResult = QAliber.RemotingModel.TestCaseResult.Failed;
            }
        }