Recent changes to Rally C# REST API? -


1) earlier week able create defects , testcases using create method, took 2 arguments @ time (a string , dynamicjsonobject). now, needs three. understand 1 of these workspace reference. how go getting workspace reference? creating defects , testcases, using empty string, , seems working correctly me. expected?

2) creating test case results, having bit of trouble.

        dynamicjsonobject newtcresult = new dynamicjsonobject();         newtcresult["date"] = datetime.now.tostring("yyyymmdd");         newtcresult["testcase"] = "/testcase/11271454106";         newtcresult["notes"] = "test";         newtcresult["build"] = "13.1.0.90";         newtcresult["verdict"] = "pass";          createresult cr = restapi.create(" ", "testcaseresult", newtcresult); 

as of right now, absolutely nothing happening when run this. able earlier week (when able use create method 2 arguments). feel problem because don't have valid workspace reference. followed suggestion of user in similar question prior worked earlier, having problem.

i able resolve this. appears date field needs converted utc, code looks

newtcresult["date"] = datetime.utcnow.tostring("o");

after making small change results working correctly.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -