Skip to content

Commit 5c36c63

Browse files
Update readme
1 parent 5b3e90e commit 5c36c63

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,36 @@ export TEST_CLIENT_ID="native-app-guid-here"
249249
dotnet 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
254284
Located in `tests/AISearch/`, this test validates:

0 commit comments

Comments
 (0)