I am trying to build a script using OTA in excel VBA to insert test cases and design steps into ALM 11 and my current script seems to insert the Test Case and design steps without problem into ALM but after running my script and I go to ALM, I see that the test case icon for the test case I inserted is messed up. If I remove the design steps from my script and just insert the test case itself the icon seems to be fine. anyone has any idea why?
below is my script:
Set treeFolder = TreeMgr.NodeByPath(root)
'create the test case and post
Set testCase = treeFolder.TestFactory.AddItem(Null)
testCase.Field("TS_NAME") = MainWorksheet.Cells(2, 2)
testCase.Field("TS_RESPONSIBLE") = MainWorksheet.Cells(2, 6) ' Designer
testCase.Field("TS_STATUS") = MainWorksheet.Cells(2, 7) ' Test case status
testCase.Field("TS_TYPE") = "MANUAL"
testCase.Post
'checkout test case
Set CurrentObj = testCase.VCS
CurrentObj.CheckOut -1, "To change state", True
' create test steps
Set dgnStepFact = testCase.DesignStepFactory
Set stepList = dgnStepFact.NewList("[empty]")
Set TCdesignStep = dgnStepFact.AddItem(Null)
TCdesignStep.StepName = MainWorksheet.Cells(2, 3)
TCdesignStep.StepDescription = MainWorksheet.Cells(2, 4)
TCdesignStep.StepExpectedResult = MainWorksheet.Cells(2, 5)
stepList.Add (TCdesignStep)
stepList.Post
'checkin test case
CurrentObj.CheckIn "", "Changed status"
and below is the icon of the test case after adding design step
![icon incorrect after adding design step to a Test Case.jpg icon incorrect after adding design step to a Test Case.jpg]()