import isystem.connect as ic
winidea_id = ''
def test_addRemove():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
optCtrl = ic.COptionController(connMgr, "/IDE/System.Debug.Applications")
initialSize = optCtrl.size()
print(f"Adding another item to the: {optCtrl.URL()} array...")
optCtrl2 = optCtrl.add()
print(f"\tURL: {optCtrl2.URL()}")
print(f"\tDefault value of 'Name' attribute: {optCtrl2.get('Name')}")
print(f"Removing the created item (index {initialSize})...")
optCtrl.remove(initialSize)
if __name__ == "__main__":
test_addRemove()