Forum Discussion
Hi,
ListViewItemtoCSVFile4 is writing output value to a tempFilename4
Then you are comparing tempFileName4 with FileName4.
If my understanding is correct,
FileName4 will have the contents with Timestamp and tempFileName4 will not have the timestamp
So, Checkpoint going fail in this scenario.
Correct me if my understanding is wrong
Yes, ListViewItemToCSVFile4 is writing output (in text format) to the file tempFileName4 which gets compared to the baseline file (FileName4).
The file tempFileName4 will have the timestamp which I want to remove and save and then compare it against FileName4 (baseline) which will not have a timestamp.
FYI...to get the baseline file I copied tempFileName4 and renamed to FileName4 and then manually deleted the timestamp.
- tristaanogre7 years agoEsteemed Contributor
kimmatsumoto wrote:
Yes, ListViewItemToCSVFile4 is writing output (in text format) to the file tempFileName4 which gets compared to the baseline file (FileName4).
The file tempFileName4 will have the timestamp which I want to remove and save and then compare it against FileName4 (baseline) which will not have a timestamp.
FYI...to get the baseline file I copied tempFileName4 and renamed to FileName4 and then manually deleted the timestamp.Exactly... so... edit ListViewItemToCSVFile4 to filter out the datetime stamp in it's writing to your temp filename. Again, detection can be used with aqString.StrMatches and then just write out the line to your file without the date time stamp.
- joseph_michaud7 years agoModerator
If you know that the timestamp is always the second element in the comma separated string, you can use JScript/JavaScript code directly. The following example creates a new array with second element removed.
function tryme() { var str = "aaa,bbb,ccc,ddd"; var arr = str.split(","); Log.Message(arr); var arr2 = Array().concat(arr.slice(0, 1), arr.slice(2, arr.length)); Log.Message(arr2); }
Related Content
Recent Discussions
- 2 hours agoashly