Appending current date to parameter - key word driven test



I  have a keyword driven test that takes an input parameter, Can we pass the value to SILK4J test as dynamic value parameter as in {abc}+currentdate to make it unique everytime we run the test.


Thanks in advance

2 Replies
Micro Focus Expert
Micro Focus Expert

Hi @rekhasunkara1,


I don't know if the current date is possible, but what you can do is to use one of the dynamic predefined parameters:



You chose for example #sctm_regular_execdef_run_id, which is different for every execution plan run.


Create in the test a custom parameter.

Tests > Properties > Parameters > Add Custom Parameter

Name: myparam

Value: ${abc}${#sctm_regular_execdef_run_id}


You can then use parameter myparam in your keywords as parameter then. You will get the values concatenated in the keyword.


You can find more about parameter replacement here:







Thank you Hubert. Sounds like a neat option. I will try it out.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.