Forum Discussion
Hi tuanvinh1008
I am not sure if using DDT is best if you want to call conditional values.
Have you looked at using a table variable work here?
https://support.smartbear.com/testcomplete/docs/testing-with/variables/data-types/table.html
I think this would be easier when creating your conditions as you can call values from that table variable.
let me know how this goes
KR
Vincent
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?
- vinniew4 years agoStaff
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
- tuanvinh10084 years agoContributor
My context is, I have the test data file (csv) like above and I want to read it from my script with conditions as I mentioned. I want to know Test Complete has any build-in command to read the file with that conditions or we need our own code to handle it.
Thanks
- Marsha_R4 years agoModerator
I would just use the ddt driver to run through the file and put your condition in that loop.
if (record has the right testid) then
do something
Related Content
- 10 years ago
- 10 months ago
- 5 years ago
- 6 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago