pengovbr / mod-sei-pen

Módulo de Integração ao Tramita.GOV.BR
30 stars 23 forks source link

Garantir compatibilidade do módulo Tramita com o SEI 4.1.2. #485

Open mateussbh opened 4 months ago

mateussbh commented 4 months ago

Sua solicitação de melhoria está relacionada a um problema? Por favor descreva. Prezados,

Precisamos garantir a compatibilidade do módulo com o SEI 4.1.2, de modo que sejam realizados os testes automatizados aprovados nesta versão e incluídos os anexos de evidências.

Descreva a solução que você gostaria Corrigir possíveis erros da versão 4.1.2, ao rodar os testes automatizados.

Foi observado que o teste automatizado do bloco externo (usando fixtures), não está presente na pasta de testes da versão 4.1 (tests_sei41).

Descreva alternativas que você considerou

Contexto adicional Certificar que os testes usando fixtures estão em suas versões finais : escopo do mapeamento de tipo de processos, escopo do envio parcial e escopo do bloco externo. Os testes acima na versão do sei 4 e 4.1 deverão usar as fixtures cabíveis (ou do core do sei, ou as fixture do módulo). A pasta de testes do 4.1 será usada para testar o módulo usando o core do SEI 4.1.2, nos diferentes BDs.

Para rodar a versão no Postgresql, é necessário subir o ambiente na versão do core do SEI 4.0.12, realizar o make update, depois alterar no .env o apontamento para a estrutura do core do SEI 4.1.2, depois realizer os comandos make down, make up e make update.

mateussbh commented 4 months ago

Erro encontrado na versão do oracle, a ser corrigido: Versão arquivos core do SEI: 4.1.2 Versão Módulo Tramita: 3.6.0 Pasta de testes usada : tests_sei41 Teste: MapeamentoTipoProcessoReativarTest Erro apresentado:

`MapeamentoTipoProcessoReativarTest::test_reativacao_mapeamento_orgao_externo PHPUnit\Extensions\Selenium2TestCase\WebDriverException: no such element: Unable to locate element: {"method":"xpath","selector":"//a[contains(@class, 'reativar')]"} (Session info: chrome=94.0.4606.61)

MapeamentoTipoProcessoReativarTest::test_reativar_checkbox_mapeamento_orgao_externo PHPUnit\Extensions\Selenium2TestCase\WebDriverException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@class, 'infraCheckboxDiv')]"} `

mateussbh commented 4 months ago

Segue erro identificado no teste no BD postgresql:

mateus@mateus-daten:~/Fonte-Sei/modulos/mod-sei-pen (master)$ make test-functional docker compose -f tests_sei41/funcional/docker-compose.yml --env-file tests_sei41/funcional/.env up -d [+] Running 11/11 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.0s docker compose -f tests_sei41/funcional/docker-compose.yml --env-file tests_sei41/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' [+] Creating 9/0 ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_sei41/funcional/docker-compose.yml --env-file tests_sei41/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/ ; [+] Creating 9/0 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(

PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ..PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ..PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ..PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .ESSSSPHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ISSSSPHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .... 63 / 158 ( 39%) PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ..PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .ESFSPHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .. 126 / 158 ( 79%) .PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ......PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ..........PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ISSPHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 .....PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 . 158 / 158 (100%)

Time: 3.62 hours, Memory: 40.00 MB

There were 2 errors:

1) TramiteProcessoAnexadoComDevolucaoTest::test_verificar_origem_processo_anexado PHPUnit\Extensions\Selenium2TestCase\WebDriverException: Timed out after 360 seconds

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/WaitUntil.php:138 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:597 /tests/tests/TramiteProcessoAnexadoComDevolucaoTest.php:104 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

Caused by PHPUnit\Framework\ExpectationFailedException: Failed asserting that 'Processo aberto somente na unidade TESTE.\n \n Processo em trâmite externo para "CGPRO_MATEUSPC3_ORG2".' does not contain "Processo em trâmite externo para ".

/tests/tests/TramiteProcessoAnexadoComDevolucaoTest.php:100 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/WaitUntil.php:119 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:597 /tests/tests/TramiteProcessoAnexadoComDevolucaoTest.php:104 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

2) TramiteProcessoDocumentoNaoMapeadoDestinoTest::test_verificar_origem_processo_contendo_documento_nao_mapeado_destino PHPUnit\Extensions\Selenium2TestCase\WebDriverException: Timed out after 360 seconds

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/WaitUntil.php:138 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:597 /tests/tests/TramiteProcessoDocumentoNaoMapeadoDestinoTest.php:93 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

Caused by PHPUnit\Framework\ExpectationFailedException: Failed asserting that 'Processo não possui andamentos abertos.' contains "Processo aberto somente na unidade".

/tests/tests/TramiteProcessoDocumentoNaoMapeadoDestinoTest.php:89 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/WaitUntil.php:119 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:597 /tests/tests/TramiteProcessoDocumentoNaoMapeadoDestinoTest.php:93 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

--

There was 1 failure:

