you are mixing import styles and generally it is preferred to import the whole module and reference parts of that module with the name of the module included  i e  reporting  reporter rather than reporter  it tells the reader immediately where that code came from  remove both reporter and testfailure imports and change your references below to use reporting reporter and reporting testfailure 