0
0
Testing Fundamentalstesting~5 mins

Contract testing basics in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is contract testing in software development?
Contract testing is a method to ensure that two separate software components (like a client and a server) agree on how they communicate. It checks that the 'contract' or agreement between them is followed correctly.
Click to reveal answer
beginner
Why is contract testing important?
It helps catch problems early by verifying that each part of a system meets the agreed communication rules. This reduces bugs when different teams work on different parts and helps avoid integration issues.
Click to reveal answer
beginner
What are the two main sides in contract testing?
The two main sides are the provider (the service that offers data or functionality) and the consumer (the client that uses the service). Contract testing checks their interaction.
Click to reveal answer
intermediate
How does contract testing differ from end-to-end testing?
Contract testing focuses only on the communication between two parts, not the whole system. End-to-end testing checks the entire flow from start to finish, which is slower and more complex.
Click to reveal answer
beginner
What is a common tool used for contract testing?
One popular tool is Pact. It helps create and verify contracts between consumers and providers automatically.
Click to reveal answer
What does contract testing primarily verify?
AThe user interface design
BThe performance speed of the application
CThe agreement between two software components on data exchange
DThe database schema structure
Who are the two main participants in contract testing?
AProvider and Consumer
BFrontend and Backend
CClient and Database
DDeveloper and Tester
Which testing type is faster and more focused: contract testing or end-to-end testing?
AContract testing
BEnd-to-end testing
CBoth are equally fast
DNeither is focused
What problem does contract testing help prevent?
ASyntax errors in code
BIntegration issues between services
CSlow application loading
DUser interface bugs
Which tool is commonly used for contract testing?
ASelenium
BJMeter
CPostman
DPact
Explain in your own words what contract testing is and why it matters.
Think about how two friends agree on rules before playing a game.
You got /3 concepts.
    Describe the roles of provider and consumer in contract testing and how they interact.
    Imagine one person offers a service and another uses it.
    You got /4 concepts.