Professional Documents
Culture Documents
CS3270 Aston University School of Engineering & Applied Science CS3270: Testing and Reliable Software Engineering Mock Examination Date: Monday nnth XXXX 2012 Time: hr:mm hr:mm Instructions to Candidates:
You must complete ALL questions in an exam answer book. Answer each question on a NEW page and CLEARLY IDENTIFY the question in the answer book. All questions will be marked out of 20 marks. All answers should be ILLUSTRATED with examples from coursework exercises, personal experience, or the question case
Page 1 of 4
1. A developer and a tester are discussing the nature of testing. The developer believes that the tests they write in test-first programming are all that are needed to test the software. Using testing quadrants (Crispin and Gregory, 2009) provide an outline of an argument as to why other tests are required and the difference in foci of the different tests. 2. Myers, et al. (2004) argue that a programmer should not test their own program. Agile development processes use test-drive or test-first programming but do not discard other forms of testing. Discuss the difference between test-driven or test-first development and testing as Myers, et al. (2004) describe testing. 3. An cinema complex is developing a ticketing system that is designed to reward people who frequently attend movies. At the heart of the system is a function that decides whether the current ticket purchase should be treated as free or charged at a reduced rate. The rules for ticket sales are: 1. If this is the customers 3rd ticket purchase in the week then the ticket is free. 2. If this is the customers 5th ticket purchase in the month and there have been no free tickets issued to the customer then the ticket is half price. 3. If this is the customers 9th ticket purchase in the month and there have been no free tickets issued to the customer then the ticket is free. 4. Any multiple seat ticket purchase for the viewing of a particular movie at any given time is considered a group booking. Every fifth ticket in a group booking is half price. You have bee asked to design some white box tests for this code. Should you use statement coverage, decision coverage, or condition coverage for the development of these tests or should you use some combination? Describe the focus of each of these techniques and based on your descriptions present an argument for a testing strategy you would use for this system. Based on your selected testing strategy and the conditions stated above, calculate how many test cases you believe will be required. Clearly show how you calculated the number of test cases. 4. You are a tester assigned to an agile development project for an online bookstore (see the attached specification). Discuss how you could use behaviour-driven development (BDD) specifications to help drive tests. Illustrate by providing two examples of BDD stories using the provided specification how BDD can be used. 5 In the testing of the online bookstore system, a number of problems have been identified in the check out process. It seems to have no problems when each item in the shopping cart has a quantity of one but it fails when the first item has a quantity greater than one and the remaining items have differing quantities. You have been asked by the tester to help identify the cause of the problem. Discuss the debugging strategies that you might be able to use. Describe each of the strategies and recommend the strategy or strategies that you would consider using to resolve the identified problem. Provide your reasoning for selecting the strategy or strategies that you would consider using.
Page 2 of 4
END OF EXAM
Page 3 of 4
Page 4 of 4