cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Custom Test Result Fields

nborrerojr.
12-Amethyst

Custom Test Result Fields

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?

ACCEPTED SOLUTION

Accepted Solutions

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"

View solution in original post

2 REPLIES 2

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"

Announcements


Top Tags