From Regression Testing to Agent Evaluation: D365 Testing Just Got Bigger
Passing Regression Tests Is No Longer Enough
For years, regression testing has been essential to maintaining reliable Microsoft Dynamics 365 environments. Configuration changes are introduced. New features are deployed. Customization is updated. Testing teams verify that existing business processes still work as expected. Sales orders are processed correctly. Financial transactions are posting accurately. Inventory calculations remain consistent.But what happens when AI agents become part of these workflows?
An AI agent can interpret user requests, retrieve business information, use tools, and perform multi-step tasks. Its behavior may vary depending on the instructions, context, available data, and actions it is authorized to take. A test confirming that a workflow functions correctly cannot, by itself, establish whether an AI agent makes the right decisions while using it.
Traditional ERP testing and AI agent evaluation solve different problems. Modern D365 testing needs both.
Traditional ERP Testing vs. AI Agent Evaluation
Traditional ERP testing verifies that system functionality, integrations, configurations, and business rules behave as expected. Regression testing is particularly important after changes that could affect existing processes. Evaluating AI agents introduces an additional dimension: assessing whether an agent interprets instructions correctly, selects appropriate actions, follows business rules, and produces reliable outcomes.
Traditional ERP testing | AI agent evaluation |
Validates system functionality | Evaluates agent behaviour |
Checks predefined scenarios | Tests varied instructions and situations |
Verifies calculations and transactions | Checks the accuracy of agent decisions |
Tests configured business rules | Evaluates whether the agent respects those rules |
Identifies technical failures | Identifies incorrect actions, reasoning, and responses |
Confirms expected system states | Verifies task completion and business outcomes |
Neither approach replaces the other. A Dynamics 365 environment can pass its regression tests while an AI agent interacting with it still misinterprets a request or selects an inappropriate action. The objective is to validate both the underlying ERP system and the agent operating within it.
How AI Agents Change Dynamics 365 Testing
Consider an AI agent assisting an accounts payable team.
A user asks:
“Review overdue supplier invoices and identify which ones are ready for payment.”
The agent may need to retrieve invoice details, check purchase orders, verify approval status, identify discrepancies, and summarise the results.
Traditional ERP tests can verify that invoice records are accurate, approval workflows operate correctly, and financial controls are enforced.
But additional questions arise when an AI agent performs the task:
Did it identify the correct invoices?
Did it recognise invoices awaiting approval?
Did it detect discrepancies between invoices and purchase orders?
Did it respect user permissions and payment controls?
Did it distinguish verified information from missing data?
Did it accurately report what it completed and what still requires review?
These are questions about agent behaviour, not just system functionality. A reliable testing strategy must evaluate the agent's decisions alongside the ERP controls that govern its actions.
5 Areas to Evaluate in a D365 AI Agent
1. Task accuracy
Can the agent understand and complete the user's request correctly?
Test different ways of expressing the same instruction, including incomplete or ambiguous requests. Verify the retrieved information and the final result against trusted business data.
2. Business rule compliance
Does the agent respect existing ERP processes and controls?
For example, identifying an overdue invoice does not automatically make it eligible for payment. The agent must account for approval requirements, discrepancies, and other relevant business rules.
3. Tool selection and execution
Does the agent use the appropriate tools and perform actions in the correct sequence?
Evaluation should check whether it retrieves the right records, uses authorised capabilities, validates prerequisites, and avoids unnecessary or inappropriate actions.
4. Error handling and security
How does the agent respond when information is missing, a tool fails, or a request exceeds its permissions?
A reliable agent should communicate uncertainty, avoid unsupported actions, and respect access restrictions. Testing should also cover attempts to access restricted information or bypass established controls.
5. Outcome verification
Did the agent actually achieve the intended result?
A confident response does not prove that an action succeeded. If the agent creates a record, updates data, or triggers a workflow, the test should verify the resulting system state.
For higher-risk activities, teams should also establish when human approval is required before an action can proceed.
Building a Combined ERP Testing Strategy

A practical approach to Dynamics 365 testing combines established quality assurance practices with dedicated AI agent evaluation.
Step 1: Validate the ERP foundation. Continue testing business processes, integrations, configurations, security, and existing customisations. Maintain regression test coverage for critical workflows.
Step 2: Define agent-specific test scenarios. Create representative tasks covering normal requests, ambiguous instructions, missing information, conflicting data, and restricted actions.
Step 3: Evaluate the complete process. Test the agent and ERP environment together. Check whether the agent selects the right action and whether the resulting transaction or workflow meets the expected business requirements.
Step 4: Retest after changes. Changes to agent instructions, models, connected tools, permissions, data, or ERP configurations may affect behavior. Re-run relevant tests after material changes, alongside the appropriate regression suite.
Step 5: Monitor performance over time. Track recurring failures, incorrect decisions, policy violations, and task completion rates. Use the findings to improve test coverage, safeguards, and agent configuration.
The level of evaluation should reflect the business risk. An agent summarising information for an employee may require different controls from one capable of changing financial records or initiating transactions.
The Bottom Line: Test the System and the Agent
As AI agents become part of Microsoft Dynamics 365 environments, testing must account for more than whether existing functionality continues to work. Traditional ERP testing helps establish that the system is stable, and its business rules are enforced. AI agent evaluation examines whether the agent can operate reliably within those boundaries.
The future of D365 testing isn't regression testing versus agent evaluation. It's traditional ERP testing plus AI agent evaluation.
For organisations adopting AI in ERP, combining both approaches provides a stronger foundation for reliable releases, controlled automation, and trustworthy business outcomes.
At Everware, we believe successful ERP technology depends on getting the processes, controls, and execution right. As AI introduces new ways to interact with Dynamics 365, the testing strategy must evolve with it.




Comments