Question: given when then use case?
Answer: Given-When-Then. Given-When-Then (GWT) is a semi-structured way to write down test cases. They can either be tested manually or automated as browser tests with Selenium. It derives its name from the three clauses used, which start with the words GIVEN, WHEN and THEN.