Behaviour Driven Development for web developers and their clients.

It sells itself:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Feature: Tutor forums
	As a Tutor
	I want to be able to use the forums
	In order to communicate with other tutors
 
Scenario: View forums
	Given that I am logged in as a Tutor
	And I click on "Tutor Forums"
	Then I should see a paginated list of "Tutor Forums"
 
Scenario: Create forum
	Given that I am logged in as a Tutor
	And I am on the page "Tutor Forums"
	And I click on the link Create forum
	And I enter a Forum title
	And I click "create forum"
	Then I should be able to create a new forum.
 
Scenario: Edit forum
	Given that I am logged in as a Tutor
	And I am viewing a forum that I created
	And The forum was created within the past 15 minutes
	Then I should be able to edit the forum
 
Scenario: View threads
	Given that I am logged in as a Tutor
	And I am on the page "Tutor Forums"
	And I click on the title of a Forum
	I should see a paginated list of threads for that forum.
 
Scenario: Read thread
	Given that I am logged in as a Tutor
	And I am viewing a list of forum threads
	And I click the title of a thread
	Then I should see a list of message for that thread.
 
Scenario: Reply to thread
	Given that I am logged in as a Tutor
	And I am viewing a thread
	And I click "post reply"
	And I enter a reply
	And I click "post reply" button
	Then I should be abñle to reply to a thread
 
Scenario: Edit reply
	Given that I am logged in as a Tutor
	And I am viewing replies to a thread
	And a reply was posted by me
	And the reply was posted within the last 15 minutes
	Then I should be able to edit the reply.

It’s so easy you and your clients can learn it in minutes, and it saves everyone time and clarifies expectations.

PHP users should check out Behat.

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

Leave a comment