r/softwaretesting • u/Official_timepass_01 • Jan 14 '26
DDT using Excel! Is this a necessity?
I am a software tester, currently working as manual tester. I recently came across DDT. where i can use Excel to input data directly into my code. honestly it seems a bit too lengthly of a procedure and i was wondering if it's the only method that we can use? is there any other way rather than DDT? i am fine with changing parameters through code.
Also to add, i have learned it through java, now I'm learning automation through python.
3
Upvotes
7
u/cgoldberg Jan 14 '26
Use a text based format like json or yaml as a data source.
Using a binary spreadsheet that requires installing a platform specific application and can't be easily diffed, stored in version control, or natively handle arrays/lists... is pretty horrible.
2
u/LongDistRid3r Jan 14 '26
I would think json would be easier
1
u/idecas Jan 14 '26
Depends on your parser. Chances are, it uses a cover. It really doesn't matter. Alot of the tools and patterns out there goes on the assumption that testers can't code or are not technical and you adopt it to lower barrier of entry but it ends up being more work.
1
u/zaphodikus Jan 14 '26
excel drives your test tooling? Is that because it exports a CSV or because an excel macro somehow invokes the product under test via commandline or via some RPC/socket mechanism? Depending on what is really going on, I would move to Yaml or other, it may be using csv files, which are great and sometimes scale well, but other times scale poorly.
1
u/LookAtYourEyes Jan 14 '26
Don't use excel. Use text based formats like json, or yaml. Or simply write builders in your code like test fixture. People have already given reasons as to why, just wanted to echo the idea.