Skip to main content
1-Visitor
July 29, 2015
Solved

For C#; what is the code syntax for for this CLI? [tm editresult --field='Actual Result'='60' --sessionID=509239 622815]

  • July 29, 2015
  • 2 replies
  • 3326 views

What syntax is needed using the C# API for the following Command LIne Interface

[tm editresult --field='Actual Result'='60' --sessionID=509239 622815]

I have tried

issuesView.AddOption("field", "'Actual Result'='" + resultString + "'");

and the error states /"Actual Result/" does not exist


    Best answer by nborrerojr.

    Not sure if you're still looking for this, but if I understand what you're looking for, then here's what I would use assuming "Actual Result" is a custom field:

    issuesView.AddOption("field=Actual Result", resultString);

    I am using C# with Integrity 10.5 also.

    2 replies

    21-Topaz I
    July 29, 2015

    Is "Actual Result" the field name or is it an overridden display name? You need to provide the absolute field name which could be different than it appears when viewing the items.

    rteifke1-VisitorAuthor
    1-Visitor
    July 29, 2015

    That is the correct name otherwise the CLI would have the same issue, but the CLI works.

    BTW: Using  10.5.0.5479 version of Integrity with API of 4.13.5479

    if that means anything

    21-Topaz I
    July 29, 2015

    I'm not all that familiar with the C API, but have you tried not having Actual Result wrapped in single quotes?

    1-Visitor
    August 31, 2015

    Not sure if you're still looking for this, but if I understand what you're looking for, then here's what I would use assuming "Actual Result" is a custom field:

    issuesView.AddOption("field=Actual Result", resultString);

    I am using C# with Integrity 10.5 also.