Skip to content
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

Не снимается покрытие в режиме замера внешней обработки #124

Open
assb-art opened this issue Sep 14, 2021 · 3 comments

Comments

@assb-art
Copy link

assb-art commented Sep 14, 2021

Запускаю сервер отладки:
start /D "C:/Program Files (x86)/1cv8/8.3.18.1289/bin/" dbgs.exe --port 2550
Запускаю замер
Coverage41C.bat start -i DefAlias -x "file://c:/usr/МояОбработка.epf" -o c:\usr\raw_Coverage.xml -u http://127.0.0.1:2550
Запускаю тестклиент из тестменеджра с подключением отладки на указанный порт, открываю обработку, выполняю тестирование обработки.
Завершаю замер:
./Coverage41C.bat stop -i DefAlias -u http://127.0.0.1:2550

сформированный файл raw_Coverage.xml не содержит данных:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<coverage version="1"/>

Лог выполнения:

 .\Coverage41C.bat start -i DefAlias -x "file://c:/usr/МояОбработка.epf" -o c:\usr\raw_Coverage.xml -u http://127.0.0.1:2550
[main] INFO com.clouds42.Commands.CoverServer - Create server socket
[ForkJoinPool.commonPool-worker-3] INFO com.clouds42.Commands.CoverServer - Set socket listener...
[main] INFO org.eclipse.jetty.util.log - Logging initialized @775ms to org.eclipse.jetty.util.log.Slf4jLog
[main] WARN org.eclipse.jetty.util.ssl.SslContextFactory.config - Trusting all certificates configured for Client@1f010bf0[provider=null,keyStore=null,trustStore=null]
[main] WARN org.eclipse.jetty.util.ssl.SslContextFactory.config - No Client EndPointIdentificationAlgorithm configured for Client@1f010bf0[provider=null,keyStore=null,trustStore=null]
[main] INFO com.clouds42.Utils - Sources directory not set. Enabling RAW mode
[main] INFO com.clouds42.DebugClient - Configured 1C:Enterprise Runtime debug HTTP client: http://127.0.0.1:2550 : 2d3d8bae-a103-45ae-a444-384077012cc6 : DefAlias
[main] INFO com.clouds42.Commands.CoverageCommand - Connecting to debugger...
[main] INFO com.clouds42.Commands.CoverageCommand - Setup settings...
[main] INFO com.clouds42.Commands.CoverageCommand - Setup targets...
[main] INFO com.clouds42.Commands.CoverageCommand - Current debug targets size: 0
[main] INFO com.clouds42.Commands.CoverageCommand - Enabling profiling...
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 0
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetStarted
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 0
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetStarted
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 0
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetStarted
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: measureResultProcessing
[main] INFO com.clouds42.Commands.CoverageCommand - Found MEASURE_RESULT_PROCESSING command
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetQuit
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 0
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetStarted
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: measureResultProcessing
[main] INFO com.clouds42.Commands.CoverageCommand - Found MEASURE_RESULT_PROCESSING command
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetQuit
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetStarted
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: measureResultProcessing
[main] INFO com.clouds42.Commands.CoverageCommand - Found MEASURE_RESULT_PROCESSING command
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: targetQuit
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 0
[ForkJoinPool.commonPool-worker-5] INFO com.clouds42.Commands.CoverServer - Get command: stop
[ForkJoinPool.commonPool-worker-5] INFO com.clouds42.Commands.CoverageCommand - Disabling profiling...
[ForkJoinPool.commonPool-worker-5] INFO com.clouds42.Utils - Lines to cover: 0
[ForkJoinPool.commonPool-worker-5] INFO com.clouds42.Utils - Covered lines: 0
[ForkJoinPool.commonPool-worker-5] INFO com.clouds42.Commands.CoverageCommand - Bye!
[main] INFO com.clouds42.Commands.CoverageCommand - Ping result commands size: 1
[main] INFO com.clouds42.Commands.CoverageCommand - Command: measureResultProcessing
[main] INFO com.clouds42.Commands.CoverageCommand - Found MEASURE_RESULT_PROCESSING command
[main] INFO com.clouds42.Commands.CoverageCommand - Disconnecting from dbgs...
[main] INFO com.clouds42.Commands.CoverServer - Close server socket
[ForkJoinPool.commonPool-worker-3] INFO com.clouds42.Commands.CoverServer - Can't accept socket: GetOverlappedResult() failed for connect operation: 6
[main] INFO com.clouds42.Commands.CoverageCommand - Main thread finished
[Thread-9] INFO com.clouds42.Commands.CoverageCommand - Disconnecting from dbgs...
[Thread-9] ERROR com.clouds42.Commands.CoverageCommand - java.util.concurrent.ExecutionException: java.util.concurrent.RejectedExecutionException: HttpClient@62833051{STOPPED} is stopped
[Thread-9] INFO com.clouds42.Commands.CoverageCommand - Main thread finished
@asosnoviy
Copy link
Member

Судя по [main] INFO com.clouds42.Utils - Sources directory not set. Enabling RAW mode Параметр -s все равно нужен . Но я не проверял

@assb-art
Copy link
Author

с этим параметром и указанием исходников я запускал. Исходники он видит, читатет, в выходном файле есть строки исходников, у всех признак покрытия False

@asosnoviy
Copy link
Member

У меня пока тоже не получается снять замер обработки =(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants