Skip to content

Skype configuration

German Malykh edited this page Aug 17, 2022 · 11 revisions

1. Skype notification configuration

To receive Skype notifications, you need to fill in the part of the configuration file referring to Skype

Configuration template for Skype notifications:

  "skype": {
    "appId": "...",
    "appSecret": "...",
    "serviceUrl": "...",
    "conversationId": "...",
    "botId": "...",
    "botName": "..."
  }
  • "appId" - Application (client) ID
  • "appSecret" - Client Secret
  • "serviceUrl" - The base URI for requests
  • "conversationId" - Conversation ID
  • "botId" - Bot ID
  • "botName" - Bot name

Next, let's look at how to get this data

1.1. Create Skype Bot

  • Upload png bot image, fill Display Name and Bot Handle
  • Go to https://webhook.site/ and copy your unique URL
  • Paste this URL to Messaging endpoint
  • Click on Create Microsoft App ID and password
  • Click on Register an application
  • Input application name and select Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox) and click Register
  • Save your Application (client) ID and go to Certificates & secrets
  • In Client secrets section click New client secret
  • Add any description and click Add
  • Save secrets value
  • Agree with service terms and click on Register

1.2. Create channel

  • Delete Web Chat channel
  • In More channels section select Skype
  • Go to Groups tab and select Enable adding to a group
  • Click on Save button and agree with terms

1.3. Add bot to Skype

  • Create a group and add bot to this group

1.4. Get conversation ID and Bot ID

  • In your group mention your bot, e.g. @myBot text and press Enter
{
  "text": "<some_text>",
  "type": "message",
  "channelId": "skype",
  "serviceUrl": "https://smba.trafficmanager.net/apis/",
  "conversation": {
    "isGroup": true,
    "id": "<some_id>"
  },
  "recipient": {
    "id": "<some_bot_id>",
    "name": "<some_bot_name>"
  }
}
  • Save serviceUrl (without https://), conversation Id, Bot Id and Bot Name
  • Input them in configuration file

The final configuration will look like this:

  "skype": {
    "appId": "7789aa4c-3a77-77a7-baa7-a7a7e7757a77",
    "appSecret": "s7c3Q~2iEZCrfIxsZzaCOuU9I.RxaN_kN1CLBcIo",
    "serviceUrl": "smba.trafficmanager.net/apis/",
    "conversationId": "22:876b5e336c8e4a43567aa93572453cf5@thread.skype",
    "botId": "11:2233da4c-3b91-6c3-bed6-b2b2e8857a25",
    "botName": "TestConfigBotAllure"
  }

2. Adding allure-notifications.jar to your autotests project

3. Skype notification example