- Home
- /
- Salesforce Testing
- /
- Business Processes
- /
- Knowledge Management
Salesforce Knowledge Management Testing
Salesforce knowledge management testing validates the life of an answer — from draft to review, publication, translation, update and archive — and whether the right people can find it. It proves that Lightning Knowledge versions, approvals, data categories and channels control visibility correctly, that search and suggestions surface current articles, and that agents attach the right guidance to the cases they resolve.
Part of SyntraFlow's Salesforce business process testing practice. Capabilities described here are available for demonstration and proof-of-concept validation.
Knowledge is a process, not a library
In Lightning Knowledge, articles are records on the Knowledge object, with record types for different content, a publication status of Draft, Published or Archived, and a version history where each published update creates a new version. Authors draft, reviewers approve through validation status or an approval process, publishers release, and translators create localized versions. Visibility is decided twice: channels determine whether an article can appear to internal users, customers, partners or the public knowledge base, and data categories combined with category group visibility settings determine which users within a channel can see it.
That layered design is powerful and easy to break. A new data category, a changed channel checkbox or a permission set edit can remove an article from agents or expose an internal article to customers without any error. This page owns the article lifecycle and visibility model. How articles are used during a case is part of case-to-resolution testing, and how customers find them on a portal is covered on customer self-service testing.
The article lifecycle, step by step
SyntraFlow can be configured to move a single article through its full lifecycle using the personas who own each stage, asserting status, version and visibility at each point.
Author a draft
A Knowledge author creates an article with a record type, title, URL name, body and data categories; the test confirms it is invisible to agents and customers while in draft.
Review and approve
Submission moves the draft through validation status or an approval process; a reviewer approves and the test checks status fields and history.
Publish to channels
A publisher releases the article; the test verifies it appears in the Internal App and, where selected, the customer, partner or public channels.
Translate
A translation is created and published for a supported language; users with that language see the localized version and fall back as configured.
Update as a new version
An editor creates a new draft from the published article, publishes it, and the test confirms the version number increments and cases linked to the old version behave as the org intends.
Archive
The article is archived; it disappears from search and suggestions in every channel while remaining in history and on previously linked cases.
The visibility matrix to test
Visibility is the most important and least obvious part of Knowledge. Each row is an access rule that needs a positive and a negative assertion.
| Control | Grants or restricts | Negative check |
|---|---|---|
| Channel: Internal App | Visibility to licensed internal users. | Unchecked article is absent from the agent console search. |
| Channel: Customer | Visibility to authenticated customer users on sites. | Internal-only article cannot be opened by URL on the portal. |
| Channel: Partner | Visibility to partner users. | Partner cannot see customer-only or internal content. |
| Channel: Public Knowledge Base | Visibility to guest users on public sites. | Guest cannot find authenticated-only content. |
| Data category group visibility | Which categories a role, permission set or profile can see. | User without the category sees no article from it, even with the channel. |
| Knowledge user and field access | Who can author, edit, publish or archive, and which fields render. | Agents without publish rights cannot release drafts. |
| Record type access | Which article types a user can create or view. | Restricted record types are not creatable by general authors. |
How Knowledge breaks quietly
None of these failures throw errors. They show up as longer handle times, inconsistent answers or content where it should not be.
Category restructure
Renaming or moving data categories changes inherited visibility, so a whole product line of articles vanishes for one support team.
Wrong channel default
A new record type defaults to include the customer channel, publishing internal troubleshooting notes to the portal.
Stale suggestions
Suggested articles on cases rank an archived or outdated version because search synonyms or promoted terms were not updated.
Lost case links
Article attachment to cases fails for one case record type or page layout, so resolution evidence and article usage reporting drop.
Translation gaps
A master article updates but its translations stay on the old content, and non-English customers receive outdated guidance.
Publishing rights creep
A permission set grants publish access broadly, bypassing the review stage the content team relies on.
Search, suggestions and case attachment
Findability is where Knowledge pays for itself, and it needs its own scenarios. Tests enter realistic queries as an agent and a customer, and assert that expected articles appear, that archived and draft content do not, and that promoted search terms and synonym groups produce the intended results. Suggested articles on the case record, driven by the case subject and description, should return current, channel-appropriate articles for the agent's categories.
Attaching an article to a case creates a CaseArticle link that feeds article usage reporting and, in many orgs, a closure requirement. Scenarios should attach from the Knowledge component, create a new article from a case where authors are permitted to, and confirm the link records the article version. When a case closes, any Flow that requires an attached article, or that sends the article to the customer by email, should be exercised too.
Test data and personas for Knowledge
Knowledge scenarios are only meaningful with deliberately varied content and users. A reliable pack prepares:
- Articles in each record type, each publication status and at least two versions.
- Articles assigned to categories in every data category group, including nested categories that inherit visibility.
- Articles for each channel combination: internal only, internal and customer, partner, and public.
- At least one translated article in each supported language.
- Agents with different category visibility, an author, a reviewer and a publisher.
- A customer user, a partner user and a guest user on the relevant sites.
- Cases whose subjects should trigger specific suggested articles.
Suggested Knowledge scenarios
These scenarios cover the lifecycle, the visibility matrix and the moments Knowledge meets a case.
| Scenario | What it proves |
|---|---|
| Draft to publish with review | Only reviewed content reaches channels, and history records each stage. |
| New version replaces old | Search returns the new version and the old version no longer surfaces. |
| Category-restricted agent | Agents only find articles in the categories their role or permission set allows. |
| Internal article on portal | Internal-only content is not searchable or reachable by URL for customers. |
| Suggested articles on a case | Relevant, current articles are suggested for the case subject. |
| Attach and close | The article links to the case with its version and closure automation runs. |
| Archived article | Archived content disappears from every channel's search. |
Evidence and ongoing coverage
Evidence for Knowledge scenarios should record the article, its version and status at each step, the channels and categories applied, the persona performing each search or view, and whether the article was found. SyntraFlow is designed to capture that per run, giving a knowledge manager a readable visibility report rather than a set of screenshots.
Because visibility spans internal, customer, partner and guest users, Knowledge scenarios intersect with security. The guest and public channel checks align with guest user security testing, and the wider Service Cloud surface is covered on Service Cloud testing. Rerun the pack after category changes, record type additions, permission set edits and each seasonal release.
Related pages
Business process testing
The hub for outcome-led Salesforce process testing this page belongs to.
Case-to-resolution testing
How agents use and attach Knowledge while working a case to closure.
Customer self-service testing
Customers finding articles and deflecting cases on an Experience Cloud site.
Service Cloud testing
The wider Service Cloud surface behind Lightning Knowledge.
Guest user security testing
Keeping public knowledge base content separate from authenticated content.
Permission set testing
Validating the author, publisher and category access Knowledge relies on.
Knowledge Management testing FAQs
What is Salesforce knowledge management testing?
It is validation of how Lightning Knowledge articles are created, reviewed, published, translated, updated and archived, and of who can see and find them. Tests assert publication status, versions, channels, data category visibility, search results and case attachment for each persona that uses Knowledge.
Why are data categories so important to test?
Data categories, combined with category group visibility settings, decide which users within a channel can see an article. A category rename, move or visibility edit can hide large groups of articles from agents or expose them to the wrong users, without any error. Positive and negative checks per category catch this.
How is this different from testing Knowledge within case-to-resolution?
Case-to-resolution testing checks that an agent can find and attach an article while working a case. Knowledge management testing covers the full article lifecycle and the visibility model across internal, customer, partner and public channels. The first is one use of Knowledge; the second proves Knowledge itself.
Should search results be asserted in automated tests?
Yes, with care. Tests use a controlled set of articles and specific queries, then assert that expected articles are present and excluded ones are absent, rather than asserting an exact ranking. This catches visibility, status and synonym regressions without making tests brittle.
How are article versions tested?
The test publishes an article, creates and publishes a new version, and confirms search and suggestions return the new version, the version number increments, and cases previously linked keep or update their link according to org settings. Archiving the article then removes it from search.
Is knowledge management testing available today?
SyntraFlow is Oracle-native and expanding into Salesforce, and core service journeys including Knowledge scenarios are available for demonstration and proof-of-concept validation. Coverage for a specific Knowledge configuration is confirmed per engagement.
Put the right answer in front of the right people
See how SyntraFlow is designed to prove every article's lifecycle and visibility across agents, customers and partners.