Skip to content

Commit

Permalink
Updated command line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cjayswal committed Apr 29, 2022
1 parent f786709 commit ba81b75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/qmetry/qaf/automation/data/JsonDataBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,12 @@ private interface Formatter {
}

public static void main(String[] args) throws IOException, ScriptException {
String file = getBundle().getString("struct", "");
int samples = getBundle().getInt("samples", 10);
String file = getBundle().getString("schema", getBundle().getString("datagen.schema", ""));
int samples = getBundle().getInt("samples", getBundle().getInt("datagen.samples", 10));

if (StringUtil.isBlank(file)) {
throw new IOException(
"required datagen schema file. You can provide \"-Ddatagen.schema.file=<filepath>\"");
"required datagen schema file. You can provide \"-Dschema=<filepath>\" or \"-Ddatagen.schema=<filepath>\"");
}
JsonDataBean bean = JsonDataBean.get(file);
bean.setSamples(samples);
Expand Down

0 comments on commit ba81b75

Please sign in to comment.