File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,36 @@ export TEST_CLIENT_ID="native-app-guid-here"
249249dotnet test --logger "console;verbosity=detailed"
250250```
251251
252+ #### Running Tests with Manual Environment Variable Configuration
253+
254+ If you prefer to set environment variables manually or need to override specific values, you can configure all required variables explicitly:
255+
256+ ```bash
257+ # Navigate to the test directory
258+ cd tests/Copilot
259+
260+ # Power Platform authentication
261+ export POWER_PLATFORM_USERNAME="[email protected] " 262+ export POWER_PLATFORM_PASSWORD="your-test-password"
263+ export POWER_PLATFORM_TENANT_ID="your-tenant-id"
264+ export POWER_PLATFORM_ENVIRONMENT_ID="your-environment-id"
265+
266+ # Native client application ID
267+ export TEST_CLIENT_ID="your-native-app-client-id"
268+
269+ # Copilot Studio configuration
270+ export COPILOT_STUDIO_ENDPOINT="https://api.copilotstudio.microsoft.com"
271+ export COPILOT_STUDIO_AGENT_ID="crfXX_agentName"
272+
273+ # Run the test
274+ dotnet test --logger "console;verbosity=detailed"
275+ ```
276+
277+ **Important Notes:**
278+ - The test account must have **MFA disabled** for automated authentication
279+ - The user must have access to the Power Platform environment and the Copilot Studio agent
280+ - Environment variables take precedence over values from azd .env files
281+
252282### AI Search Test (Optional)
253283
254284Located in `tests/AISearch/`, this test validates:
You can’t perform that action at this time.
0 commit comments