Skip to content
DOCS

Knowledge Base

Your app's knowledge base is the foundation of AI-powered testing. Upload PDFs for context, edit AI discoveries, add missing items manually, and keep everything current with re-exploration.

GUIDE

Managing your knowledge base

Section 1/ 05

Understanding the knowledge base

When TestOptim AI explores your application, it builds a structured knowledge base from everything it discovers. This includes every page visited, every user flow mapped, and every entity identified (forms, buttons, navigation elements, API endpoints).

The knowledge base is the foundation for all test generation. The more complete it is, the better your test coverage. You can view the knowledge base from the project dashboard, browse discovered pages, and see how flows connect different parts of your application.

Section 2/ 05

Upload PDFs for better context

Upload product requirement documents (PRDs), design specs, API documentation, or user flow PDFs. TestOptim AI reads these documents to understand your application's intended behavior before exploring — resulting in more accurate entity recognition and smarter test generation.

Accepted formats: PDF (recommended), DOCX, TXT. Documents are processed immediately and the AI incorporates the knowledge on the next exploration run. This is especially useful for complex workflows, authenticated flows, or applications with specific business logic the AI should understand upfront.

Section 3/ 05

Edit AI-generated content

The AI's understanding isn't always perfect. You can edit any discovered page, flow, or entity — rename pages, merge duplicate flows, add missing steps, correct entity types, and fill in details the AI may have missed during exploration.

Edits are saved immediately and reflected in all subsequent test generation runs. The AI learns from your corrections — when you fix a misidentified element or add a missing flow step, future explorations become more accurate. You can also delete irrelevant pages or entities to keep the knowledge base clean.

Section 4/ 05

Manually add pages, flows, and entities

If the exploration agent didn't discover everything — for example, a page behind a complex multi-step form or a flow requiring specific data — you can add it manually. Define the page URL, describe the flow steps, and specify the entities involved.

When you add items manually, the AI can still enhance them. For example, if you add a page URL, the AI will attempt to visit it during the next exploration to fill in details automatically. Manually defined flows can be combined with AI-discovered flows to create comprehensive test scenarios.

Section 5/ 05

Re-exploration and keeping coverage current

Applications change. Re-exploration lets you re-scan your app to discover new pages, updated flows, and changes to existing entities. The AI compares results with previous explorations — preserving manual edits while incorporating new discoveries.

Trigger re-exploration manually from the project dashboard, or configure GitHub webhook integration to auto-trigger on every push and pull request. Re-exploration is incremental — the AI revisits previously discovered pages and looks for new ones, so it's faster than the initial full exploration.

ACTIONS

Editing and refining AI-generated content

Rename pages and flows

Give meaningful names to discovered items

Merge duplicate discoveries

Combine AI entries that represent the same page

Add missing flow steps

Complete partial flow discoveries

Correct entity types

Fix misidentified form fields, buttons, etc.

Delete irrelevant items

Remove noise from the knowledge base

Reorder flows

Arrange flow steps in correct sequence