1) TramiteProcessoDocumentoNaoMapeadoOrigemTest::test_tramitar_processo_documento_interno_nao_mapeado Failed asserting that exception with message "Não existe mapeamento de envio para Voto no documento" is thrown

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

--

There were 2 incomplete tests:

1) TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_tramitar_processo_da_origem Teste com erro. Ser� refatorado em momento oportuno.

/tests/tests/TramiteProcessoComDevolucaoContendoOutroAnexadoTest.php:41 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

2) TramiteRecebimentoDocumentoAnexadoTest::test_envio_processo_com_documento_anexado Teste com erro. Ser� refatorado em momento oportuno.

/tests/tests/TramiteRecebimentoDocumentoAnexadoTest.php:44 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:395 /tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

--

There were 12 skipped tests:

1) TramiteProcessoAnexadoComDevolucaoTest::test_verificar_destino_processo_anexado This test depends on "TramiteProcessoAnexadoComDevolucaoTest::test_verificar_origem_processo_anexado" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

2) TramiteProcessoAnexadoComDevolucaoTest::test_devolucao_processo_para_origem This test depends on "TramiteProcessoAnexadoComDevolucaoTest::test_verificar_destino_processo_anexado" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

3) TramiteProcessoAnexadoComDevolucaoTest::test_verificar_devolucao_origem_processo_anexado This test depends on "TramiteProcessoAnexadoComDevolucaoTest::test_devolucao_processo_para_origem" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

4) TramiteProcessoAnexadoComDevolucaoTest::test_verificar_devolucao_destino_processo_anexado This test depends on "TramiteProcessoAnexadoComDevolucaoTest::test_verificar_devolucao_origem_processo_anexado" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

5) TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_verificar_recebimento_processo_destino This test depends on "TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_tramitar_processo_da_origem" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

6) TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_devolucao_processo_contendo_outro_anexado_para_origem This test depends on "TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_verificar_recebimento_processo_destino" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

7) TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_verificar_devolucao_origem_processo_anexado This test depends on "TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_devolucao_processo_contendo_outro_anexado_para_origem" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

8) TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_verificar_devolucao_destino_processo_anexado This test depends on "TramiteProcessoComDevolucaoContendoOutroAnexadoTest::test_verificar_devolucao_origem_processo_anexado" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

9) TramiteProcessoDocumentoNaoMapeadoDestinoTest::test_verificar_destino_processo_contendo_documento_gerado This test depends on "TramiteProcessoDocumentoNaoMapeadoDestinoTest::test_verificar_origem_processo_contendo_documento_nao_mapeado_destino" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

10) TramiteProcessoDocumentoNaoMapeadoOrigemTest::test_tramitar_processo_documento_externo_nao_mapeado This test depends on "TramiteProcessoDocumentoNaoMapeadoOrigemTest::test_tramitar_processo_documento_interno_nao_mapeado" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

11) TramiteRecebimentoDocumentoAnexadoTest::test_devolucao_processo_com_documento_anexado_para_origem This test depends on "TramiteRecebimentoDocumentoAnexadoTest::test_envio_processo_com_documento_anexado" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

12) TramiteRecebimentoDocumentoAnexadoTest::test_verificar_processo_com_documento_anexado_apos_devolucao This test depends on "TramiteRecebimentoDocumentoAnexadoTest::test_devolucao_processo_com_documento_anexado_para_origem" to pass.

/tests/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:360 phpvfscomposer:///tests/vendor/phpunit/phpunit/phpunit:97

ERRORS! Tests: 158, Assertions: 1545, Errors: 2, Failures: 1, Skipped: 12, Incomplete: 2. make: *** [Makefile:194: test-functional] Error 2

mateus@mateus-daten:~/Fonte-Sei/modulos/mod-sei-pen (master)$ make test-functional teste=TramiteProcessoAnexadoComDevolucaoTest docker compose -f tests_sei41/funcional/docker-compose.yml --env-file tests_sei41/funcional/.env up -d [+] Running 11/11 ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.0s docker compose -f tests_sei41/funcional/docker-compose.yml --env-file tests_sei41/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' [+] Creating 9/0 ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_sei41/funcional/docker-compose.yml --env-file tests_sei41/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessoAnexadoComDevolucaoTest.php ; [+] Creating 9/0 ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(

PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 98 PHP Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129

Notice: Undefined index: ID_SERIE in /tests/tests/CenarioBaseTestCase.php on line 129 ...... 6 / 6 (100%)

Time: 9.48 minutes, Memory: 14.00 MB

OK (6 tests, 94 assertions)

Mauro1706 commented 3 months ago

Fo identificado que existe um erro nas fixtures no core do SEI 4.1.2 incluir os seguintes trechos de código para funcionamento nos arquivos:

mateussbh commented 3 months ago

Conforme alinhamento, faz-se necessário pular os testes TramiteBlocoExternoLimiteAnexoTest e TramiteBlocoExternoLimiteTest, pois estes deverão ser refatorados, porque eles usam método de navegação que validam tramitação através de página que não está mais disponível.