![]() |
| |||||||
Testing Anywhere Post messages and questions related to Testing Anywhere here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Does TA have a function to convert dates from numerical to 3-letter format, so 1 to Jan, 2 to Feb, etc? I'm using the System Variables in Insert Keystrokes, and the application I am testing only accepts date in dd mmm yyyy format (eg 18 Jan 2012), but TA inserts as 18 1 2012 (if I insert $day$ $month$ $year$). I don't believe it does but thought I would ask. It would be a useful feature to allow users to create their own system/global variables or functions, rather than create a local variable, then have to copy that to every test that needs to use it. It looks like I will have to create a long set if 'if' conditions to check for date then convert. It would be good to write that once and save it, then be able to call it from anywhere in any other test. |
| |||
|
Hi, Attached is a sample task which converts the date to the format as desired by you. Download and Save the task under 'My Tasks' folder. To locate the path of the 'My Tasks' folder, right click on any of the current tasks and select the 'Locate on Disk' option. Hope this helps. P.S. - Please select the Date Format under System Variables to 'dd-mmm-yy' format. |
| |||
|
Thank you, that looks like it will do what I need. I guess the only problem would be if I needed to use another date format in a different test? Being a global variable you can only set the format once, and would have to perform some other conversion if that was required by another application.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |