Introduction

Introduction

Welcome in detective framework!

Visit Our Documentation Page

package detective.core.script

import static detective.core.Detective.*;


story() "Simple Story with Echo Task" {
  inOrderTo "demostrate simple story"

  scenario "Echo parameters back" {
    given "a parameter" {
      parameterA = "This is the value"
    }

    when "run echo task"{
      runtask echoTask();
    }

    then "parameters will echo back"{
      echotask.parameterA << "This is the value"
    }
  }
}

Detective use itself as the testing framework (with Junit), view Our test cases to view more how Detective test itself.