1

enter image description here Trying to run a cucumber scenario with reporting to a JSON file, but for some reason the 'format' isn't working. It states 'cannot resolve method 'format'. I'm following a tutorial and can't understand why this isn't working. Any help would be appreciated, thanks

working with selenium/java/intelliJ/testNG

Krishnan Mahadevan
  • 14,121
  • 6
  • 34
  • 66
golf umbrella
  • 233
  • 2
  • 4
  • 16

1 Answers1

6

Replace format with plugin as format option was deprecated from V. 1.2.0 onwards on 30-October-2014. Example below -

@RunWith(Cucumber.class)
@CucumberOptions(features = "classpath:features/functional/",
                     glue = {"com.jacksparrow.automation.steps_definitions.functional" },
                   plugin = { "pretty","json:target/cucumber-json/cucumber.json",
                            "junit:target/cucumber-reports/Cucumber.xml", "html:target/cucumber-reports"},
                   tags = { "@BAMS_Submitted_State_Guest_User" },
                   strict = false,
                   dryRun = false,
               monochrome = true)
TheSociety
  • 1,936
  • 2
  • 8
  • 20