-
Notifications
You must be signed in to change notification settings - Fork 79
Skype configuration
German Malykh edited this page Aug 17, 2022
·
11 revisions
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
- Go to https://dev.botframework.com/bots and Sign In to your Microsoft account
- Accept Terms of service
- Go to https://dev.botframework.com/bots/new
- 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
- Return to https://dev.botframework.com/bots/new and paste Application ID and select v1.3 Schema
- Agree with service terms and click on Register
- 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
- Go to https://join.skype.com/bot/<app_id>
- Click on Add to Contacts button
- Create a group and add bot to this group
- In your group mention your bot, e.g.
@myBot text
and press Enter
- Go to https://webhook.site/
- You will see content bellow
{
"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"
}
- Download latest release https://github.com/qa-guru/allure-notifications/releases
or build .jar
gradle jar
->build/libs/allure-notifications-*.jar
- Put allure-notifications-*.jar in your in your autotests project root