General Technical Discussions for Service

Get Involved. Join the Conversation.


    Ability to set UpdatedTime in Custom Process Test Harness
    Topic posted June 4, 2014 by Justin Red Ribbon: 250+ Points 
    102 Views, 1 Comment
    Ability to set UpdatedTime in Custom Process Test Harness

    I need to see if there is a new attachment in the custom process model that I am writing.  

    My plan was to get the list of file attachments from both the current and previous object and compare the FileNames and their respective UpdateTime fields.  Unfortunately UpdatedTime is a read-only field, so I cannot set dummy UpdateTimes in the TestHarness and then execute different test cases.  

    Does anybody have any ideas on how I could get around that?




    • Allan Schrum

      Unfortunately, UpdatedTime is a read-only field as you noted. We are discussing making these types of fields settable for testing and object construction (which is your use case) and deferring the read-only test until you call save(). But at the moment, UpdatedTime remains read-only.

      Can you fetch() an existing object to use for your test case rather than trying to create one?