I use gherkin syntax to write the scenarios of features that involve user interaction. However, I'm not sure if it is the correct syntax to describe scenarios to test backend applications.

If your answer is yes, could you give me an example of how you would do it?

If your answer is no, could you recommend an alternative?

Thanks in advance for your answers.

1 Answer 1


I don't know how much my answer will be useful for you; but Yes, we do use the same for testing parts of our applications that work in back-end e.g. we use it for testing webservices response, Database testing and currently we are using it for ETL testing too.

For example:

Given: CSV file to be imported is located at xyz location

When: ETL process A is executed

Then: CSV file Data should be loaded to Warehouse table A


Given: User 'A' is created in system XYZ

When: Sync button is clicked

Then: Webservice call containing user information in XML format should be sent to system ABC and a new row should be inserted to its user table

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.