When we were using XML to create test case results through the api, we set the time format to 02/04/2015 (MM/dd/YYYY) and it worked. After updating to the 2.0 API and using JSON, this gives an error:
HTTP Response: {"CreateResult": {"_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": ["Could not parse: Cannot convert \"null\" into a date. You must use the ISO8601 date+time format."], "Warnings": []}} Error: Could not parse: Cannot convert "null" into a date. You must use the ISO8601 date+time format.
We set the date in the request from Electric Commander thus:
{
"TestCaseResult": {
"TestCase": "$[TestCaseObjId]",
"Verdict": "$[Verdict]",
"Build": "$[BuildID]",
"Date": "$[/timestamp MM/dd/YYYY]",
"Duration": "$[Duration]",
"Notes": "$[Notes]"
}
}
The request to Rally looks like this:
{
"TestCaseResult": {
"TestCase": "6030935686",
"Verdict": "Pass",
"Build": "No_New_Build",
"Date": "02/05/2015",
"Duration": "65",
"Notes": "methodName:RunTest(ProjectName:=BitNWord_PME_PAC_FT, TargetName:=Bitnword_IEC_IOSymbolic, PassBit:=M4050, FailBit:=M4001, RunState:=Run_Enabled)
<br/>
PME Version:= v8.50 SIM2 Build 6506
<br/>
Build Name:= 8.50.0.6506C
<br/>
BUILD_ID:= REPLACE_WITH_ACTUAL_BUILD_ID_FROM_CI_BUILD
<br/>
Test Execution started at:= 2/5/2015 8:03:06 AM
<br/>
ClassName:=GenericTestClass;
<br/>
MethodName:=RunTest;
<br/>
TestStatus:=Pass;
<br/>
ReturnCode:=Passed_TestCase;
<br/>
Connection_ID:=3.16.233.83;
<br/>
PriFW:=D1RP;
<br/>
PriRel:=8.45;
<br/>
BootFW:=39E1;
<br/>
BootRel:=7.50;
<br/>
HWRel:=8.0;
<br/>
UUTModID:=IC695CPE310;
<br/>
Test Case RunTime Seconds:=65;
<br/>
Additional debug info: <br/>
Test was run on agent choCIWinDev181 on target CPE_DevTarget_028<br/><br/>
job details:<br/>
https://ALPGAEGR05.gis.corp.ge.com/commander/link/jobDetails/jobs/500a82b4-ad37-11e4-875f-34b020524153<br/><br/>job workspace:<br/>http:\\\\chovapfipr1.gis.corp.ge.com\\commander-workspace\\dev\\Run%20Test%20Case%20From%20Rally%20-%20Individual-2015-Feb-05-0803-23400<br/><br/>
full log:<br/>http:\\\\chovapfipr1.gis.corp.ge.com\\commander-workspace\\dev\\Run%20Test%20Case%20From%20Rally%20-%20Individual-2015-Feb-05-0803-23400\\RunPLCTest.58bc2857-ad37-11e4-b71a-34b020524153.log<br/>
"
}
}
What are we doing wrong?