World’s largest virtual agentic engineering & quality conference
Agent Evaluation and the Power CAT Kit score Copilot Studio agents against questions you supply, not real-user traffic. Here's how to test one at scale.

Akarshi Aggarwal
Author

Salman Khan
Reviewer
Last Updated on: July 24, 2026
More than 230,000 organizations, including 90% of the Fortune 500, now use Microsoft Copilot Studio to build agents, according to Microsoft. Low-code makes it easy to ship one. It does nothing to tell you whether the agent holds up once real employees and customers start typing.
Your agent answers cleanly in the Test Pane. Then a real user asks the same thing three ways in one message, mistypes a product name, gets frustrated, and the agent triggers the wrong topic and hands back a confident answer grounded in the wrong document.
This guide covers how a Copilot Studio agent is actually built, where it breaks in production, the four dimensions worth testing, and a step-by-step approach, from Microsoft's own tools to automated evaluation at scale.
Microsoft Copilot Studio is the low-code agent builder inside Power Platform. A Copilot Studio agent is not a single model; it is a composition of authored logic, generative answers, and enterprise actions, published to wherever your users already are. A failure can start in any of those pieces.
What a real Copilot Studio agent is made of:
Because a generative answer chooses its own grounding and phrasing at runtime, two users asking the same thing can get different responses. That non-determinism is why testing a Copilot Studio agent is closer to testing any other chatbot builder than to testing a deterministic form, and why one green Test Pane run proves so little.
Microsoft's own Agent Evaluation feature scores answer quality and the knowledge sources an agent used, which is a good map of where agents break: wrong topic, wrong grounding, or wrong tone. Most production incidents land in one of the rows below.
| Failure Mode | Where It Comes From | What Breaks with a Real User |
|---|---|---|
| Wrong topic triggering | A user's phrasing matches the trigger phrases of the wrong topic, or none at all, sending the conversation down an unintended path. | The agent launches a password-reset topic when the user asked about billing, and never recovers. |
| Ungrounded generative answers | A generative answer pulls from a stale or wrong knowledge source, or from the model's own memory when grounding is thin. | The agent confidently states a policy that no current document supports, and the user acts on it. |
| Connector and action failures | An action calling a Power Platform connector or Dynamics API can time out, throttle, or return an error mid-conversation. | The agent says a request was submitted, the connector call failed silently, and nothing actually happened. |
| Prompt injection through knowledge | A grounded SharePoint or web document carries instructions the agent follows over its own system prompt. | The agent leaks data or ignores a guardrail because a document told it to. |
| Silent regression after an edit | Editing a topic, prompt, or knowledge source shifts behavior that worked before, with nothing forcing a re-test. | A change that fixed one flow quietly breaks another, and it ships across environments unnoticed. |
Whether the agent is an HR helpdesk, a customer support bot, or an internal IT assistant, the same four dimensions decide whether it is ready for real users. Each needs a different kind of scenario, not just more test questions.
| Dimension | What It Checks | Example on a Copilot Studio Agent |
|---|---|---|
| Task Success | Whether the agent completed the job, including the topic it triggered and the action it ran. | The right topic fires, the connector action posts the ticket, and the confirmation reflects the real result. |
| Conversation Quality | Coherence across turns, context retention, and recovery when a user changes direction mid-chat. | The agent remembers a detail from the first message and applies it to a follow-up several turns later. |
| Safety | No ungrounded facts, no PII leakage, and refusals where policy requires them. | The agent refuses instructions injected through a grounded document and never invents a policy or number. |
| Resilience | Behavior under adversarial input, ambiguous phrasing, and connector or grounding failures. | The agent degrades gracefully when a connector times out, instead of claiming an action succeeded. |
Testing happens in three layers: what Microsoft's built-in evaluation scores against your questions, what the Power CAT Kit adds for batch runs and pipelines, and how you score the published agent against the messy real-user traffic neither of the first two simulates.
Copilot Studio's Agent Evaluation runs structured, automated testing right in the maker experience. You build an evaluation set by uploading a file, reusing recent Test Pane interactions, adding questions manually, or generating queries from the agent's metadata and knowledge sources. You then score responses with exact or partial matches, similarity metrics, intent recognition, or relevance and completeness, and set success as lexical alignment, semantic alignment, or a custom threshold.
Results show clear pass or fail indicators, numeric answer-quality scores, and the knowledge sources the agent used. It is the right first stop for correctness on questions you can write down. It does not generate the angry, ambiguous, or adversarial inputs that are not in your evaluation set, which is exactly where production surprises come from.
For batch runs, Microsoft's Power CAT Copilot Agent Kit lets makers configure tests and test sets and batch-test agents, producing results with latencies, observed responses, and pass or fail outcomes. It now supports user-defined rubrics for generative answers, and it can automate testing and deployment through Power Platform Pipelines so agents are validated before promotion across environments.
This closes the batch-and-pipeline gap the in-product feature leaves open. What it still does not do is grade hallucination, bias, and safety as first-class metrics, or throw hundreds of persona-varied adversarial conversations at the agent to find the failures no test author thought to write.
This is where TestMu AI's Agent Testing plugs in, at the channel your agent actually publishes to. Instead of questions you authored, autonomous evaluators hold full multi-turn conversations with the published agent the way real users would, across 10 pre-built personas including confused, impatient, angry, and off-script users, and score every conversation on the same 9 quality metrics each time.
Connecting a Copilot Studio agent takes only its published endpoint plus a prompt describing what it should and should not do. The platform generates 60-100+ scenarios from that prompt automatically, distributed across happy-path flows, edge cases, and adversarial input, so coverage stops depending on which questions a maker thought to add.
Connecting Agent Testing to a Copilot Studio agent does not require rebuilding it or changing a topic. It calls the published agent endpoint directly, adapting to its request shape with a body template and a response path, then layers three inputs on top before generating a full scenario set.
# Point the evaluator at a published Copilot Studio endpoint
testmu-a2a test \
--agent https://your-copilot-agent-endpoint/conversations \
--body-template '{"activity": {"type": "message", "text": "{{message}}"}}' \
--response-path "activities[-1].text" \
--spec "HR helpdesk agent that answers policy questions and files requests" \
--count 30From there, autonomous evaluators run the generated scenarios against the endpoint and score each on the 9 quality metrics. A connector action is checked against what it should have done, not just whether it returned, and every run rolls up into a Green, Yellow, or Red verdict, the same model our guide to conversational AI testing walks through. If you also run agents built on other stacks, the same approach covers a LangChain or LangGraph agent.
Note: Point TestMu AI's Agent Testing at your published Copilot Studio agent and get a Green, Yellow, or Red production-readiness verdict before your first real user does. Start testing free
A match score tells you the answer resembled your reference. It does not tell you whether it was grounded, complete, or safe. Agent Testing scores each conversation on 9 quality metrics tuned for how a grounded, connector-driven agent actually goes wrong.
Every score carries a confidence level, High, Medium, or Low, based on how many scenarios ran, so a Green built on ten questions is never mistaken for a Green built on three hundred conversations. That is the line between an evaluation that passed and an agent that is ready to roll out to a whole tenant.
The four dimensions cover a user trying to get help. Red-teaming covers a user, or a poisoned document, trying to break the agent: override the instructions, pull data through a connector, or coax out PII. Copilot Studio agents wired to Power Platform connectors and enterprise data are especially exposed. The testmu-a2a-cli runs adversarial probes against the endpoint, scoring categories including prompt injection, jailbreak, data exfiltration, and PII leakage at basic, intermediate, or advanced intensity.
testmu-a2a redteam \
--agent https://your-copilot-agent-endpoint/conversations \
--intensity advanced \
--spec "Copilot Studio HR agent with Dataverse and connector actions"
# Target specific attack categories only
testmu-a2a redteam \
--agent https://your-copilot-agent-endpoint/conversations \
--categories prompt-injection,jailbreak,pii-leakageThe output is a letter grade, A+ to F, per category rather than one pass or fail, because an agent can resist a direct jailbreak and still follow instructions injected through a SharePoint document it grounded on. For any agent with connector access to real systems, that per-category grade is the gap between a vulnerability you found and one an attacker finds.
Co-Founder, Steadfast Systems
Discovered @TestMu AI yesterday. Best browser testing tool I've found for my use case. Great pricing model for the limited testing I do 👏
Deliver immersive digital experiences with Next-Generation Mobile Apps and Cross Browser Testing Cloud
A topic edit, a new knowledge source, or a prompt change promotes the moment a pipeline runs. The Power CAT Kit validates agents through Power Platform Pipelines, and the testmu-a2a-cli adds the endpoint-level sweep: it installs with pip, authenticates from CI secrets instead of an interactive login, and writes JUnit XML that GitHub Actions, GitLab CI, and Jenkins read natively, the same discipline covered in our guide to AI agent regression testing.
# .github/workflows/copilot-agent-tests.yml
name: Copilot Studio Agent Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install TestMu A2A CLI
run: pip install testmu-a2a-cli
- name: Run Copilot Studio agent regression suite
env:
TESTMU_USERNAME: ${{ secrets.TESTMU_USERNAME }}
TESTMU_ACCESS_KEY: ${{ secrets.TESTMU_ACCESS_KEY }}
run: |
testmu-a2a test \
--agent https://your-copilot-agent-endpoint/conversations \
--spec "Copilot Studio HR helpdesk agent" \
--format junit --output results.xml
- name: Publish results
uses: dorny/test-reporter@v1
if: always()
with:
name: Copilot Studio Agent Test Results
path: results.xml
reporter: java-junitGate on exit code: 0 for all scenarios passed, 1 for any failure. Run the full evaluation for topic, prompt, or knowledge changes and a smaller smoke set for a cosmetic edit, so every promotion is not blocked on a full regression pass.
A Green verdict means the agent passed on the scenarios you ran, with the personas you tested, on the metrics you configured. Here is what it does not cover:
None of this is a reason to skip testing. It is a reason to keep testing after launch, not just before it.
Open the Copilot Studio agent you already have passing its Agent Evaluation set. Ask it a harder question than the Test Pane ever did: what happens when a user is frustrated, phrases the request three ways at once, or feeds it a document that tells the agent to ignore its instructions. Agent Evaluation and the Power CAT Kit catch the match and rubric gaps. TestMu AI's Agent Testing catches the rest, running the published agent through hundreds of personas and adversarial probes and handing back a go-live verdict before a real user finds the gap first.
Point the evaluator at your published agent, check the setup docs, and run your first evaluation before the next topic or knowledge change promotes.
Author
Akarshi Aggarwal is a community contributor with 2+ years of experience in marketing and growth. She specializes in automation testing and frameworks like Cypress, Playwright, Selenium, and Appium. Akarshi has written numerous technical articles, contributing valuable insights into automation testing practices. She actively engages with the tech community, sharing expertise on test automation and quality engineering. On LinkedIn, she is followed by over 7,000 QA professionals, software testers, DevOps engineers, developers, and tech enthusiasts.
Reviewer
Salman is a Test Automation Evangelist and Community Contributor at TestMu AI, with over 6 years of hands-on experience in software testing and automation. He has completed his Master of Technology in Computer Science and Engineering, demonstrating strong technical expertise in software development, testing, AI agents and LLMs. He is certified in KaneAI, Automation Testing, Selenium, Cypress, Playwright, and Appium, with deep experience in CI/CD pipelines, cross-browser testing, AI in testing, and mobile automation. Salman works closely with engineering teams to convert complex testing concepts into actionable, developer-first content. Salman has authored 120+ technical tutorials, guides, and documentation on test automation, web development, and related domains, making him a strong voice in the QA and testing community.
Did you find this page helpful?
More Related Blogs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance