Ask a Question

how to parameterise the current system time in Load complete

New Contributor

how to parameterise the current system time in Load complete

Hi All,


Currently i am customizing the script for a batch job which will start running in the provided time period. In this request we are passing only the values for "hours" and "minutes" with an offset value. Please help in how to do the parameterise the hours and minutes with an offset value for minutes along with AM and PM values. PFB request parameters:


Champion Level 2



If you need just one value:

-- Create a project variable of Current Date type and set its format specifier to 't ampm' (without quotes);

-- Reference this variable in the body of request. For example, assuming that the variable was named as LTTime, request body in the request editor may look like this: {"value":"\vLTTime\v"}.


If you need new value every time:

-- Create project Data Generator variable of Date and Time type, set its format to HH:MM AM/PM and other properties as needed and reference the same way as above in the requests.


See LoadComplete documentation for more information.


Then you

  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: