Skip to main content
1-Visitor
April 8, 2015
Solved

Custom Test Result Fields

  • April 8, 2015
  • 2 replies
  • 1497 views

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?

Best answer by nborrerojr.

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"

2 replies

1-Visitor
April 8, 2015

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.

nborrerojr.1-VisitorAuthorAnswer
1-Visitor
April 8, 2015

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"