Idempotency
An action that gives the same result no matter how many times it is repeated.
Definition
An idempotent operation can safely be repeated: doing it twice has the same effect as doing it once. Payment and order systems rely on this to protect users from retries, refreshes and double taps. Testers check it by repeating actions on purpose.
In practice
Refreshing the "Order confirmed" page or tapping "Pay" twice should still result in exactly one order and one charge.
Learn it in context
Lessons that use this term.
- Forms and ValidationFeatures
- API Testing with PostmanWeb
- Interruptions (Calls, SMS, Alarms)Mobile
- Shopping Cart and CheckoutFeatures
- API Testing in Depth: Auth, Negative Tests and Data ChecksWeb
- Network ConditionsMobile
- State Transition TestingFundamentals
- Proxy Tools: Charles and ProxymanMobile
- Push NotificationsFeatures
- Offline ModeFeatures