コード例 #1
0
        private void getAndConditions(string name, string automationId, string className, string controlType)
        {
            ResultAndCondition = null;

            var cmdlet =
                new GetControlCmdletBase {
                Name = name, AutomationId = automationId, Class = className, CaseSensitive = false
            };

            var common =
                new CommonCmdletBase();

            // 20131128
            //ResultAndCondition =
            //    (common.GetControlConditionsForWildcardSearch(cmdlet, controlType, cmdlet.CaseSensitive, true) as AndCondition);
            // 20131129
            // ResultAndCondition =
            //     (common.GetControlConditionsForWildcardSearch(cmdlet, controlType, cmdlet.CaseSensitive));
            ResultAndCondition =
                // common.GetWildcardSearchCondition(cmdlet) as AndCondition;
                ControlSearcher.GetWildcardSearchCondition(
                    new ControlSearcherData {
                Name          = name,
                AutomationId  = automationId,
                Class         = className,
                CaseSensitive = false
            }) as AndCondition;
        }
コード例 #2
0
        private void checkConditionsArray(
            string controlType,
            string controlTypeProperty,
            string controlTypeValue)
        {
            Condition[] conditions = null;
            cmdlet =
                new UIAutomation.Commands.GetUiaControlCommand();
            cmdletBase =
                new GetControlCmdletBase();

            Condition condition =
                // cmdlet.GetWildcardSearchCondition(cmdlet);
                ControlSearcher.GetWildcardSearchCondition(
                    new ControlSearcherData {
                // completely new
                Name         = cmdlet.Name,
                AutomationId = cmdlet.AutomationId,
                Class        = cmdlet.Class,
                Value        = cmdlet.Value,
                ControlType  = cmdlet.ControlType
            });

            // 20140630
            // conditions = ((AndCondition)condition).GetConditions();
            if (null != condition as AndCondition)
            {
                conditions = ((AndCondition)condition).GetConditions();
            }
            else if (null != condition as OrCondition)
            {
                conditions = ((OrCondition)condition).GetConditions();
            }
            else
            {
                conditions = new[] { condition };
            }

            foreach (Condition cond in conditions)
            {
                if ((cond as PropertyCondition) != null)
                {
                    MbUnit.Framework.Assert.AreEqual(
                        controlTypeProperty,
                        (cond as PropertyCondition).Property.ProgrammaticName);
                    MbUnit.Framework.Assert.AreEqual(
                        controlTypeValue,
                        (cond as PropertyCondition).Value.ToString());
                }
                else
                {
                    MbUnit.Framework.Assert.AreEqual(cond, Condition.TrueCondition);
                }
            }
        }
コード例 #3
0
        private void getOrConditions(string searchString, string controlType)
        {
            ResultOrCondition = null;

            GetControlCmdletBase cmdlet =
                new GetControlCmdletBase {
                ContainsText = searchString
            };

            CommonCmdletBase common =
                new CommonCmdletBase();

            // 20131129
            // ResultOrCondition =
            //     (common.GetControlConditionsForExactSearch(cmdlet, controlType, cmdlet.CaseSensitive, false) as OrCondition);
            ResultOrCondition =
                // common.GetTextSearchCondition(searchString, new string[] { controlType }, cmdlet.CaseSensitive) as OrCondition;
                ControlSearcher.GetTextSearchCondition(searchString, new string[] { controlType }, cmdlet.CaseSensitive) as OrCondition;
        }
コード例 #4
0
 public InvokeScriptCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #5
0
 public InvokeControlClickCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #6
0
 public HideCurrentHighlighterCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #7
0
 internal SeReadWebDriverPageSourceCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #8
0
ファイル: CommonCmdletBase.cs プロジェクト: MatkoHanus/STUPS
 protected internal void WriteWarn(CommonCmdletBase cmdlet, string text)
 {
     string reportString =
         CmdletSignature(cmdlet) +
         text;
     
     // 20140317
     // turning off the logger
     // Logger.Warn(reportString);
 }
コード例 #9
0
ファイル: SetFocusCommand.cs プロジェクト: apetrovskiy/STUPS
 public SetFocusCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #10
0
 public ConvertFromTableCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #11
0
 public ShowDesktopCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #12
0
 public ConvertFromTableCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #13
0
ファイル: EventCommand.cs プロジェクト: lddd99/guiatuomation
 public EventCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #14
0
 internal SeAddChromeArgumentCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #15
0
ファイル: GetVmCommand.cs プロジェクト: MatkoHanus/STUPS
 internal GetVmCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #16
