Groovy Scripting

Simple example of how to use Refactor FIT from within the Groovy Console.

def page = refactorfit.FitPage.readFromFile(new File("c:/data/temp/FitTest.html"))
page.tables.each() { table ->
  if(table.fixtureName.equals("CalculateCredit"))
      table.renameFixture("fixtures.CalculateCredit");
}
page.write(new File("c:/data/temp/FitTest-Refactired.html"))