In Tosca, a Check Point validates actual results against expected values within a step. If it fails, the current step is marked failed, and the next moves depend on the configured error handling—stop the run or continue with subsequent steps. Automatic retries don’t occur unless you set them up.

Multiple Choice

How does Tosca respond when a Check Point fails?

In Tosca, a Check Point is a validation that compares actual results to expected ones within a TestStep. If that validation fails, Tosca marks the current TestStep as failed. What happens next depends on the error handling you’ve configured for that step (or the test case): you can set it to stop the run when an error occurs, or to continue with subsequent steps while recording the failure. A failed Check Point is a real failure state for the step, not just a warning, and automatic retries aren’t applied unless you explicitly configure a retry mechanism.

Tosca treats Check Points as the moment of truth inside a TestStep. You’ve built your test steps, wired in the data, and at the moment a Check Point runs, Tosca is comparing what you expected with what actually happened. When that comparison fails, the system doesn’t pretend everything is fine. It flags the current TestStep as failed and, crucially, leaves the next move up to you. That distinction—a real failure state that isn’t hidden behind a casual warning—is what separates Tosca from some other automation tools that gloss over validation hiccups.

Why Check Points matter in the flow

Think of a Check Point as a quality gate. It’s not just about confirming one piece of data; it’s about validating an entire outcome of a TestStep. The moment the gate fails, Tosca records that step as failed. The bigger question is what Tosca should do next. Do you want the run to come to a halt to prevent cascading errors, or would you rather carry on, catching the failure in one place and reviewing it after the fact?

That branching behavior—stop versus continue—depends on error handling settings. These aren’t afterthought toggles tucked away in a corner. They’re part of the test design, and they shape the reliability and speed of your automated suite. It’s a bit of a balancing act: stopping early can save you time debugging a chain of failures, while continuing can let you map the full scope of issues in one pass, which is handy for root-cause analysis and impact assessment.

What exactly happens when a Check Point fails?

  • The TestStep is marked as failed: This is a concrete, observable result in the test log. It’s not a soft embarrassment or a warning; it’s a real failure state tied to that specific step.

  • Error handling settings determine the next move: The test environment gives you knobs to tune. You can configure a step or a test case to stop the run on error, ensuring you don’t drift into unreliable outcomes. Alternatively, you can opt to continue with subsequent steps, capturing the failure as part of your overall run results. This is especially useful when you want to understand the broader impact of a failure across the workflow.

  • Retries aren’t automatic by default: If a Check Point fails, Tosca doesn’t automatically retry the step unless you’ve explicitly set up a retry mechanism. This is actually a good reminder that retries need to be intentional—false alarms or flaky checks aren’t saved by a snap retry; they warrant a rethink of the check’s criteria or the environment.

  • The log tells the story: Every failed Check Point leaves a trace in the test log. You’ll see the expected vs. actual, the data inputs, and the exact moment of failure. This traceability is invaluable when you’re debugging and trying to decide whether the failure is a one-off glitch or a symptom of a deeper issue.

Practical implications for test design

  • Align error handling with business impact: If a failing Check Point represents a critical condition (say, a user cannot access a secured page), you’ll likely want to stop the run to prevent noisy, cascading errors. On the other hand, if it’s a non-critical validation (like a cosmetic field formatting), continuing can help you capture more context in one go without stopping the entire pipeline.

  • Use configurable scopes: You don’t need a one-size-fits-all rule. Configure error handling at the TestStep level when the failure mode should be nuanced, then apply a broader rule for the entire TestCase if appropriate. This layered approach keeps your automation expressive without becoming brittle.

  • Consider the environment: Flaky tests aren’t just a nuisance; they erode trust in the automation. If a Check Point frequently fails due to timing issues or network hiccups, it’s worth looking at retry options, explicit waits, or even rethinking the data setup that feeds the Check Point.

  • Embrace meaningful Check Points: The value isn’t in checking everything, but in checking what matters. A well-chosen Check Point captures the critical state without overburdening the test with minutiae. Too many checks can blur the signal; too few can hide important regressions.

