C# Class WindowsPhoneTestFramework.Server.WCFHostedAutomationController.ApplicationAutomationController

Inheritance: IApplicationAutomationController
Mostra file Open project: Expensify/WindowsPhoneTestFramework

Public Methods

Method Description
ApplicationAutomationController ( IPhoneAutomationServiceControl serviceControl, AutomationIdentification automationIdentification ) : System
ControlContainsImage ( string controlId, string imageName, int ordinal, string parentId ) : bool
FindMessageBox ( string title, string message, string buttons ) : bool
GetControlColor ( string controlIdOrText, int ordinal, string parentId ) : string
GetIsChecked ( string control ) : string
GetPositionOfControl ( string controlId, int ordinal, string parentId ) : RectangleF
GetPositionOfControlOrText ( string textOrControlId, int ordinal, string parentId ) : RectangleF
GetPositionOfText ( string text ) : RectangleF
GetProgressOfControl ( string controlId ) : ProgressValues
GetProgressOfControlOrText ( string textOrControlId ) : ProgressValues
GetProgressOfText ( string text ) : ProgressValues
HorizontalScroll ( string controlId, int amount ) : bool
InvokeAppBarTap ( string text ) : bool
InvokeControlTapAction ( string controlId, int ordinal, string parentId ) : bool
InvokeMessageboxTapAction ( string buttonText ) : bool
LookForAppBarItem ( string text ) : bool
LookForControl ( string controlId, int ordinal, string parentId ) : bool
LookForControlOrText ( string textOrControlId, int ordinal, string parentId ) : bool
LookForText ( string text ) : bool
LookIsAlive ( ) : bool
Navigate ( string direction ) : bool
Pivot ( string pivotName, PivotType pivot ) : bool
Pivot ( string pivotName, string itemName ) : bool
ScrollIntoView ( string controlId, int ordinal, string parentId = null ) : bool
ScrollIntoViewListItem ( string controlWithinItemId ) : bool
SelectListItem ( string controlWithinItemId ) : bool
SelectListItem ( string selectorName, int indexOfItemToSelect ) : bool
SetApplicationSettings ( string>.Dictionary values ) : bool
SetApplicationSettings ( string key, string value ) : bool
SetFocus ( string controlId, int ordinal, string parentId ) : bool
SetTextOnControl ( string controlId, string text, int ordinal, string parentId ) : bool
SetValueOnControl ( string controlId, string value, int ordinal, string parentId ) : bool
StopBackgroundAudio ( ) : bool
TakePicture ( Bitmap &bitmap ) : bool
TakePicture ( string controlId, Bitmap &bitmap, int ordinal, string parentId ) : bool
Toggle ( string buttonName ) : bool
TryGetAllApplicationSettings ( string>.Dictionary &values ) : bool
TryGetApplicationSettings ( string key, string &value ) : bool
TryGetControlIsEnabled ( string controlId, bool &isEnabled, int ordinal, string parentId ) : bool
TryGetPerformanceInformation ( string>.Dictionary &values ) : bool
TryGetTextFromControl ( string controlId, string &text, int ordinal, string parentId ) : bool
TryGetValueFromControl ( string controlId, string &text, int ordinal, string parentId ) : bool
VerticalScroll ( string controlId, int amount ) : bool
WaitForAppBarItem ( string text, System.TimeSpan timeout ) : bool
WaitForControl ( string controlId, System.TimeSpan timeout, int ordinal, string parentId ) : bool
WaitForControl ( string controlId, int ordinal, string parentId ) : bool
WaitForControlOrText ( string textOrControlId, System.TimeSpan timeout, int ordinal, string parentId ) : bool
WaitForControlOrText ( string textOrControlId, int ordinal, string parentId ) : bool
WaitForControlToBeEnabled ( string controlId, int ordinal, string parentId, System.TimeSpan timeout = null ) : bool
WaitForControlToDisappear ( string controlId, System.TimeSpan timeout, int ordinal, string parentId ) : bool
WaitForMessageBox ( string title, string message, string buttons ) : bool
WaitForText ( string text ) : bool
WaitForText ( string text, System.TimeSpan timeout ) : bool
WaitForTextToChange ( string controlId, string text, System.TimeSpan timeout, int ordinal, string parentId ) : bool
WaitForTextToDisappear ( string text, System.TimeSpan timeout ) : bool
WaitIsAlive ( ) : bool

Private Methods

Method Description
CommonScroll ( string controlId, int horizontalAmount, int verticalAmount ) : bool
CreateAutomationIdentifier ( string id ) : AutomationIdentifier
CreateControlOrTextAutomationIdentifier ( string textOrControlId ) : AutomationIdentifier
CreateTextOnlyAutomationIdentifier ( string text ) : AutomationIdentifier
GetPositionOfAutomationIdentifier ( AutomationIdentifier controlIdentifier, int ordinal, AutomationIdentifier parentIdentifier ) : RectangleF
GetProgressOfAutomationIdentifier ( AutomationIdentifier automationIdentifier ) : ProgressValues
LogFailedMessage ( ResultBase toReturn ) : void
LookForAutomationIdentifer ( AutomationIdentifier controlIdentifier, int ordinal, AutomationIdentifier parentIdentifier ) : bool
SetTextOnAutomationIdentification ( AutomationIdentifier controlIdentifier, string text, int ordinal, AutomationIdentifier parentIdentifier ) : bool
SetValueOnAutomationIdentification ( AutomationIdentifier controlIdentifier, string textValue, int ordinal, AutomationIdentifier parentIdentifier ) : bool
SyncExecuteCommand ( CommandBase command ) : ResultBase
SyncLookExecuteCommand ( CommandBase command ) : ResultBase
TryGetTextFromAutomationIdentifier ( AutomationIdentifier controlIdentifier, string &text, int ordinal, AutomationIdentifier parentIdentifier ) : bool
TryGetValueFromAutomationIdentifier ( AutomationIdentifier controlIdentifier, string &value, int ordinal, AutomationIdentifier parentIdentifier ) : bool
WaitForTestSuccess ( Func test, System.TimeSpan timeout ) : bool

Method Details

ApplicationAutomationController() public method

public ApplicationAutomationController ( IPhoneAutomationServiceControl serviceControl, AutomationIdentification automationIdentification ) : System
serviceControl IPhoneAutomationServiceControl
automationIdentification AutomationIdentification
return System

ControlContainsImage() public method

public ControlContainsImage ( string controlId, string imageName, int ordinal, string parentId ) : bool
controlId string
imageName string
ordinal int
parentId string
return bool

FindMessageBox() public method

public FindMessageBox ( string title, string message, string buttons ) : bool
title string
message string
buttons string
return bool

GetControlColor() public method

public GetControlColor ( string controlIdOrText, int ordinal, string parentId ) : string
controlIdOrText string
ordinal int
parentId string
return string

GetIsChecked() public method

public GetIsChecked ( string control ) : string
control string
return string

GetPositionOfControl() public method

public GetPositionOfControl ( string controlId, int ordinal, string parentId ) : RectangleF
controlId string
ordinal int
parentId string
return System.Drawing.RectangleF

GetPositionOfControlOrText() public method

public GetPositionOfControlOrText ( string textOrControlId, int ordinal, string parentId ) : RectangleF
textOrControlId string
ordinal int
parentId string
return System.Drawing.RectangleF

GetPositionOfText() public method

public GetPositionOfText ( string text ) : RectangleF
text string
return System.Drawing.RectangleF

GetProgressOfControl() public method

public GetProgressOfControl ( string controlId ) : ProgressValues
controlId string
return WindowsPhoneTestFramework.Server.Core.ProgressValues

GetProgressOfControlOrText() public method

public GetProgressOfControlOrText ( string textOrControlId ) : ProgressValues
textOrControlId string
return WindowsPhoneTestFramework.Server.Core.ProgressValues

GetProgressOfText() public method

public GetProgressOfText ( string text ) : ProgressValues
text string
return WindowsPhoneTestFramework.Server.Core.ProgressValues

HorizontalScroll() public method

public HorizontalScroll ( string controlId, int amount ) : bool
controlId string
amount int
return bool

InvokeAppBarTap() public method

public InvokeAppBarTap ( string text ) : bool
text string
return bool

InvokeControlTapAction() public method

public InvokeControlTapAction ( string controlId, int ordinal, string parentId ) : bool
controlId string
ordinal int
parentId string
return bool

InvokeMessageboxTapAction() public method

public InvokeMessageboxTapAction ( string buttonText ) : bool
buttonText string
return bool

LookForAppBarItem() public method

public LookForAppBarItem ( string text ) : bool
text string
return bool

LookForControl() public method

public LookForControl ( string controlId, int ordinal, string parentId ) : bool
controlId string
ordinal int
parentId string
return bool

LookForControlOrText() public method

public LookForControlOrText ( string textOrControlId, int ordinal, string parentId ) : bool
textOrControlId string
ordinal int
parentId string
return bool

LookForText() public method

public LookForText ( string text ) : bool
text string
return bool

LookIsAlive() public method

public LookIsAlive ( ) : bool
return bool

Navigate() public method

public Navigate ( string direction ) : bool
direction string
return bool

Pivot() public method

public Pivot ( string pivotName, PivotType pivot ) : bool
pivotName string
pivot PivotType
return bool

Pivot() public method

public Pivot ( string pivotName, string itemName ) : bool
pivotName string
itemName string
return bool

ScrollIntoView() public method

public ScrollIntoView ( string controlId, int ordinal, string parentId = null ) : bool
controlId string
ordinal int
parentId string
return bool

ScrollIntoViewListItem() public method

public ScrollIntoViewListItem ( string controlWithinItemId ) : bool
controlWithinItemId string
return bool

SelectListItem() public method

