Remove test step from ALM using Java (402 Views)
Posts: 2
Registered: ‎04-30-2014
Message 1 of 3 (402 Views)
Accepted Solution

Remove test step from ALM using Java

Hi, I am trying to remove all test steps for a specific Test Case in alm.

I am using com4j bridge and alm 11.


so far I managed to add number of steps to a test case but I can not detem them.


my code to add steps:


IBaseFactory iFactory = iTest.designStepFactory().queryInterface(IBaseFactory.class);

IDesignStep iStep = iFactory.addItem("Step name ").queryInterface(IDesignStep.class);


I tryied:


IBaseFactory iFac = iTest.designStepFactory().queryInterface(IBaseFactory.class);
IList steps = iFac.newList("");

for (int i = 1; i <= steps.count(); i++) {




it compiles and runs however steps are not deleted from ALM

Please help


Honored Contributor
Posts: 4,368
Registered: ‎09-09-2010
Message 2 of 3 (366 Views)

Re: Remove test step from ALM using Java

This line is wrong



 Where you are using "i" you need to be using the DesignStep ID value. "i" is just the index of the steps in the list you retrieved. Instead you need to use




[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)
Posts: 2
Registered: ‎04-30-2014
Message 3 of 3 (355 Views)

Re: Remove test step from ALM using Java

Thanks Trudy Claspill! you solved all my problems
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.