| Author |
creating XML Files in Batch
|
chintan ramavat
Ranch Hand
Joined: Sep 15, 2006
Posts: 134
|
|
hello friends, does anybody have idea for creating XML files in BATCH like 100 files or 200 files for testing purpose. Thanks CR
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26193
|
|
Chintan, The first step is to identify the format. For example, is it always the same format with certain values varying?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
chintan ramavat
Ranch Hand
Joined: Sep 15, 2006
Posts: 134
|
|
hi Jeanne Yes the format is gonna be the same the only thing which will be changed is the tag value that's all, which is pretty much obvious since it's for testing purpose. i would appreciate if you suggest anything in this regard. thanks jeanne CR
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
Originally posted by chintan ramavat: Yes the format is gonna be the same the only thing which will be changed is the tag value that's all, which is pretty much obvious since it's for testing purpose. i would appreciate if you suggest anything in this regard.
So could you just write a utility class that generates those 100 XML files to a specified location when you invoke a method like "generateTestDataInto(File dir)"?
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
 |
|
|
subject: creating XML Files in Batch
|
|
|