0
 internal SeReadWebElementLocationCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #17
0
 internal NewHostConnectionDataCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #18
0
 public MoveCursorCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #19
0
ファイル: CommonCmdletBase.cs プロジェクト: MatkoHanus/STUPS
 protected internal void WriteDebug(CommonCmdletBase cmdlet, object obj)
 {
     string reportString =
         CmdletSignature(cmdlet) +
         obj.ToString();
     
     WriteLog(LogLevels.Debug, reportString);
 }
コード例 #20
0
 internal TmxOpenTestScenarioCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #21
0
 internal SeStartSafariCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #22
0
 public WaitControlStateCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #23
0
 internal SeGetWebDriverCookiesCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #24
0
 internal SeSetIeOptionCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #25
0
 internal SeNavigationCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #26
0
ファイル: RemoveVmCommand.cs プロジェクト: apetrovskiy/STUPS
 internal RemoveVmCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #27
0
 internal SeSaveScreenshotCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #28
0
 NewHostConnectionDataCommand GIVEN_command(CommonCmdletBase cmdlet)
 {
     return new NewHostConnectionDataCommand(cmdlet);
 }
コード例 #29
0
 internal SeSetWebDriverTimeoutCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #30
0
 internal SeAddFirefoxExtensionCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #31
0
 internal SeWebDriverCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #32
0
 internal SeSetWebElementKeysCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #33
0
 internal SeReadWebElementDisplayedCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #34
0
ファイル: MoqCommand.cs プロジェクト: lddd99/guiatuomation
 internal MoqCommand(CommonCmdletBase cmdlet)
 {
 }
コード例 #35
0
 public InvokeWizardCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #36
0
 internal SeAddChromeArgumentCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #37
0
ファイル: CommonCmdletBase.cs プロジェクト: MatkoHanus/STUPS
 protected internal void WriteDebug(CommonCmdletBase cmdlet, string text)
 {
     string reportString =
         CmdletSignature(cmdlet) +
         text;
     
     WriteLog(LogLevels.Debug, reportString);
 }
コード例 #38
0
 internal SeReadWebElementAttributeCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #39
0
ファイル: CommonCmdletBase.cs プロジェクト: MatkoHanus/STUPS
 protected internal void WriteInfo(CommonCmdletBase cmdlet, string text)
 {
     if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text.Trim())) {
         string reportString =
             CmdletSignature(cmdlet) +
             text;
         
         // 20140317
         // turning off the logger
         // Logger.Info(reportString);
     } else {
         // 20140317
         // turning off the logger
         // Logger.Info(text);
     }
 }
コード例 #40
0
 internal SeGetWebDriverCookiesCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #41
0
 public SetControlKeysCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #42
0
 internal SeGetElementByTypeCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #43
0
 public GetControlCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #44
0
ファイル: TamsCommand.cs プロジェクト: apetrovskiy/STUPS
 internal TamsCommand(CommonCmdletBase cmdlet)
 {
     Cmdlet = cmdlet;
 }
コード例 #45
0
 internal SeReadWebElementTagNameCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #46
0
 internal SeSubmitWebElementCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #47
0
ファイル: NewVmCommand.cs プロジェクト: lddd99/guiatuomation
 internal NewVmCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #48
0
 public ConvertToSearchCriteriaCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #49
0
 public WaitControlIsEnabledCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #50
0
 public HideCurrentHighlighterCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #51
0
ファイル: DataCommand.cs プロジェクト: apetrovskiy/STUPS
 internal DataCommand(CommonCmdletBase cmdlet)
 {
     Cmdlet = cmdlet;
 }
コード例 #52
0
ファイル: GetWindowCommand.cs プロジェクト: apetrovskiy/STUPS
 public GetWindowCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #53
0
ファイル: Win32Command.cs プロジェクト: apetrovskiy/STUPS
 internal Win32Command(CommonCmdletBase cmdlet)
 {
     Cmdlet = cmdlet;
 }
コード例 #54
0
 internal SeWebElementCommand(CommonCmdletBase cmdlet) : base(cmdlet)
 {
 }
コード例 #55
0
 public SetControlTextCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #56
0
ファイル: GetControlCommand.cs プロジェクト: MatkoHanus/STUPS
 public GetControlCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #57
0
 internal StopServerCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #58
0
ファイル: EventCommand.cs プロジェクト: apetrovskiy/STUPS
 public EventCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
     
 }
コード例 #59
0
 public RegisterUnexpectedWindowCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
コード例 #60
0
 public WaitControlIsVisibleCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
     
 }