Writing useful specs by analyzing the test requirements
Generally, we develop the test requirements from PRD, SRS, Use Cases, or User Stories. Test requirements are developed in the form of test scenarios or test cases. In this recipe, we will define test requirements from the User Story in the form of test cases. Also, you will learn how to design Jasmine Specs for the test cases.
Let's assume that you are working with <ABC> Money Exchange Company. As per the new requirements, a component (or module) needs to be developed, which manages and converts currency across the continents, that is, Asia, Europe, North America, South America, and Africa. The company follows the agile methodology to design and develop their products. You are playing the role of a white box engineer (or quality engineer) in the scrum team. Your responsibility is to create all the test cases based on the requirements, and design the corresponding Jasmine specs. Thereafter, a JavaScript developer will implement...