# HG changeset patch # User Jaroslav Tulach # Date 1463822581 -7200 # Node ID 668b8501d01f2d660b029a7afe7bd5784834d9bf # Parent 4b7ef2a05eb73fc3a85ac5c56b7f8744cea9400c Use names of parameters as indentification of a 'case-run' rather than name of the main method which is usually a constant diff -r 4b7ef2a05eb7 -r 668b8501d01f launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/impl/Console.java --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/impl/Console.java Fri May 20 06:02:44 2016 +0200 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/impl/Console.java Sat May 21 11:23:01 2016 +0200 @@ -86,7 +86,17 @@ private static void beginTest(Case c) { Object[] arr = new Object[2]; - beginTest(c.getClassName() + "." + c.getMethodName(), c, arr); + String testName; + String[] args = c.getArgs(); + if (args == null || args.length == 0) { + testName = c.getClassName() + "." + c.getMethodName(); + } else { + testName = args[0]; + for (int i = 1; i < args.length; i++) { + testName = testName + ',' + args[i]; + } + } + beginTest(testName, c, arr); textArea = arr[0]; statusArea = arr[1]; }