Skip to content
Software Testing Journal
Software Testing Journal

Your daily dose of learning!

  • Blog
  • Help Center
  • Video Playlist
  • Podcast & FAQ
  • Privacy Policy
Software Testing Journal

Your daily dose of learning!

Want to share Test Results to MS Teams using AdaptiveCards.io?

Dheeraj Gambhir, 2023-08-112023-09-04

Steps to follow:

  1. Microsoft Teams WebHook: Follow this https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook to create a webhook.
  2. Capture the  URL you will get from Step # 5 from the above article for Posting the Results in MS teams.
  3. Select a design from https://adaptivecards.io/samples/ or you can take the one that I created here: https://github.com/dgambhir01/AdaptiveCards/blob/main/src/main/java/listeners/ResultBuilder.java
  4. Now implement the Builder Class and a POJO Class. Sample code:  https://github.com/dgambhir01/AdaptiveCards/blob/main/src/main/java/listeners/CardBodyStructure.java
  5. Last but not least add a Listener Class to send Results on Finish. Sample code: https://github.com/dgambhir01/AdaptiveCards/blob/main/src/main/java/listeners/ResultListener.java

Now you can add the above TestNG Listener to your TestNG XML File and run your test cases. After the Execution, you should see your test results like:

If you find this post helpful, please share them with your colleagues and friends.

  • Facebook
  • Twitter
  • LinkedIn
  • Email
Automation AdaptiveCardsMicrosoftQuality EngineeringTeams

Post navigation

Previous post
Next post
©2025 Software Testing Journal | WordPress Theme by SuperbThemes