My requirement is to swap test steps in QC test plan using OTA. i have written the below code to perform the required operation but when i post it, the changes are not reflected in qc.Please advice.

<font class="small">Code:</font><hr /><pre>testfltr.filter("TS_NAME")=preTestCase
Set Testlist = testfltr.Newlist()
Set testTS = TestList.Item(2)
Set designstepfact = testTS.DesignStepFactory
Set Dlist=designstepfact.Newlist("")
Set StepsCollection = testTS.DesignStepFactory.NewList("")
'Print StepsCollection.Count
StepsCollection.Swap 3,1
StepsCollection.Post() </pre><hr />
Thanks in advance