-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: формирование единой точки запуска тестов по тексту модуля
- Loading branch information
Showing
10 changed files
with
502 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
exts/yaxunit/src/CommonModules/ЮТРеактивныйСервер/Module.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
//©///////////////////////////////////////////////////////////////////////////©// | ||
// | ||
// Copyright 2021-2024 BIA-Technologies Limited Liability Company | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
//©///////////////////////////////////////////////////////////////////////////©// | ||
|
||
// Это разработка @zeegin(https://github.com/zeegin) aka Ingvar | ||
|
||
#Область СлужебныйПрограммныйИнтерфейс | ||
|
||
// Загружает реактивное приложение как в веб клиенте так и в тонком | ||
// | ||
// Параметры: | ||
// ДвоичныеДанные - ДвоичныеДанные - Реактивное приложение, например полученное из макета | ||
// УникальныйИдентификатор - УникальныйИдентификатор - Для управления временем жизни временного хранилища | ||
// | ||
// Возвращаемое значение: | ||
// Строка - Адрес или данные для html документа | ||
Функция ЗагрузитьПриложение(ДвоичныеДанные, УникальныйИдентификатор) Экспорт | ||
|
||
Если ЮТОкружение.ОписаниеОкружения().ВебКлиент Тогда | ||
Возврат ПолучитьСтрокуИзДвоичныхДанных(ДвоичныеДанные); | ||
Иначе | ||
Возврат ПолучитьНавигационнуюСсылкуИнформационнойБазы() + "/" + ПоместитьВоВременноеХранилище(ДвоичныеДанные, УникальныйИдентификатор); | ||
КонецЕсли; | ||
|
||
КонецФункции | ||
|
||
Функция ЗагрузитьПриложениеИзМакета(ИмяМакета, УникальныйИдентификатор) Экспорт | ||
|
||
Данные = ПолучитьОбщийМакет(ИмяМакета); | ||
Возврат ЗагрузитьПриложение(Данные, УникальныйИдентификатор); | ||
|
||
КонецФункции | ||
|
||
#КонецОбласти | ||
|
||
#Область СлужебныеПроцедурыИФункции | ||
|
||
#КонецОбласти |
9 changes: 9 additions & 0 deletions
9
exts/yaxunit/src/CommonModules/ЮТРеактивныйСервер/ЮТРеактивныйСервер.mdo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mdclass:CommonModule xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="beec9565-1322-4f08-af5a-395edab2fb21"> | ||
<name>ЮТРеактивныйСервер</name> | ||
<synonym> | ||
<key>ru</key> | ||
<value>Реактивный сервер</value> | ||
</synonym> | ||
<server>true</server> | ||
</mdclass:CommonModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
exts/yaxunit/src/DataProcessors/ЮТРедакторТестов/Commands/ЮТРедакторТестов/CommandModule.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//©///////////////////////////////////////////////////////////////////////////©// | ||
// | ||
// Copyright 2021-2024 BIA-Technologies Limited Liability Company | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
//©///////////////////////////////////////////////////////////////////////////©// | ||
|
||
#Область ОбработчикиСобытий | ||
|
||
&НаКлиенте | ||
Процедура ОбработкаКоманды(ПараметрКоманды, ПараметрыВыполненияКоманды) | ||
|
||
ОткрытьФорму("Обработка.ЮТРедакторТестов.Форма", | ||
, | ||
ПараметрыВыполненияКоманды.Источник, | ||
ПараметрыВыполненияКоманды.Уникальность, | ||
ПараметрыВыполненияКоманды.Окно, | ||
ПараметрыВыполненияКоманды.НавигационнаяСсылка); | ||
|
||
КонецПроцедуры | ||
|
||
#КонецОбласти |
Oops, something went wrong.