This file contains hidden or 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
| rem %1 – полный номер версии 1С:Предприятия | |
| rem %2 – имя сервера (с портом агента). Важно указать именно 1540, а не 1541 !! | |
| rem %3 – порт RAS | |
| set SrvUserName=LocalSystem | |
| set SrvUserPwd="" | |
| set Agent=%2 | |
| set RASPort=%3 | |
| set SrvcName="ras %Agent%" | |
| set BinPath="\"C:\Program Files (x86)\1cv8\%1\bin\ras.exe\" cluster --service --port=%RASPort% %Agent%" |
This file contains hidden or 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
| Функционал: Загрузка расширений в конфигурацию | |
| Контекст: | |
| Допустим есть версия 1с "8.3.8.1861" | |
| И создали пустую базу по пути "d:\work\test\ibext" | |
| И добавили новый справочник "Справочник1" | |
| И создали новое хранилище по пути "D:\work\test\ibextrepo" с пользователем "admin" и паролем "1" | |
| И подключились к хранилищу по пути "D:\work\test\ibextrepo" | |
| И создали новое расширение с именем "Расширение1" и префиксом "Расш1_" | |
| И добавили в расширение справочник из конфигурации "Справочник1" |
This file contains hidden or 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 hidden or 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
| &НаКлиенте | |
| Перем КонтекстЯдра; | |
| &НаКлиенте | |
| Перем Утверждения; | |
| &НаСервере | |
| Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка) | |
| ВнешниеОбработки.Создать("C:\xUnitFor1C\xddTestRunner.epf", Ложь); |
This file contains hidden or 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
| #Область ПрограммныйИнтерфейс | |
| &НаКлиенте | |
| Функция МетодAPI() Экспорт | |
| ПоказатьПредупреждение(, "Я форма теста: я поддерживаю МетодAPI()"); | |
| КонецФункции |
This file contains hidden or 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
| // Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
| import hudson.model.*; | |
| import hudson.util.*; | |
| import jenkins.model.*; | |
| import hudson.FilePath.FileCallable; | |
| import hudson.slaves.OfflineCause; | |
| import hudson.node_monitors.*; | |
This file contains hidden or 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
| # check if job exists | |
| curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken | |
| # with folder plugin | |
| curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
| # without folder plugin | |
| curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
| # create folder |
This file contains hidden or 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
| # check if job exists | |
| curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken | |
| # with folder plugin | |
| curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
| # without folder plugin | |
| curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
| # create folder |
This file contains hidden or 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
| #Использовать logos | |
| #Использовать cmdline | |
| Перем Лог; | |
| Функция ПодключитьсяИСпроситьВерсию(УРЛ) | |
| Connector = Новый COMОбъект("V83.ComConnector"); | |
| Попытка |
This file contains hidden or 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
| // Я экспериментировал с преобразованием выгрузки встроенной в конфигурацию обработки во внешнюю и оказалось, что формат у них разный. | |
| // Вот здесь скрипт накидал, чтобы преобразовывал формат встроенной обработки во внешнюю | |
| // https://gitter.im/silverbulleters/vanessa-runner?at=5a54c517b48e8c3566bb991d | |
| // | |
| // Еще там же | |
| // Фактически, если сделать обратное преобразование, можно будет попытаться вставить внешнюю обработку сразу внутрь конфигурации, без Конфигуратора, верно? | |
| // Andrey @KrapivinAndrey янв. 09 18:40 | |
| // @artbear У меня есть такой скрипт. Который запихивает обработку в конфигурацию... Правда пустую. Использую для запуска проверки через АПК. Хуже сонара-зато бесплатно. | |
| // Использую скрипт epf-merge собственно) сейчас найду | |
| // https://github.com/KrapivinAndrey/1c_AutoStartACC/blob/master/tools/onescript/BuildScripts/BuildConf.os |