Question 2 Replies 112 Views × Close popover James Kerns (JamesK69) Fusion Technology Fusion Technology US View Profile Send Message JamesK69 Member since 2014 9 posts Fusion Technology Posted: September 13, 2018 Last activity: September 17, 2018 Posted: 13 Sep 2018 12:37 EDT Last activity: 17 Sep 2018 14:15 EDT Closed When Rule Unit Test - Using function for input I created at PegaUnit test for a when rule. I selected multiple input combinations. I have one input that is a DateTime field. I would like to use a function to populate the Current Date Time rather than using static data, but I have not been able to successfully do this. Is it possible to use a function or a parameter to populate the inputs? DevOps Testing Applications × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years ago Posted: 14 Sep 2018 2:29 EDT × Close popover Gayatri Nistala (Gayatri) incessant incessant IN View Profile Send Message Gayatri incessant replied to JamesK69 yes can you try currentdatetime function ? Posted: 2 years ago Posted: 17 Sep 2018 14:15 EDT × Close popover James Kerns (JamesK69) Fusion Technology Fusion Technology US View Profile Send Message JamesK69 Fusion Technology replied to Gayatri I tried, but when I trace the test case the date value passed is @DateTime.CurrentDateTime instead of the actual date.