cancel
Showing results for 
Search instead for 
Did you mean: 

how to parameterise the current system time in Load complete

Highlighted
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:

%5B%7B%22type%22%3A%22setvalue%22%2C%22targetId%22%3A%22mbadfe62b-tb%22%2C%22value%22%3A%226%3A50%20AM%22%2C%22requestType%22%3A%22SYNC%22%2C%22csrftokenholder%22%3A%229s2j8e88h8hatercto08vllsav%22%7D%2C%7B%22type%22%3A%22click%22%2C%22targetId%22%3A%22m6d23b003-pb%22%2C%22value%22%3A%22%22%2C%22requestType%22%3A%22SYNC%22%2C%22csrftokenholder%22%3A%229s2j8e88h8hatercto08vllsav%22%7D%5D

1 REPLY 1
Community Hero

Re: how to parameterise the current system time in Load complete

Hi,

 

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

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Watch the new Interview