-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Добавление автопоказа отчета allure #233 #245
Добавление автопоказа отчета allure #233 #245
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Отличное дополнение.
Нужны мелкие правки.
Поправишь ?
|
||
КонецЕсли; | ||
|
||
КомандаГерерации = "cmd /c allure generate --clean "+ Объект.КаталогOutputAllure +" && allure open"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
КомандаГерерации опечатка
Если Не ЗначениеЗаполнено(Объект.ДелатьОтчетВФорматеАллюр) Тогда | ||
|
||
Сообщить("Заполните каталог исходников отчета Allure"); | ||
//Возврат; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
закомментированный код удаляем
// <продолжение описания параметра> | ||
// | ||
&НаКлиенте | ||
Процедура СоздатьОткрытьОтчетAllureПродолжение(КодВозврата, ДополнительныеПараметры)Экспорт |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем нужен пустой метод СоздатьОткрытьОтчетAllureПродолжение
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вроде бы можно создать пустой Новый ОписаниеОповещения(, ЭтотОбъект);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Новый ОписаниеОповещения(, ЭтотОбъект) - Не получилось. параметр стал не обязательным только в 8.3.12(
{ВнешняяОбработка.bddRunner.Форма.УправляемаяФорма.Форма(19695)}: Ошибка при вызове конструктора (ОписаниеОповещения)
ОписаниеОповещения = Новый ОписаниеОповещения(, ЭтотОбъект);
по причине:
Недопустимое значение параметра (параметр номер '1')
- Настройка доступности реквизита ОтображатьОтчетAllure
Update:
|
Возврат; | ||
КонецЕсли; | ||
|
||
КомандаГенерации = "cmd /c allure generate --clean "+ Объект.КаталогOutputAllure +" && allure open"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
на linux не работает.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pumbaEO Эх, поздновато :(
А какой вариант для linux будет верным?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно revert сделать, права должні біть. sh -c и команді для запуска генерации.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sh -c allure generate --clean "+ Объект.КаталогOutputAllure +" && allure open" - так?
В bddRunner есть функционал проверки на используемую ось, могу добавить.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По нормальному никак не получится, т.к. настройками безопасности по умолчанию отключено открытие браузера и команда только сгенирит отчет, но не откроет браузер со случайным портом. Поэтому лучше сделать проверку ЭтоLinux и вывести сообщением необходимую команду, чтоб пользователь вручную смогу скопировать и запустить.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pumbaEO Добавишь такой код? или мне добавить?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проблематика: Для просмотра отчета Allure приходится выполнить множество лишних действий: открыть командную строку, написать команду генерации отчета и отображения в браузере
Задача: Упростить отображение, предоставив кнопку и опцию автопоказа
Реализация::
На вкладке "Сервис" - "Отчет о запуске сценариев" - добавленна опция "Отображать отчет Allure в браузере", при ее установке отчет будет показан после прогона тестов
Настройка папки скриншотов перенесена на вкладку "Сервис" - "Отчет о запуске сценариев", так как там ей самое место
@artbear - просьба прокомментировать и проверить
Реализация #233