A few practical examples to illustrate

  • Example 1: A login test with a Check Point for successful landing: You might have a TestStep that logs in, then a Check Point that verifies the user lands on the dashboard and sees a welcome message. If the message isn’t there, marking the step as failed is appropriate. If that failure means downstream features won’t load, stopping the run makes sense. If, however, you’re just auditing multiple independent widgets on the dashboard, continuing with the rest of the test while recording the failure could be more informative.

  • Example 2: A form submission where the Check Point compares confirmation text: If the confirmation isn’t exactly what you expect, the step should fail. Depending on the scenario, you may want to halt to avoid presenting a false-positive success path to stakeholders, or you may want to collect the failure data for analysis and keep collecting other results in the same run.

  • Example 3: Data-driven validations across multiple records: If one record fails a Check Point, the test step is marked failed, but you can still proceed with other records if your error handling is set to continue. This approach makes it possible to map a broader trend rather than focusing on a single outlier.

Tips to keep Check Points meaningful and reliable

  • Be explicit about what you’re validating: A Check Point should express a clear expectation. Vague checks are prone to misfires and misinterpretations. The clearer the expectation, the more trustworthy the result.

  • Separate critical from non-critical checks: Put the heavy hitters in their own Check Points. That way, a single, well-understood failure won’t drown out less important validations.

  • Document the error handling choices: It’s easy to forget why a test is configured to stop or to continue. A quick note in the test description or a shared guideline helps teammates understand the intended behavior without digging through settings every time.

  • Favor determinism over flakiness: If a Check Point is consistently flaky, it’s worth revisiting the data, the response times, or the conditions under which it runs. Reliability is the backbone of useful automation.

  • Use descriptive failure messages: When a Check Point fails, the failure message should tell you not just that something went wrong, but what went wrong and where. This reduces the friction of debugging and accelerates recovery.

Common pitfalls and how to avoid them

  • Overusing Check Points: It’s tempting to validate every tiny detail, but too many checks can obscure the important signals. Focus on the checks that have the highest business impact.

  • Relying on automatic retries for flaky checks: Retries can mask real issues. If a Check Point is flaky, treat it as a symptom and address root causes (environment instability, timing issues, data quality) rather than masking it with a repeat attempt.

  • Conflicting error handling rules: If the same TestStep can stop in some contexts and continue in others, it creates cognitive load and inconsistency. Strive for coherent rules that align with your testing goals and risk appetite.

  • Neglecting logs: A failed Check Point is a story. Without good logging, you’re left with a vague breadcrumb trail. Invest in clear, structured failure logs with enough context to reproduce and diagnose.

A note on the art and craft of automation

Automation isn’t a cold machine playing back a script. It’s a living practice that mirrors how people work with software: expectations, failures, and the choice of what to do next. Check Points capture those moments of truth, and error handling policies let you decide how to respond. The sweet spot is a well-tuned balance—enough guardrails to catch real problems, enough flexibility to explore and learn from results, and enough clarity so everyone on the team understands why a test behaves a certain way.

If you’ve ever watched a test run stall at a Check Point, you know the moment can be frustrating. But it’s also incredibly informative. It tells you where the system’s behavior diverges from your expectations and where the team needs to focus. The key is to design with intention: pick the right checks, set deliberate error handling, and keep the logs human-readable. Do that, and Check Points become not a roadblock but a bright signal guiding you toward more reliable software.

A little practical wisdom to take away

  • Treat a failed Check Point as a real fault, not a cosmetic glitch.

  • Choose error handling that matches the severity and impact of the failure.

  • Build a clean, readable trail in logs to speed up diagnosis.

  • Keep checks purposeful and avoid overloading the TestStep with too many validations.

  • Revisit flaky checks with a mindset of root cause analysis rather than quick retries.

In the end, Tosca’s behavior around failed Check Points isn’t about punishment for mistakes. It’s about giving you precise control over how a test run unfolds—whether to pause for a closer look or to carry on and collect a richer picture of how the system behaves under pressure. And that control, thoughtfully applied, makes automation not just powerful but resilient, too.