Metadata ​
With Metadata, you can include extra information such as environment details, test configurations, execution time, and more. This additional data helps your team gain a deeper understanding of each test run, facilitating better analysis and faster resolution of issues. By incorporating Metadata into your Testbeats notifications, you ensure that every piece of relevant information is at your team's fingertips, enhancing clarity and efficiency in your testing processes.
DEFAULTS
- hook:
end
- condition:
passOrFail
Syntax ​
json
{
"name": "metadata",
"inputs": {
"data": [
{
"key": "Browser",
"value": "chrome"
},
{
"value": "1920 x 1080"
},
{
"key": "Build Logs",
"value": "<build-logs-url>",
"type": "hyperlink"
},
{
"key": "Screenshots",
"value": "<build-logs-url>",
"type": "hyperlink",
"condition": "fail"
}
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
data
(object[]) - list of metadata objects.key
(string) - text to display as a key.value
(string) - text to display as a value.type
(string) - type of metadata. allowed values -hyperlink
condition?
(condition) - condition to include this metadata.
Reports ​
Teams ​
Examples ​
Sample partial config file.
js
{
"targets": [
{
"name": "teams",
"inputs": {
"url": "<teams-incoming-webhook-url>"
},
"extensions": [
{
"name": "metadata",
"inputs": {
"data": [
{
"key": "Browser",
"value": "chrome"
},
{
"value": "1920*1080"
},
{
"key": "Build Logs",
"value": "<build-logs-url>",
"type": "hyperlink"
},
{
"key": "Screenshots",
"value": "<build-logs-url>",
"type": "hyperlink",
"condition": "fail"
}
]
}
}
]
}
],
"results": [
{
"type": "testng",
"files": ["path/to/testng-results.xml"]
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43