Skip to content

Commit

Permalink
add local-run report
Browse files Browse the repository at this point in the history
  • Loading branch information
Achitheus committed Feb 13, 2024
1 parent 0c0e2f6 commit 769fc1f
Show file tree
Hide file tree
Showing 41 changed files with 1,363 additions and 0 deletions.
40 changes: 40 additions & 0 deletions local-run/app.js

Large diffs are not rendered by default.

Binary file added local-run/data/attachments/42c1257919624240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
662 changes: 662 additions & 0 deletions local-run/data/attachments/c21ac18dee7d0c30.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions local-run/data/behaviors.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","Фильтрация товаров","","1","0","0","0","0"
"","Поиск товара","","1","0","0","0","0"
1 change: 1 addition & 0 deletions local-run/data/behaviors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uid":"b1a8273437954620fa374b796ffaacdd","name":"behaviors","children":[{"name":"Фильтрация товаров","children":[{"name":"Проверка работы фильтров товаров и поиска товара [1]: Ноутбуки и компьютеры, Ноутбуки, Цена: [от 10000.0 до 900000.0], {Производитель=[Lenovo, Huawei]}, 12","uid":"bb2c02d410d03963","parentUid":"d78a7e81a421bd20513393e03b1ad114","status":"failed","time":{"start":1707812815620,"stop":1707813183056,"duration":367436},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["true","false","19.0.2 (Oracle Corporation)","Windows 10 (10.0)","dev"],"tags":[]}],"uid":"d78a7e81a421bd20513393e03b1ad114"},{"name":"Поиск товара","children":[{"name":"Проверка работы фильтров товаров и поиска товара [1]: Ноутбуки и компьютеры, Ноутбуки, Цена: [от 10000.0 до 900000.0], {Производитель=[Lenovo, Huawei]}, 12","uid":"bb2c02d410d03963","parentUid":"95494abc902f8d6b9dcd48b36732b297","status":"failed","time":{"start":1707812815620,"stop":1707813183056,"duration":367436},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["true","false","19.0.2 (Oracle Corporation)","Windows 10 (10.0)","dev"],"tags":[]}],"uid":"95494abc902f8d6b9dcd48b36732b297"}]}
2 changes: 2 additions & 0 deletions local-run/data/categories.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Product defects","1","0","0","0","0"
1 change: 1 addition & 0 deletions local-run/data/categories.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uid":"4b4757e66a1912dae1a509f688f20b0f","name":"categories","children":[{"name":"Product defects","children":[{"name":"Pageable check assertion failures: (1 failure)\r\n\torg.opentest4j.AssertionFailedError: Элемент \"Ноутбук ThinkPad X280 - 12,5 дюймов, Intel Core i5, Windows 11\" не соответствует фильтру Производитель: [Lenovo, Huawei] ==> expected: <true> but was: <false>","children":[{"name":"Проверка работы фильтров товаров и поиска товара [1]: Ноутбуки и компьютеры, Ноутбуки, Цена: [от 10000.0 до 900000.0], {Производитель=[Lenovo, Huawei]}, 12","uid":"bb2c02d410d03963","parentUid":"ce732e7bc2503ef33799045ccd61f121","status":"failed","time":{"start":1707812815620,"stop":1707813183056,"duration":367436},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["true","false","19.0.2 (Oracle Corporation)","Windows 10 (10.0)","dev"],"tags":[]}],"uid":"ce732e7bc2503ef33799045ccd61f121"}],"uid":"8fb3a91ba5aaf9de24cc8a92edc82b5d"}]}
1 change: 1 addition & 0 deletions local-run/data/packages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uid":"83edc06c07f9ae9e47eb6dd1b683e4e2","name":"packages","children":[{"name":"ru.bellintegrator.ru.yandex.market.MarketTest","children":[{"name":"checkMarket","uid":"bb2c02d410d03963","parentUid":"ae7ddd39a626aa4eae83421450b001b4","status":"failed","time":{"start":1707812815620,"stop":1707813183056,"duration":367436},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["true","false","19.0.2 (Oracle Corporation)","Windows 10 (10.0)","dev"],"tags":[]}],"uid":"ru.bellintegrator.ru.yandex.market.MarketTest"}]}
2 changes: 2 additions & 0 deletions local-run/data/suites.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"failed","Tue Feb 13 11:26:55 MSK 2024","Tue Feb 13 11:33:03 MSK 2024","367436","","ru.bellintegrator.ru.yandex.market.MarketTest","","ru.bellintegrator.ru.yandex.market.MarketTest","checkMarket","Проверка работы фильтров товаров и поиска товара [1]: Ноутбуки и компьютеры, Ноутбуки, Цена: [от 10000.0 до 900000.0], {Производитель=[Lenovo, Huawei]}, 12",""
1 change: 1 addition & 0 deletions local-run/data/suites.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uid":"98d3104e051c652961429bf95fa0b5d6","name":"suites","children":[{"name":"ru.bellintegrator.ru.yandex.market.MarketTest","children":[{"name":"Проверка работы фильтров товаров и поиска товара [1]: Ноутбуки и компьютеры, Ноутбуки, Цена: [от 10000.0 до 900000.0], {Производитель=[Lenovo, Huawei]}, 12","uid":"bb2c02d410d03963","parentUid":"e2d8cf22f75d4d6cb81718a425b840ec","status":"failed","time":{"start":1707812815620,"stop":1707813183056,"duration":367436},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["true","false","19.0.2 (Oracle Corporation)","Windows 10 (10.0)","dev"],"tags":[]}],"uid":"e2d8cf22f75d4d6cb81718a425b840ec"}]}
1 change: 1 addition & 0 deletions local-run/data/test-cases/bb2c02d410d03963.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions local-run/data/timeline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uid":"ab17fc5a4eb3bca4b216b548c7f9fcbc","name":"timeline","children":[{"name":"Yurii","children":[{"name":"[email protected](1)","children":[{"name":"Проверка работы фильтров товаров и поиска товара [1]: Ноутбуки и компьютеры, Ноутбуки, Цена: [от 10000.0 до 900000.0], {Производитель=[Lenovo, Huawei]}, 12","uid":"bb2c02d410d03963","parentUid":"a405f12d41e161a895bb95e08df9c6b3","status":"failed","time":{"start":1707812815620,"stop":1707813183056,"duration":367436},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["true","false","19.0.2 (Oracle Corporation)","Windows 10 (10.0)","dev"],"tags":[]}],"uid":"a405f12d41e161a895bb95e08df9c6b3"}],"uid":"2abad1038f48fce09863f58887ad1d18"}]}
12 changes: 12 additions & 0 deletions local-run/export/influxDbData.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
launch_status failed=1 1707813200000000000
launch_status broken=0 1707813200000000000
launch_status passed=0 1707813200000000000
launch_status skipped=0 1707813200000000000
launch_status unknown=0 1707813200000000000
launch_time duration=367436 1707813200000000000
launch_time min_duration=367436 1707813200000000000
launch_time max_duration=367436 1707813200000000000
launch_time sum_duration=367436 1707813200000000000
launch_problems product_defects=1 1707813200000000000
launch_retries retries=0 1707813200000000000
launch_retries run=1 1707813200000000000
10 changes: 10 additions & 0 deletions local-run/export/mail.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
12 changes: 12 additions & 0 deletions local-run/export/prometheusData.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
launch_status_failed 1
launch_status_broken 0
launch_status_passed 0
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 367436
launch_time_min_duration 367436
launch_time_max_duration 367436
launch_time_sum_duration 367436
launch_problems_product_defects 1
launch_retries_retries 0
launch_retries_run 1
Binary file added local-run/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions local-run/history/categories-trend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"data":{"Product defects":1}}]
1 change: 1 addition & 0 deletions local-run/history/duration-trend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"data":{"duration":367436}}]
1 change: 1 addition & 0 deletions local-run/history/history-trend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"data":{"failed":1,"broken":0,"skipped":0,"passed":0,"unknown":0,"total":1}}]
1 change: 1 addition & 0 deletions local-run/history/history.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"f0226124e38b81912d9bbbe32f9ce98c":{"statistic":{"failed":1,"broken":0,"skipped":0,"passed":0,"unknown":0,"total":1},"items":[{"uid":"bb2c02d410d03963","status":"failed","statusDetails":"Pageable check assertion failures: (1 failure)\r\n\torg.opentest4j.AssertionFailedError: Элемент \"Ноутбук ThinkPad X280 - 12,5 дюймов, Intel Core i5, Windows 11\" не соответствует фильтру Производитель: [Lenovo, Huawei] ==> expected: <true> but was: <false>","time":{"start":1707812815620,"stop":1707813183056,"duration":367436}}]}}
1 change: 1 addition & 0 deletions local-run/history/retry-trend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"data":{"run":1,"retry":0}}]
34 changes: 34 additions & 0 deletions local-run/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" type="text/css" href="plugin/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugin/behaviors/index.js"></script>
<script src="plugin/screen-diff/index.js"></script>
<script src="plugin/packages/index.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FVWC4GKEYS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FVWC4GKEYS', {
'allureVersion': 'dev',
'reportUuid': '955585d2-a9a3-41c3-be74-57a378f7af4a',
'single_file': false
});
</script>
</body>
</html>
206 changes: 206 additions & 0 deletions local-run/plugin/behaviors/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
'use strict';

allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});

allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});

allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});

allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});

allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});

allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});

allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});

allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});

allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});

allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});

allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});

allure.api.addTranslation('pl', {
tab: {
behaviors: {
name: 'Zachowania'
}
},
widget: {
behaviors: {
name: 'Funkcje według historii',
showAll: 'pokaż wszystko'
}
}
});

allure.api.addTranslation('az', {
tab: {
behaviors: {
name: 'Davranışlar'
}
},
widget: {
behaviors: {
name: 'Hekayələr üzrə xüsusiyyətlər',
showAll: 'hamısını göstər'
}
}
});

allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});

allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
Loading

0 comments on commit 769fc1f

Please sign in to comment.