BeHat Documentation

BeHat Documentation

by Nate Baxley -
Number of replies: 3

I'm really excited to get into Behat.  We've got the server setup, and have it tied into our selenium server.   I've even found the limited cheat sheet from behat.org.  However, the rest of the documentation is pretty lacking.  Does anyone have good resources like a list of all the "phrases" that can be used in Behat or more the Moodle specific phrases that have been written?  I feel like we have to go hunting through the behat php files searching for a function or run the risk of recreating the wheel (I've already recreated the Turn Editing Mode On function).  Just looking for some pointers.

 

Thanks,

Nate Baxley

Average of ratings: -
In reply to Nate Baxley

Re: BeHat Documentation

by Rex Lorenzo -

Have you taken a look at: Site administration ▶ Development ▶ Acceptance testing?

It lists all the available step definitions. But the best way to write your own Behat stuff is to take a look at the existing scripts.

In reply to Nate Baxley

Re: BeHat Documentation

by Itamar Tzadok -

See Acceptance testing in the dev docs. And +1 to what  Rex says about the best way to start. smile