Class
AutomationStepList

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:

cs-api-definition
[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: IBindingListICancelAddNewICollectionICollection<AutomationStepBase>IEnumerableIEnumerable<AutomationStepBase>IListIList<AutomationStepBase>IRaiseItemChangedEventsIReadOnlyCollection<AutomationStepBase>IReadOnlyList<AutomationStepBase>

Inherited Members BindingList<AutomationStepBase>.OnAddingNew(AddingNewEventArgs)BindingList<AutomationStepBase>.OnListChanged(ListChangedEventArgs)BindingList<AutomationStepBase>.ResetBindings()BindingList<AutomationStepBase>.ResetItem(int)BindingList<AutomationStepBase>.SetItem(int, AutomationStepBase)BindingList<AutomationStepBase>.CancelNew(int)BindingList<AutomationStepBase>.EndNew(int)BindingList<AutomationStepBase>.AddNew()BindingList<AutomationStepBase>.AddNewCore()BindingList<AutomationStepBase>.ApplySortCore(PropertyDescriptor, ListSortDirection)BindingList<AutomationStepBase>.RemoveSortCore()BindingList<AutomationStepBase>.FindCore(PropertyDescriptor, object)BindingList<AutomationStepBase>.RaiseListChangedEventsBindingList<AutomationStepBase>.AllowNewBindingList<AutomationStepBase>.AllowEditBindingList<AutomationStepBase>.AllowRemoveBindingList<AutomationStepBase>.SupportsChangeNotificationCoreBindingList<AutomationStepBase>.SupportsSearchingCoreBindingList<AutomationStepBase>.SupportsSortingCoreBindingList<AutomationStepBase>.IsSortedCoreBindingList<AutomationStepBase>.SortPropertyCoreBindingList<AutomationStepBase>.SortDirectionCoreBindingList<AutomationStepBase>.AddingNewBindingList<AutomationStepBase>.ListChangedCollection<AutomationStepBase>.Add(AutomationStepBase)Collection<AutomationStepBase>.Clear()Collection<AutomationStepBase>.CopyTo(AutomationStepBase[], int)Collection<AutomationStepBase>.Contains(AutomationStepBase)Collection<AutomationStepBase>.GetEnumerator()Collection<AutomationStepBase>.IndexOf(AutomationStepBase)Collection<AutomationStepBase>.Insert(int, AutomationStepBase)Collection<AutomationStepBase>.Remove(AutomationStepBase)Collection<AutomationStepBase>.RemoveAt(int)Collection<AutomationStepBase>.CountCollection<AutomationStepBase>.ItemsCollection<AutomationStepBase>.this[int]

Constructors

AutomationStepList()

Create a new list

Declaration

cs-api-definition
public AutomationStepList()

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.

Declaration

cs-api-definition
public bool DisableSelectionTrigger { get; set; }

Property Value

bool

InsertAfter

Declaration

cs-api-definition
public AutomationStepBase InsertAfter { get; set; }

Property Value

AutomationStepBase

Methods

AddStep(AutomationStepBase, bool)

Add a step

Declaration

cs-api-definition
public void AddStep(AutomationStepBase step, bool updateReference)

Parameters

step

AutomationStepBase

updateReference

bool

ClearItems()

Clear all the items in the collection.

Declaration

cs-api-definition
protected override void ClearItems()

Overrides BindingList<AutomationStepBase>.ClearItems()

DepthFirstRecursion()

Declaration

cs-api-definition
public IEnumerable<AutomationStepBase> DepthFirstRecursion()

Returns

IEnumerable<AutomationStepBase>

FindStepById(string)

Tries to find if a step with a specific id exists. If so, will return a reference to it. Else null.

Declaration

cs-api-definition
public AutomationStepBase FindStepById(string id)

Parameters

id

string

Returns

AutomationStepBase

InsertItem(int, AutomationStepBase)

Insert a new item in the list.

Declaration

cs-api-definition
protected override void InsertItem(int index, AutomationStepBase item)

Parameters

index

int

The index to insert that item at.

item

AutomationStepBase

The item.

Overrides BindingList<AutomationStepBase>.InsertItem(int, AutomationStepBase)

InsertItem(int, AutomationStepBase, bool)

Insert a new item in the collection with an option to update the reference.

Declaration

cs-api-definition
public void InsertItem(int index, AutomationStepBase item, bool updateReference)

Parameters

index

int

The index of the item.

item

AutomationStepBase

The item.

updateReference

bool

True/False whether to update the element reference.

InvokeOnListChanged(ListChangedEventArgs)

Invoke the onlist changed

Declaration

cs-api-definition
public void InvokeOnListChanged(ListChangedEventArgs args)

Parameters

args

ListChangedEventArgs

Move(int, int)

Move an element from one location to another.

Declaration

cs-api-definition
public void Move(int currentIndex, int newIndex)

Parameters

currentIndex

int

The current index of the element to move.

newIndex

int

The new index.

RemoveItem(int)

Remove an item and decrease it's reference count.

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

The index to remove the item at.

Overrides BindingList<AutomationStepBase>.RemoveItem(int)

RemoveItem(int, bool)

Remove an item from the collection with an option to update the reference or not.

Declaration

cs-api-definition
public void RemoveItem(int index, bool updateReference)

Parameters

index

int

The index to remove.

updateReference

bool

True/False whether to update the element reference.