pinnedStepIndex property

int pinnedStepIndex
getter/setter pair

The index of the currently pinned step. The pinned step is the step after which steps will be added via addStep. This is intended to allow users to add steps in the middle of an existing step as opposed to always having to add steps to the end of a test and then manually reorder them.

Although it may be slightly unintuitive, this is actually -1 based. That is because the step is aways added after this index which means a value of -1 adds the test step to the zeroth (first) position, a value of zero would add test step to the oneth (second) position, and so on.

Implementation

int pinnedStepIndex = -1;