how to parameterise the current system time in Load complete
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
/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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
