-
Notifications
You must be signed in to change notification settings - Fork 15
Added a Test for Teams app testing. #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds automated end-to-end testing capabilities for Microsoft Teams application functionality. The new test verifies Teams meeting workflow including camera and audio controls, performance monitoring, and device power state testing.
Key changes:
- New Teams test automation framework with meeting join/leave functionality
- UI automation handlers for Teams camera and audio controls
- Enhanced element finding utilities to support Teams app automation
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| E2E/TeamsTest.ps1 | Main test script that orchestrates Teams e2e testing across different power states |
| E2E/Library/TeamsAppHandlers.ps1 | Teams-specific automation functions for meeting controls and camera/audio management |
| E2E/Library/FindClickableElement.ps1 | Enhanced UI element finding with process ID support and improved conditional logic |
| E2E/CheckInTest/Helper-library.ps1 | Added import for Teams handlers library |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
E2E/TeamsTest.ps1
Outdated
| Write-Output "Entering CheckServiceState function" | ||
| CheckServiceState 'Windows Camera Frame Server' | ||
|
|
||
| # Strating to collect Traces |
Copilot
AI
Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment: 'Strating' should be 'Starting'.
| # Strating to collect Traces | |
| # Starting to collect Traces |
| { | ||
| Write-Log -Message "Entering Start-TeamsMeeting function" -IsOutput | ||
|
|
||
| # Launch the Teams app with the meeting link | ||
| Start-Process "https://teams.live.com/meet/9393388815307?p=DjwPrJ9iFrjS0pdlyT" |
Copilot
AI
Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Teams meeting link is hardcoded. Consider making this configurable through a parameter or configuration file to improve maintainability and reusability.
| { | |
| Write-Log -Message "Entering Start-TeamsMeeting function" -IsOutput | |
| # Launch the Teams app with the meeting link | |
| Start-Process "https://teams.live.com/meet/9393388815307?p=DjwPrJ9iFrjS0pdlyT" | |
| ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$teamsMeetingLink | |
| ) | |
| { | |
| Write-Log -Message "Entering Start-TeamsMeeting function" -IsOutput | |
| # Launch the Teams app with the meeting link | |
| Start-Process $teamsMeetingLink |
E2E/Library/TeamsAppHandlers.ps1
Outdated
| } | ||
| else | ||
| { | ||
| FindAndClick -uiEle $uiTeams -proptyNme "Turn camera on" |
Copilot
AI
Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable '$uiTeams' is not defined in these functions. Should use the parameter '$uiEle' instead.
E2E/Library/TeamsAppHandlers.ps1
Outdated
| } | ||
| else | ||
| { | ||
| FindAndClick -uiEle $uiTeams -proptyNme "Unmute mic" |
Copilot
AI
Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable '$uiTeams' is not defined in these functions. Should use the parameter '$uiEle' instead.
|
Could you share the results of test run please? |
What changed?
Added a new test case for Teams App testing.
Why changed?
We didn't have this test scenario automated in our test suite earlier.
How did you test the change?
Tested successfully after signing in as MEPTesting with Teams.
Related Issues (if any):
Note: I am still testing as the same Teams link is sometime not working across all devices.