• b11

      To use the dedicated (private static final) Random object of AbstractInfo one needs to use the non-static getRandom() method like this:

      @Run(test = "myTest")
      public void runMethodForMyTest(RunInfo info) {
         int x = info.getRandom().nextInt();
         myTest(x);
      }

      It would be easier to make getRandom() static to provide an easier access to it without the need to specify RunInfo as parameter:

      @Run(test = "myTest")
      public void runMethodForMyTest() {
         int x = RunInfo.getRandom().nextInt(); // or AbstractInfo.getRandom().nextInt()
         myTest(x);
      }

            chagedorn Christian Hagedorn
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: