Skip to content

Conversation

@WSEAutomationTests
Copy link
Collaborator

@WSEAutomationTests WSEAutomationTests commented Sep 12, 2025

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.

Copy link
Contributor

Copilot AI left a 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.

Write-Output "Entering CheckServiceState function"
CheckServiceState 'Windows Camera Frame Server'

# Strating to collect Traces
Copy link

Copilot AI Sep 12, 2025

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'.

Suggested change
# Strating to collect Traces
# Starting to collect Traces

Copilot uses AI. Check for mistakes.
Comment on lines +13 to +17
{
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"
Copy link

Copilot AI Sep 12, 2025

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.

Suggested change
{
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

Copilot uses AI. Check for mistakes.
}
else
{
FindAndClick -uiEle $uiTeams -proptyNme "Turn camera on"
Copy link

Copilot AI Sep 12, 2025

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.

Copilot uses AI. Check for mistakes.
}
else
{
FindAndClick -uiEle $uiTeams -proptyNme "Unmute mic"
Copy link

Copilot AI Sep 12, 2025

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.

Copilot uses AI. Check for mistakes.
@ganeshsurada
Copy link
Contributor

Could you share the results of test run please?

@WSEAutomationTests WSEAutomationTests requested review from ganeshsurada and removed request for aastitva and frankwbd December 26, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants