Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIReporting

Test a filtered report and what it leaves out

Three rows in, one deliberately excluded, and a total that has to match the rows that survived.

Published on:

Reports are where executives make decisions, which makes a filter that silently includes the wrong quarter more expensive than most outright bugs. Nobody double-checks a report that renders.

This use case runs a filtered pipeline report on the Salesfource clone and checks both halves of the filter.

The checks that matter

A report filter has to be checked on what it kept and what it dropped, and the total has to follow from the rows rather than from the unfiltered set.

CheckExpected
Record count3 records, filtered to quarter Q4
IncludedNorthwind, Brightline and Harbour
ExcludedCedar Foods, because it closes in Q1
Total amount$80,300.00, the sum of the three

Naming the excluded record and the reason is what turns this from a row check into a filter check. A report that includes an out-of-quarter deal inflates the forecast, and the row looks entirely legitimate sitting there.

Note

Note: Asserting a total alongside the rows catches a report that filters the list and sums the unfiltered set, which is a classic reporting defect. Start on TestMu AI. Start for free

The flow as a test file

The other two filters are left on All deliberately, so the quarter filter is the only variable and any change in the row set is attributable to it.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/salesforce-clone-app/reports?reset=true
max_steps: 40
tags: [salesforce, crm, reporting]
---

# Salesfource 28.3: Report filter

Catalog objective: run a pipeline report filtered to this quarter.
Key assertion: the report renders rows matching the filter.

## Set the filter
Select "Q4" in "Close quarter", leave "Opportunity owner" on All and "Stage" on All.

## Run the report
Click "Run Report" and verify a "Report results" card appears.

## Verify the rows match the filter
Verify the summary reads "3 records · filtered to quarter Q4" and the rows are "Northwind - Platform Licence", "Brightline - Renewal" and "Harbour - Pilot", with "Cedar Foods - Expansion" excluded because it closes in Q1.

## Verify the total
Verify "Total amount" reads "$80,300.00".

The record count is asserted together with the filter description, which means a report that runs unfiltered and happens to return three rows still fails.

Step by step coverage

A filter, a run, the rows and the total.

StepWhat it proves
Set the filterA quarter can be selected with other filters left open
Run the reportThe report executes and renders results
Verify the rows match the filterThree expected rows present and the out-of-quarter deal excluded
Verify the totalThe total equals the sum of the filtered rows

Leaving the other filters on All is a deliberate choice. One variable at a time is what makes a filter test diagnostic rather than merely green.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/salesforce/report-filter_test.md

Add a filter combination returning nothing, since an empty report should say so rather than render a zero total that reads as a bad quarter.

Reports drift as data changes underneath them. Running Kane CLI in CI covers scheduled checks, and deriving assertions from requirements covers keeping expected figures anchored.

Author

...

Bhawana

Blogs: 75

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Report Filter FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests