Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I have added two custom Test Result fields to the type. They are "Execution Date" and "Execution Modified Date". How do I set the value of these fields via the API? I have tried just adding an option for each item. cmd.AddOption("Execution Date", value) and cmd.AddOption("Execution Modified Date", value). The results upload without these two values. I am not sure if the command is wrong or if I am just using a format different than what Integrity is expecting. Has anyone done this before?
Solved! Go to Solution.
Figured it out. Should be:
cmd.AddOption("field=Execution Date", value)
and the DateTime format required is "MMM d, yyyy h:mm:ss a". The returned error actually tells you the format code (clever).
The C# equivalent is "MMM d, yyyy h:mm:ss tt"
Adding the Execution Date and Execution Modified Date as options causes the command runner to crash. I don't think I stated this correctly before.
Figured it out. Should be:
cmd.AddOption("field=Execution Date", value)
and the DateTime format required is "MMM d, yyyy h:mm:ss a". The returned error actually tells you the format code (clever).
The C# equivalent is "MMM d, yyyy h:mm:ss tt"