title: Play 2.0 - access running (Fake)Application from scala console
body: <p>I'm just getting started with the Play Framework 2.0 (using current trunk 2.1-SNAPSHOT, Scala) and I'm finding it very useful to experiment with the Scala API in the <code>play console</code>.</p>
  
  <p>For some things, however, for example stuff that depends on <code>play.libs.WS</code> API, I'm getting the <code>There is no started application</code> error. Fair enough, but I can't figure out how to set up a fake one up to use from the console, or whether this is even possible.</p>
  
  <p>It seems that <code>play.api.test._</code> isn't even accessible from the console. Any suggestions?</p>
  
  <p>Update: Thanks to @charroch, I needed to run <code>play test:console</code>, so I can now do:</p>
  
  <pre><code>import play.api.test.Helpers.running
  import play.api.test.FakeApplication
  
  val res = running(FakeApplication()) { 
      MyWebservice.someFunction()  
  }
  </code></pre>