CLI editor --add switch: Unable to find correct syntax

I noticed the tap CLI editor subcommand has an option to add specific steps at the end of the test plan, however I have not been able to get it to work.

I can add use the -o switch to load a .TapPlan just fine, but using -a with several different ways of calling out a step to add has been unsuccessful for me. For example, I’ve tried the following from windows command line :

tap editor  -a OpenTap.Plugins.BasicSteps.Delay
tap editor  -a 'OpenTap.Plugins.BasicSteps.Delay'

Or the above with double quotes

tap editor  -a "Basic Steps \ Delay"
tap editor -o "SomePlan.TapPlan" -a OpenTap.Plugins.BasicSteps.Delay

All give an error saying the step type was not found. Any help is appreciated, thank you.

Hi @tmunsell10,

I was not aware we have this feature. I had to look into the source code to figure out how it works.

According to source control, the feature dates back to 2013, long before OpenTAP had pretty type names. The action actually expects the base of the C# type, so for Delay, the correct usage would be tap editor -a DelayStep.

If we were to implement this feature today, the correct invocation would likely be "Basic Steps \ Delay", as you suggested.

Thanks for pointing this out. I will create a ticket and ensure we update the implementation for the next release to accept step display names, in addition to the current behavior.

1 Like