Skip to content

Conversation

Grant-Archibald-MS
Copy link
Contributor

Pull Request Template

Description

Adding the ability to optionally enable Dataverse and AI based tests into Test Engine tests. When connecting to Model Driven application or specifying powerfx provider with url of the dataevsre instance together with a testSetting parameters for enableDataverseFunctions and enableAIFunctions

testSettings:
  extensionModules:
    enable: true
    parameters:
      enableDataverseFunctions: true
      enableAIFunctions: true

For other providers the environment variable $env:DATAVERSE_URL can specify the dataverse instance.

Notes

  1. To obtain an access token the current Azure CLI instance needs to be logged in with a user account or service principal that has access to Dataverse
  2. Documentation on Dataverse testing is in Testing Dataverse
  3. Sample Dataverse test with Account entity is in /samples/dataverse/testPlan.fx.yaml
  4. Sample ability to execute AI Builder Prompt is in /samples/dataverse/ai-prompt.fx.yaml
  5. To use the Preview.AIExecutePrompt("name", {parameter: "value}) a AI Prompt with name name and input parameters must exist in the environment
  6. To allow Preview.AIExecutePrompt() enableAIFunctions: true must be set in the testSettings
  7. To simpify testing this feature enhancement includes the ability to define Power Fx functions and User Defined Types (UDT)

Checklist

  • The code change is covered by unit tests. I have added tests that prove my fix is effective or that my feature works
  • I have performed end-to-end test locally.
  • New and existing unit tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • [X ] I used clear names for everything
  • I have performed a self-review of my own code

@Grant-Archibald-MS Grant-Archibald-MS added the enhancement New feature or request label Apr 1, 2025
@Grant-Archibald-MS Grant-Archibald-MS self-assigned this Apr 1, 2025
@Grant-Archibald-MS Grant-Archibald-MS requested a review from a team as a code owner April 1, 2025 21:11
@Grant-Archibald-MS
Copy link
Contributor Author

Closing PR as included in #602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant