I'm attempting to write a synthetic transaction in Silk Performer 16.5. I need to upload a file to a server using an HTML form, and once that is complete I need to make a time-stamp and compare it to another time-stamp on a confirmation page. When I visit the confirmation page, I receive the web site's time stamp in the format of "DD-Mon-YYYY HH:MM:SS". Ideally, I need to find a way to make sure that the time-stamp taken after the script triggers the form is within 15 minutes of the time-stamp reported on the status page. A coworker suggests that I get both time-stamps in Epoch time and do simple arithmetic: If (ConfirmationTime - UploadTime 900s) { return 1; } else {return 0;} I might be able to convince my team to allow .NET code, but I'd prefer to do this natively in BDL.
↧