패키지 | mx.automation |
인터페이스 | public interface IAutomationManager extends IEventDispatcher |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
기타 예제
속성 | 정의 주체 | ||
---|---|---|---|
automationEnvironment : Object
The automation environment for this automation manager. | IAutomationManager | ||
recording : Boolean [읽기 전용]
Indicates whether recording is taking place. | IAutomationManager | ||
replaying : Boolean [읽기 전용]
Indicates whether replay is taking place. | IAutomationManager |
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
Sets the automation manager to record mode. | IAutomationManager | ||
Returns an id for the given object that can be used
with the resolveID() method. | IAutomationManager | ||
Returns an id part for the given object that can be used in the resolveIDPart() method. | IAutomationManager | ||
Decrement the cache counter. | IAutomationManager | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
Takes the automation manager out of record mode. | IAutomationManager | ||
Returns the text to display as the type of the object. | IAutomationManager | ||
Returns the text to display as the description for the object. | IAutomationManager | ||
Returns all children of this object that are visible within the testing
hierarchy. | IAutomationManager | ||
getChildrenFromIDPart(obj:IAutomationObject, part:AutomationIDPart = null, ignoreShowInHierarchy:Boolean = false):Array
Returns all children of this object that are visible within the testing
hierarchy and meet the criteria in the automation part. | IAutomationManager | ||
Returns the automation object under the given coordinate. | IAutomationManager | ||
getParent(obj:IAutomationObject, parentToStopAt:IAutomationObject = null, ignoreShowInHierarchy:Boolean = false):IAutomationObject
Returns the next parent that is visible within the automation hierarchy. | IAutomationManager | ||
getProperties(obj:IAutomationObject, names:Array = null, forVerification:Boolean = true, forDescription:Boolean = true):Array
Returns the values for a set of properties. | IAutomationManager | ||
The display rectangle enclosing the DisplayObject. | IAutomationManager | ||
Returns the object implementing the IAutomationTabularData interface through which
the tabular data can be obtained. | IAutomationManager | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
Increments the cache counter. | IAutomationManager | ||
Tests if the provided target needs to wait until a previous
operation completes. | IAutomationManager | ||
Returns true if an object and all of its parents are visible. | IAutomationManager | ||
Records the event. | IAutomationManager | ||
Records the custom event. | IAutomationManager | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
Replays the specified event. | IAutomationManager | ||
Resolves an id to automation objects. | IAutomationManager | ||
Resolves an id part to an Array of automation objects. | IAutomationManager | ||
Resolves an id part to an automation object within the parent. | IAutomationManager | ||
Resolves an id to an automation object. | IAutomationManager | ||
Indicates whether an automation object should be visible within
the hierarchy. | IAutomationManager | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
automationEnvironment | 속성 |
automationEnvironment:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The automation environment for this automation manager. The automation environment provides information about the objects and properties of testable components needed for communicating with agent tools.
The value of this property must implement the IAutomationEnvironment interface.
구현
public function get automationEnvironment():Object
public function set automationEnvironment(value:Object):void
관련 API 요소
recording | 속성 |
replaying | 속성 |
beginRecording | () | 메서드 |
public function beginRecording():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Sets the automation manager to record mode.
createID | () | 메서드 |
public function createID(obj:IAutomationObject, relativeToParent:IAutomationObject = null):AutomationID
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns an id for the given object that can be used
with the resolveID()
method.
매개 변수
obj:IAutomationObject — Automation object.
| |
relativeToParent:IAutomationObject (default = null ) — Parent of the automation object.
|
AutomationID — AutomationID object which represents the Automation object.
|
createIDPart | () | 메서드 |
public function createIDPart(obj:IAutomationObject, parent:IAutomationObject = null):AutomationIDPart
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns an id part for the given object that can be used in the resolveIDPart()
method.
매개 변수
obj:IAutomationObject — The automation object.
| |
parent:IAutomationObject (default = null ) — Parent of the automation object.
|
AutomationIDPart — AutomationIDPart object which represents the Automation object.
|
decrementCacheCounter | () | 메서드 |
public function decrementCacheCounter(clearNow:Boolean = false):int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Decrement the cache counter. The cache is cleared when the count reaches zero.
매개 변수
clearNow:Boolean (default = false ) — If true , clear the cache regardless of the cache counter.
|
int — Current cache counter.
|
endRecording | () | 메서드 |
public function endRecording():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Takes the automation manager out of record mode.
getAutomationClassName | () | 메서드 |
public function getAutomationClassName(obj:IAutomationObject):String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the text to display as the type of the object.
매개 변수
obj:IAutomationObject — Automation object.
|
String — Type of the object.
|
getAutomationName | () | 메서드 |
public function getAutomationName(obj:IAutomationObject):String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the text to display as the description for the object.
매개 변수
obj:IAutomationObject — Automation object.
|
String — Text description of the Automation object.
|
getChildren | () | 메서드 |
public function getChildren(obj:IAutomationObject, ignoreShowInHierarchy:Boolean = false):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns all children of this object that are visible within the testing hierarchy. If a child is not visible within the hierarchy, returns the children of the invisible child.
매개 변수
obj:IAutomationObject — Object for which to get the children.
| |
ignoreShowInHierarchy:Boolean (default = false )
|
Array — Array of children.
|
getChildrenFromIDPart | () | 메서드 |
public function getChildrenFromIDPart(obj:IAutomationObject, part:AutomationIDPart = null, ignoreShowInHierarchy:Boolean = false):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns all children of this object that are visible within the testing hierarchy and meet the criteria in the automation part. If a child is not visible within the hierarchy, this method returns the children of the invisible child.
매개 변수
obj:IAutomationObject — Object for which to get the children.
| |
part:AutomationIDPart (default = null ) — Criteria of which children to return.
| |
ignoreShowInHierarchy:Boolean (default = false ) — Boolean that determines whether object is ignored
within the automation hierarchy. The default value is false .
|
Array — Array of children matching the criteria.
|
getElementFromPoint | () | 메서드 |
public function getElementFromPoint(x:int, y:int):IAutomationObject
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the automation object under the given coordinate.
매개 변수
x:int — The x coordinate.
| |
y:int — The y coordinate.
|
IAutomationObject — Automation object at that point.
|
getParent | () | 메서드 |
public function getParent(obj:IAutomationObject, parentToStopAt:IAutomationObject = null, ignoreShowInHierarchy:Boolean = false):IAutomationObject
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the next parent that is visible within the automation hierarchy.
매개 변수
obj:IAutomationObject — Automation object.
| |
parentToStopAt:IAutomationObject (default = null ) — Parent of the given automation object.
| |
ignoreShowInHierarchy:Boolean (default = false ) — Boolean that determines whether object is ignored
within the automation hierarchy. The default value is false .
|
IAutomationObject — Nearest parent of the object visible within the automation
hierarchy.
|
getProperties | () | 메서드 |
public function getProperties(obj:IAutomationObject, names:Array = null, forVerification:Boolean = true, forDescription:Boolean = true):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the values for a set of properties.
매개 변수
obj:IAutomationObject — Object for which to get the properties.
| |
names:Array (default = null ) — Names of the properties to evaluate on the object.
| |
forVerification:Boolean (default = true ) — If true , only include verification properties.
| |
forDescription:Boolean (default = true ) — If true , only include description properties.
|
Array — Array of objects that contain each property value and descriptor.
|
getRectangle | () | 메서드 |
public function getRectangle(obj:DisplayObject):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The display rectangle enclosing the DisplayObject.
매개 변수
obj:DisplayObject — DisplayObject whose rectangle is desired.
|
Array — An array of four integers: top, left, width and height.
|
getTabularData | () | 메서드 |
public function getTabularData(obj:IAutomationObject):mx.automation:IAutomationTabularData
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the object implementing the IAutomationTabularData interface through which the tabular data can be obtained.
매개 변수
obj:IAutomationObject — An IAutomationObject.
|
mx.automation:IAutomationTabularData — An object implementing the IAutomationTabularData interface.
|
incrementCacheCounter | () | 메서드 |
public function incrementCacheCounter():int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Increments the cache counter. The automation mechanism
caches both an object's properties and its children. The cache
exists for both performance reasons, and so that an objects state
prior to a recording can be captured. Each call to the
incrementCacheCounter()
method
increments a counter and each call to the
decrementCacheCounter()
method
decrements the cache counter. When the counter reaches zero the
cache is cleared.
It's important that testing tools only use the
cache when they are certain that the state of the Flex application
is frozen and the user cannot interact with it. For example,
when an automation event is recorded, a testing tool might need to make
several calls to the getChildren()
method or the
getProperties()
method to create a testing
script line. To do this, it would wrap all the calls up in
start/stop cache calls.
Internally, the AutomationManager forcibly clears the cache
before an end-user interaction that might trigger an automation
event. It then increments the cache counter and decrements the
counter after the automation event is dispatched. Testing tools can
prevent the count from reaching zero by calling the incrementCacheCounter()
method in their record handler.
int — the current cache counter.
|
isSynchronized | () | 메서드 |
public function isSynchronized(target:IAutomationObject):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Tests if the provided target needs to wait until a previous operation completes.
매개 변수
target:IAutomationObject — Target to check for synchronization or
null to synchronize on any running operations.
|
Boolean — true if synchronization is complete, false otherwise.
|
isVisible | () | 메서드 |
public function isVisible(obj:DisplayObject):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns true
if an object and all of its parents are visible.
매개 변수
obj:DisplayObject — DisplayObject.
|
Boolean — true if an object and all of its parents are visible.
|
recordAutomatableEvent | () | 메서드 |
public function recordAutomatableEvent(recorder:IAutomationObject, event:Event, cacheable:Boolean = false):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Records the event.
매개 변수
recorder:IAutomationObject — The automation object on which the event is to be recorded.
| |
event:Event — The actual event which needs to be recorded.
| |
cacheable:Boolean (default = false ) — Controls the caching of the event that is recorded.
During a mouse-down, mouse-up sequence, the automation mechanism tries to record the most
important or suitable event rather than all the events.
For example, if you have a List control which has a button in its item renderer.
When the user clicks on the button, the automation mechanism only records
the click event for the button, but ignores the select event
generated from the List control.
|
recordCustomAutomationEvent | () | 메서드 |
public function recordCustomAutomationEvent(customEvent:AutomationRecordEvent):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Records the custom event.
매개 변수
customEvent:AutomationRecordEvent — - The AutomationRecordEvent that specifies that it is a custom evnet; the type is customRecord.
For example, if you want to record a custom event without writing a delegate and providing the details
in an environment file, you can use this interface to record the custom event. You should listen to
the AutomationPlaybackEvent, handle the replay, and prevent the default on the AutomationPlaybackEvent.
|
Boolean |
replayAutomatableEvent | () | 메서드 |
public function replayAutomatableEvent(event:AutomationReplayEvent):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Replays the specified event. A component author should call
the super.replayAutomatableEvent()
method
in case default replay behavior has been defined in a superclass.
매개 변수
event:AutomationReplayEvent — Event to replay.
|
Boolean — true if the replay was successful.
|
resolveID | () | 메서드 |
public function resolveID(rid:AutomationID, currentParent:IAutomationObject = null):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Resolves an id to automation objects.
매개 변수
rid:AutomationID — Automation id of the automation object.
| |
currentParent:IAutomationObject (default = null ) — Current parent of the automation object.
|
Array — An Array containing all the objects matching the rid .
|
resolveIDPart | () | 메서드 |
public function resolveIDPart(parent:IAutomationObject, part:AutomationIDPart):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Resolves an id part to an Array of automation objects.
매개 변수
parent:IAutomationObject — Parent of the automation object.
| |
part:AutomationIDPart — id part of the automation object.
|
Array — Array of automation objects which match part .
|
resolveIDPartToSingleObject | () | 메서드 |
public function resolveIDPartToSingleObject(parent:IAutomationObject, part:AutomationIDPart):IAutomationObject
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Resolves an id part to an automation object within the parent.
매개 변수
parent:IAutomationObject — Parent of the automation object.
| |
part:AutomationIDPart — id part of the automation object.
|
IAutomationObject — IAutomationObject which matches with the part .
If no object
is found or multiple objects are found, throw an exception.
|
resolveIDToSingleObject | () | 메서드 |
public function resolveIDToSingleObject(rid:AutomationID, currentParent:IAutomationObject = null):IAutomationObject
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Resolves an id to an automation object.
매개 변수
rid:AutomationID — Automation id of the automation object.
| |
currentParent:IAutomationObject (default = null ) — Current parent of the automation object.
|
IAutomationObject — IAutomationObject which matches with the rid .
If no object
is found or multiple objects are found, this method throws an exception.
|
showInHierarchy | () | 메서드 |
public function showInHierarchy(obj:IAutomationObject):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether an automation object should be visible within the hierarchy.
매개 변수
obj:IAutomationObject — The automation object.
|
Boolean — true if the object should be shown within the
automation hierarchy.
|
Tue Jun 12 2018, 03:17 PM Z