public SelectListItem ( string controlWithinItemId ) : bool
controlWithinItemId string
return bool

SelectListItem() public method

public SelectListItem ( string selectorName, int indexOfItemToSelect ) : bool
selectorName string
indexOfItemToSelect int
return bool

SetApplicationSettings() public method

public SetApplicationSettings ( string>.Dictionary values ) : bool
values string>.Dictionary
return bool

SetApplicationSettings() public method

public SetApplicationSettings ( string key, string value ) : bool
key string
value string
return bool

SetFocus() public method

public SetFocus ( string controlId, int ordinal, string parentId ) : bool
controlId string
ordinal int
parentId string
return bool

SetTextOnControl() public method

public SetTextOnControl ( string controlId, string text, int ordinal, string parentId ) : bool
controlId string
text string
ordinal int
parentId string
return bool

SetValueOnControl() public method

public SetValueOnControl ( string controlId, string value, int ordinal, string parentId ) : bool
controlId string
value string
ordinal int
parentId string
return bool

StopBackgroundAudio() public method

public StopBackgroundAudio ( ) : bool
return bool

TakePicture() public method

public TakePicture ( Bitmap &bitmap ) : bool
bitmap System.Drawing.Bitmap
return bool

TakePicture() public method

public TakePicture ( string controlId, Bitmap &bitmap, int ordinal, string parentId ) : bool
controlId string
bitmap System.Drawing.Bitmap
ordinal int
parentId string
return bool

Toggle() public method

public Toggle ( string buttonName ) : bool
buttonName string
return bool

TryGetAllApplicationSettings() public method

public TryGetAllApplicationSettings ( string>.Dictionary &values ) : bool
values string>.Dictionary
return bool

TryGetApplicationSettings() public method

public TryGetApplicationSettings ( string key, string &value ) : bool
key string
value string
return bool

TryGetControlIsEnabled() public method

public TryGetControlIsEnabled ( string controlId, bool &isEnabled, int ordinal, string parentId ) : bool
controlId string
isEnabled bool
ordinal int
parentId string
return bool

TryGetPerformanceInformation() public method

public TryGetPerformanceInformation ( string>.Dictionary &values ) : bool
values string>.Dictionary
return bool

TryGetTextFromControl() public method

public TryGetTextFromControl ( string controlId, string &text, int ordinal, string parentId ) : bool
controlId string
text string
ordinal int
parentId string
return bool

TryGetValueFromControl() public method

public TryGetValueFromControl ( string controlId, string &text, int ordinal, string parentId ) : bool
controlId string
text string
ordinal int
parentId string
return bool

VerticalScroll() public method

public VerticalScroll ( string controlId, int amount ) : bool
controlId string
amount int
return bool

WaitForAppBarItem() public method

public WaitForAppBarItem ( string text, System.TimeSpan timeout ) : bool
text string
timeout System.TimeSpan
return bool

WaitForControl() public method

public WaitForControl ( string controlId, System.TimeSpan timeout, int ordinal, string parentId ) : bool
controlId string
timeout System.TimeSpan
ordinal int
parentId string
return bool

WaitForControl() public method

public WaitForControl ( string controlId, int ordinal, string parentId ) : bool
controlId string
ordinal int
parentId string
return bool

WaitForControlOrText() public method

public WaitForControlOrText ( string textOrControlId, System.TimeSpan timeout, int ordinal, string parentId ) : bool
textOrControlId string
timeout System.TimeSpan
ordinal int
parentId string
return bool

WaitForControlOrText() public method

public WaitForControlOrText ( string textOrControlId, int ordinal, string parentId ) : bool
textOrControlId string
ordinal int
parentId string
return bool

WaitForControlToBeEnabled() public method

public WaitForControlToBeEnabled ( string controlId, int ordinal, string parentId, System.TimeSpan timeout = null ) : bool
controlId string
ordinal int
parentId string
timeout System.TimeSpan
return bool

WaitForControlToDisappear() public method

public WaitForControlToDisappear ( string controlId, System.TimeSpan timeout, int ordinal, string parentId ) : bool
controlId string
timeout System.TimeSpan
ordinal int
parentId string
return bool

WaitForMessageBox() public method

public WaitForMessageBox ( string title, string message, string buttons ) : bool
title string
message string
buttons string
return bool

WaitForText() public method

public WaitForText ( string text ) : bool
text string
return bool

WaitForText() public method

public WaitForText ( string text, System.TimeSpan timeout ) : bool
text string
timeout System.TimeSpan
return bool

WaitForTextToChange() public method

public WaitForTextToChange ( string controlId, string text, System.TimeSpan timeout, int ordinal, string parentId ) : bool
controlId string
text string
timeout System.TimeSpan
ordinal int
parentId string
return bool

WaitForTextToDisappear() public method

public WaitForTextToDisappear ( string text, System.TimeSpan timeout ) : bool
text string
timeout System.TimeSpan
return bool

WaitIsAlive() public method

public WaitIsAlive ( ) : bool
return bool