Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mohawk-t-testcase-generator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jon Shahen
mohawk-t-testcase-generator
Commits
cf1d72ee
Commit
cf1d72ee
authored
8 years ago
by
Jonathan Shahen
Browse files
Options
Downloads
Patches
Plain Diff
Formatting Changes to new formatter
parent
87ebcd94
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mohawk/generator/GeneratorCUI.java
+30
-45
30 additions, 45 deletions
src/mohawk/generator/GeneratorCUI.java
src/mohawk/generator/GeneratorInstance.java
+16
-27
16 additions, 27 deletions
src/mohawk/generator/GeneratorInstance.java
with
46 additions
and
72 deletions
src/mohawk/generator/GeneratorCUI.java
+
30
−
45
View file @
cf1d72ee
...
...
@@ -63,54 +63,39 @@ public class GeneratorCUI {
System
.
out
.
println
(
"-random -roles 20 -rules 100 -timeslots 5 -randomPre 3/5Empty "
+
"-comment \"A simple test from the CUI - 3/5 Empty\" !exit"
);
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"-random -randomSA -roles 100 -rules 200 -timeslots 200 -comment \"Variable 100 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 300 -rules 200 -timeslots 200 -comment \"Variable 300 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 500 -rules 200 -timeslots 200 -comment \"Variable 500 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 700 -rules 200 -timeslots 200 -comment \"Variable 700 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 1000 -rules 200 -timeslots 200 -comment \"Variable 1000 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 100 -rules 200 -timeslots 200 -comment \"Variable 100 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 300 -rules 200 -timeslots 200 -comment \"Variable 300 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 500 -rules 200 -timeslots 200 -comment \"Variable 500 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 700 -rules 200 -timeslots 200 -comment \"Variable 700 roles\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -roles 1000 -rules 200 -timeslots 200 -comment \"Variable 1000 roles\" !exit"
);
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"-random -randomSA -rules 100 -roles 200 -timeslots 200 -comment \"Variable 100 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 300 -roles 200 -timeslots 200 -comment \"Variable 300 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 500 -roles 200 -timeslots 200 -comment \"Variable 500 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 700 -roles 200 -timeslots 200 -comment \"Variable 700 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 1000 -roles 200 -timeslots 200 -comment \"Variable 1000 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 100 -roles 200 -timeslots 200 -comment \"Variable 100 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 300 -roles 200 -timeslots 200 -comment \"Variable 300 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 500 -roles 200 -timeslots 200 -comment \"Variable 500 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 700 -roles 200 -timeslots 200 -comment \"Variable 700 rules\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -rules 1000 -roles 200 -timeslots 200 -comment \"Variable 1000 rules\" !exit"
);
System
.
out
.
println
(
""
);
System
.
out
.
println
(
"-random -randomSA -timeslots 100 -roles 200 -rules 200 -comment \"Variable 100 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 300 -roles 200 -rules 200 -comment \"Variable 300 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 500 -roles 200 -rules 200 -comment \"Variable 500 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 700 -roles 200 -rules 200 -comment \"Variable 700 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 1000 -roles 200 -rules 200 -comment \"Variable 1000 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 100 -roles 200 -rules 200 -comment \"Variable 100 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 300 -roles 200 -rules 200 -comment \"Variable 300 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 500 -roles 200 -rules 200 -comment \"Variable 500 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 700 -roles 200 -rules 200 -comment \"Variable 700 timeslots\" !exit"
);
System
.
out
.
println
(
"-random -randomSA -timeslots 1000 -roles 200 -rules 200 -comment \"Variable 1000 timeslots\" !exit"
);
}
}
This diff is collapsed.
Click to expand it.
src/mohawk/generator/GeneratorInstance.java
+
16
−
27
View file @
cf1d72ee
...
...
@@ -171,22 +171,16 @@ public class GeneratorInstance {
options
.
addOption
(
"version"
,
false
,
"Prints the version ("
+
VERSION
+
") information"
);
// Add Logging Level Options
options
.
addOption
(
OptionBuilder
.
withArgName
(
"quiet|debug|verbose"
)
.
withDescription
(
"Be extra quiet only errors are shown; "
+
"Show debugging information; "
+
"extra information is given for Verbose; "
+
"default is warning level"
)
.
hasArg
()
.
create
(
"loglevel"
));
options
.
addOption
(
OptionBuilder
.
withArgName
(
"logfile|'n'|'u'"
)
.
withDescription
(
"The filepath where the log file should be created; "
+
"No file will be created when equal to 'n'; "
+
"A unique filename will be created when equal to 'u'; "
+
"default it creates a log called '"
+
Logger_filepath
+
"'"
)
.
hasArg
()
.
create
(
"logfile"
));
options
.
addOption
(
OptionBuilder
.
withArgName
(
"quiet|debug|verbose"
)
.
withDescription
(
"Be extra quiet only errors are shown; "
+
"Show debugging information; "
+
"extra information is given for Verbose; "
+
"default is warning level"
)
.
hasArg
().
create
(
"loglevel"
));
options
.
addOption
(
OptionBuilder
.
withArgName
(
"logfile|'n'|'u'"
)
.
withDescription
(
"The filepath where the log file should be created; "
+
"No file will be created when equal to 'n'; "
+
"A unique filename will be created when equal to 'u'; "
+
"default it creates a log called '"
+
Logger_filepath
+
"'"
)
.
hasArg
().
create
(
"logfile"
));
options
.
addOption
(
"noheader"
,
false
,
"Does not write the CSV file header to the output log"
);
options
.
addOption
(
OptionBuilder
.
withArgName
(
"csvfile"
)
...
...
@@ -204,8 +198,7 @@ public class GeneratorInstance {
.
withDescription
(
"Path to the where the Generated file should be written"
).
hasArg
().
create
(
"output"
));
// Testcase Options
options
.
addOption
(
OptionBuilder
.
withArgName
(
"text"
)
options
.
addOption
(
OptionBuilder
.
withArgName
(
"text"
)
.
withDescription
(
"Comment to be written into the output file. Use quotation marks if your comment has spaces."
)
.
hasArg
().
create
(
"comment"
));
...
...
@@ -225,13 +218,10 @@ public class GeneratorInstance {
options
.
addOption
(
OptionBuilder
.
withArgName
(
"num"
).
withDescription
(
"Repeat Count (Default: "
+
repeat
+
")"
)
.
hasArg
().
create
(
"repeat"
));
options
.
addOption
(
OptionBuilder
.
withArgName
(
"string"
)
.
withDescription
(
"Creates a random testcase using some porportion for the random preconditions. "
+
"Please see the Javadocs or source code for the specifics"
)
.
hasArg
()
.
create
(
"randomPre"
));
options
.
addOption
(
OptionBuilder
.
withArgName
(
"string"
)
.
withDescription
(
"Creates a random testcase using some porportion for the random preconditions. "
+
"Please see the Javadocs or source code for the specifics"
)
.
hasArg
().
create
(
"randomPre"
));
}
...
...
@@ -401,6 +391,5 @@ public class GeneratorInstance {
}
}
private
void
setupResultOptions
(
CommandLine
cmd
,
Options
options
)
throws
IOException
{
}
private
void
setupResultOptions
(
CommandLine
cmd
,
Options
options
)
throws
IOException
{}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment