[Feature]: MDA Testing Patterns
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp, playwright
- Domain
- documentation, testing-qa
Research direction
Start by reviewing the Test Engine scope and the Playwright alternative mentioned in the issue. Map the requested security, monitoring, application interaction, asynchronous process, shift-left, and ALM scenarios before proposing patterns. Done would require documented mini reference examples and guidance covering test creation, execution, deployment, monitoring, and approval workflows.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
The current testing framework for Model Driven Applications generally requires browser automation which makes the process of creating automated testing of various components such as Create, Update, and Delete operations, Custom Toolbars, Web Resources with Xrm SDK, and Business Process Flows. This limitation hinders the ability to efficiently test and validate the functionality of applications, leading to potential issues in production.
Additionally, many organizations express the need for a shift-left testing strategy that allows for early detection of defects through unit, integration, and end-to-end (E2E) tests. However, the existing framework requires code-first developers to create automated tests, which can be a barrier for makers who may not have coding expertise.
Describe the solution you'd like
Test Case Generation
Provide a set of testing patterns and mini reference example that demonstrate automated tests using Test Engine that supports the following scenarios:
Security Related
- Security Role Checks (Non privileged person, Security Roles Checks)
Monitoring
- Health Check (For example open page and basic click checks)
App Interaction Patterns
- Ability to test Create, Update, and Delete Operations.
- Custom Toolbars.
- Web Resources with Xrm SDK.
- Web Resources that change the visibility and appearance of the form.
Async Process Testing
- Interaction with Business Process Flow.
- Trigger Power Automate Cloud Flows.
- Update Dataverse for async business processes.
The patterns should also provide guidance for implementing a shift-left testing strategy by incorporating unit, integration, and E2E tests across the Application, Dataverse, and Power Automate Cloud flows. This will enable early detection of defects and improve the overall quality of the application.
The patterns should be designed to allow makers to create automated tests without needing code-first developers. This can be achieved by providing user-friendly tools and interfaces that simplify the test creation process, making it accessible to a wider range of users.
Test Automation Maturity
Aside from the test case creation the guidance and samples could also consider:
- Test lifecycle: Example of how to:
- Plan: Design for testability and operational health
- Build: How to build MDA application to be testable
- Test: Test case creation authoring
- Deploy: How to make use of headless test execution and Power Pipeline integration
- Monitor solution: The ability to have nightly builds and health checks - ALM lifecycle: How to operate business approval process across environments. This should include local execution, headless test automation and business level test review approval process with test results and changes
Describe alternatives you've considered
Additional context?
No response
- Dominant language
- C#
- Stars
- 150
- Forks
- 55
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/PowerApps-TestEngine
-
new
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
new
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
new
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
question
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in microsoft/PowerApps-TestEngine
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightscout/nocturne#1379 ·
-
priority-0
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
StackExchange/StackExchange.Redis#3249 ·
-
[Feat] 조합 영역 구분선 개선 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100