ClassAutomationStepList
Represents a bindable automation step list that can be displayed in the test Explorer.
Definition
Namespace:ArtOfTest.Common.Design.ProjectModel
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[CollectionDataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0", ItemName = "AutomationStep")]
public class AutomationStepList : BindingList<AutomationStepBase>, IList<AutomationStepBase>, ICollection<AutomationStepBase>, IReadOnlyList<AutomationStepBase>, IReadOnlyCollection<AutomationStepBase>, IEnumerable<AutomationStepBase>, IBindingList, IList, ICollection, IEnumerable, ICancelAddNew, IRaiseItemChangedEvents
Inheritance: objectCollection<AutomationStepBase>BindingList<AutomationStepBase>AutomationStepList
Implements:
Inherited Members
Constructors
Properties
DisableSelectionTrigger
When removing a step, we do not want to update the selected index. TestExplorer._currentTest_AutomationStepSelected checks this flag, and will not update if it is true.
InsertAfter
Declaration
public AutomationStepBase InsertAfter { get; set; }
Property Value
Methods
AddStep(AutomationStepBase, bool)
Add a step
Declaration
public void AddStep(AutomationStepBase step, bool updateReference)
Parameters
step
updateReference
ClearItems()
Clear all the items in the collection.
Declaration
protected override void ClearItems()
Overrides
DepthFirstRecursion()
Declaration
public IEnumerable<AutomationStepBase> DepthFirstRecursion()
Returns
FindStepById(string)
Tries to find if a step with a specific id exists. If so, will return a reference to it. Else null.
Declaration
public AutomationStepBase FindStepById(string id)
Parameters
id
Returns
InsertItem(int, AutomationStepBase)
Insert a new item in the list.
Declaration
protected override void InsertItem(int index, AutomationStepBase item)
Parameters
index
The index to insert that item at.
item
The item.
Overrides
InsertItem(int, AutomationStepBase, bool)
Insert a new item in the collection with an option to update the reference.
Declaration
public void InsertItem(int index, AutomationStepBase item, bool updateReference)
Parameters
index
The index of the item.
item
The item.
updateReference
True/False whether to update the element reference.
InvokeOnListChanged(ListChangedEventArgs)
Invoke the onlist changed
Declaration
public void InvokeOnListChanged(ListChangedEventArgs args)
Parameters
args
Move(int, int)
Move an element from one location to another.
RemoveItem(int)
Remove an item and decrease it's reference count.
Declaration
protected override void RemoveItem(int index)
Parameters
index
The index to remove the item at.
Overrides
RemoveItem(int, bool)
Remove an item from the collection with an option to update the reference or not.