Forum Discussion

tuanvinh1008's avatar
tuanvinh1008
Contributor
3 years ago

How to get some records with specific condition in csv file

Hi all,

I have a csv file like this template

TestcaseID,AccountKey,RealAccountNumber,AccountNumber
0001,1,4,10001
0001,2,3,10253
0001,4,2,20398
0002,5,3,19283
0002,6,2,10192
0003,7,1,01000

So I want to get records with conditions base on TestcaseID. So DDT.CSVDriver is supported or needs to other functions?

5 Replies

    • tuanvinh1008's avatar
      tuanvinh1008
      Contributor

      Hi vinniew , It means i will read all data and convert it to table for retrieve data? Do you have any else solution if I don't use DDT.CSVDriver?

      • vinniew's avatar
        vinniew
        Staff

        Hi tuanvinh1008 

         

        Yes TC will store the table variable in TC. 

         

        My response was based on the information shared, there could be other work arounds, TC is quite flexible after all.

         

        Can you provide more context and details on what you are doing. 

         

        This will help me and other members to fully understand what could looked at in terms other options

         

        KR

         

        Vinnie