Hi everyone,
Currently I'm designing something for HP ALM, my question is, using the ALM OTA API, how can I add comments to a test? It seems like it should be quite easy, but I'm stumped.
So far, I have something like this:
public Test getTestByID(string id, TDConnection conn) { TDFilter filter = conn.TestFactory.Filter; filter["TS_TEST_ID"] = id; List<Test> result = filter.NewList().Cast<Test>().ToList(); result[0]["TS_DEV_COMMENTS"] = "Sample Comment"; result[0].Post(); return result[0]; }
The return is for other purposes, but regardless, this compiles but doesn't add any comments.
Also, since the comments are in HTML format, is there some sort of special process I need to do? Or will a regular string suffice?
Any help is appreciated, if more info is needed, I'll update.