Agile – eXtreme Programming (XP) Methodology Testing

agileextreme programming

I am about to undertake a project for university, and given the project scope I have decided to use XP/agile methodology. I have began with developing a use case diagram; gathering user stories for the first couple features.

I am in the process of helping the customer develop the acceptance test and my question is: can the user stories for each feature be used as a user acceptance test?

Best Answer

You shouldn´t.

Acceptance tests are black box system tests. Each acceptance test represents some expected result from the system after a certain input.

For example, a valid user story for a calculator is:

"As a user, I want to sum two numbers"

An its acceptance tests:

  • 0+0 = 0
  • 1+1 = 2
  • 876+154 = 1030