code: public static void link(final String name, final String type, final String url) {
          final Link link = new Link().setName(name).setType(type).setUrl(url);
          getLifecycle().updateTestCase(testResult -> testResult.getLinks().add(link));
      }
docs: Adds link to current test or step (or fixture) if any. Takes no effect
  if no test run at the moment.
  
  @param name the name of link.
  @param type the type of link, used to display link icon in the report.
  @param url  the link's url.