Testing in XP

Covering XP's four key testing features, test-first development, the benefits of writing tests before code, customer role in acceptance testing, automated testing frameworks, three reasons test-first doesn't guarantee thorough testing, build acceptance rules, and how user stories relate to tasks and test cases

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen

QUESTION OF
Views #: 6
Questions #: 10
Time: 10 minutes
Pass Score: 80.0%
Style
Mode

Why XP Emphasises Testing

1 pts
volume_mute

With incremental development there is no system specification that an external testing team can use to develop system tests. What is XP's response to this problem?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Test-First Development — The Core Idea

1 pts
volume_mute

The diagram below shows how test-first development works.

Write testbefore the codeWrite codeto pass the testRun all tests— all must passNew build accepted only if all tests execute successfully

What is the key innovation of test-first development?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Benefits of Writing Tests First

1 pts
volume_mute

Writing tests before writing code has two important benefits. Which of the following correctly describes both?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Customer Role in XP Testing

1 pts

Complete the sentence about the customer's role in XP testing.

The role of the customer in the XP testing process is to help develop (1) tests for the stories that are to be implemented in the next release. In XP, acceptance testing, like development, is (2).

note_alt Add notes
flag Flag

Correct Answer

Explanation

Why Customer Involvement in Testing Is Difficult

1 pts
volume_mute

Relying on the customer to support acceptance test development is described as sometimes a major difficulty. Why?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Automated Testing Frameworks

1 pts

Test automation is described as essential for test-first development. Complete the sentence.

Tests are written as executable components before the task is implemented. An automated test framework makes it easy to write executable tests and (1) a set of tests for execution. JUnit is a widely used example. As testing is automated, there is always a set of tests that can be quickly and easily executed — whenever any functionality is added to the system, the tests can be run and problems that the new code has introduced can be (2) immediately.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Three Reasons Test-First Doesn't Guarantee Thorough Testing

1 pts
volume_mute

Test-first development and automated testing usually results in a large number of tests. However, this approach does not necessarily lead to thorough program testing. Which of the following are the three stated reasons? Select all that apply.

note_alt Add notes
flag Flag

Correct Answer

Explanation

New Build Acceptance Rule

1 pts
volume_mute

When a programmer builds the system to create a new version in XP, what rule must be satisfied before the new build is accepted?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Story Cards, Tasks, and Test Cases

1 pts
volume_mute

How do user stories, tasks, and test cases relate to each other in the XP testing process?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Tests Must Pass After Integration

1 pts
volume_mute

True or False: In XP, when new code is integrated into the system, it is acceptable for some existing tests to fail temporarily while the new functionality is stabilised.

note_alt Add notes
flag Flag

Correct Answer

Explanation