AnsweredAssumed Answered

Removing Actions with the HP TestExecSL API

Question asked by pschweiz on May 18, 2017

Hello

 

I have to replace an Action multiple times in several Testplans. So I wont to program a tool with C# and the TestExecSL API in MSVS.

 

So fare I can add the new Action at the correct position in the Testplan with following code:

TestExec.Testplan.Statements.Item(t).Actions.Add(a, "new_Action");

 

But now when I wont to remove the old Action I get an COMException (see Picture).

Following code I have tray to use for removing the Action:

TestExec.Testplan.Statements.Item(t).Actions.Remove(a);

 

How can I fix this Exception?

 

Thanks for your help

Best regards

Attachments

Outcomes