Data Gen - need help
- 7 years ago
There a few different ways of doing this. I typically use a custom groovy script I write to generate data to match my schema constraints, or use a groovy DataSource depending on how much data I need and the memory limitations of creating all of it up front. There's also a data-gen step that can do the same thing.
- 7 years ago
You can do generate random data by using data gen test step, for say you need to pass random unique date ,
1. Open Data Gen test step,
2. Add property by clicking on + icon by giving desired name
3. Select Type as Script
4. Write groovy script to generate date under Configuration,
def gc = new java.util.GregorianCalendar()
def df = javax.xml.datatype.DatatypeFactory.newInstance()
def datexml = df.newXMLGregorianCalendar(gc).toXMLFormat()
return datexmlNote: Make sure data Gen test step will be the first step under test case.
- 7 years ago
If you want to pass the Numbers(int) select type as Number and give your required numbers as Start & End.