kyle_mciver
11 years agoOccasional Contributor
keyword test data driven loop dropping leading zero
I have a keyword test recorded against a web page, when I run this using hard coded values the script runs flawlsly.
When i try to use data from an external spreadsheet the first value retrieved from the spreadsheet is a date in the format mm/dd/yyyy. It is in this format in the spreadsheet. But if the month is < 10, as most months are, the import will always be entered into my online application as m/dd/yyyy. The application throws an error and the script stops running.
Why is the leading zero beind dropped? How do I fix it?
When i try to use data from an external spreadsheet the first value retrieved from the spreadsheet is a date in the format mm/dd/yyyy. It is in this format in the spreadsheet. But if the month is < 10, as most months are, the import will always be entered into my online application as m/dd/yyyy. The application throws an error and the script stops running.
Why is the leading zero beind dropped? How do I fix it?