AnsweredAssumed Answered

Possible to calculate a property value?

Question asked by Craig_Linton on Apr 17, 2017
Latest reply on Apr 18, 2017 by Craig_Linton

Is it possible in DevTest Solutions (on 9.5.1.6) to set a property in a step?

 

Specifically, I need to set a date to a long integer (milliseconds) and return that in a JSON object.  I know how to reference such a date "dueDate": {{dueDate}}, and I know how to calculate the date (somewhat cumbersome, but not terribly so) in Java, but where would I put my Java code?  And how would Java populate dueDate property?

I'm reasonably sure I have to declare the property in the project.properties file which is fine.

But I see nowhere in DevTest Solutions where I can execute Java code and assign a property value from Java (or any other manner) in a VSM step.

Is it possible to do such?

Outcomes