2
respostas

Não consigo realizar teste de login retorna falha na conexão.

      cURL error 7: Failed to connect to 0.0.0.0 port 8080: Address not available (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)    (GuzzleHttp\Exception\ConnectException) 

tentei http://localhost:8080' também não funciona

2 respostas

tenta 127.0.0.1 Teoricamente localhst deveria resolver pra esse endereço

Lamento informar que não resolveu o problema

PS C:\Projetos\gerenciador_de_cursos_behavior_driver> php vendor/bin/behat -s e2e PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in C:\Projetos\gerenciador_de_cursos_behavior_driver\vendor\behat\mink-extension\src\Behat\MinkExtension\ServiceContainer\Driver\GoutteFactory.php on line 119

Deprecated: Method ReflectionParameter::getClass() is deprecated in C:\Projetos\gerenciador_de_cursos_behavior_driver\vendor\behat\mink-extension\src\Behat\MinkExtension\ServiceContainer\Driver\GoutteFactory.php on line 119 PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in C:\Projetos\gerenciador_de_cursos_behavior_driver\vendor\behat\mink-extension\src\Behat\MinkExtension\ServiceContainer\Driver\GoutteFactory.php on line 119

Deprecated: Method ReflectionParameter::getClass() is deprecated in C:\Projetos\gerenciador_de_cursos_behavior_driver\vendor\behat\mink-extension\src\Behat\MinkExtension\ServiceContainer\Driver\GoutteFactory.php on line 119 Funcionalidade: Login Descrição da funcionalidade

@e2e Cenário: Realizar login # features\login.feature:6 Dado estou em "/login" # Behat\MinkExtension\Context\MinkContext::visit() cURL error 7: Failed to connect to 127.0.0.1 port 8080: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) (GuzzleHttp\Exception\ConnectException) Quando preencho "email" com "adiljosantos@gmail.com.br" # Behat\MinkExtension\Context\MinkContext::fillField() E preencho "senha" com "123456" # Behat\MinkExtension\Context\MinkContext::fillField() E pressiono "Entrar" # Behat\MinkExtension\Context\MinkContext::pressButton() Então devo estar em "/listar-cursos" # Behat\MinkExtension\Context\MinkContext::assertPageAddress()

--- Cenários que falharam:

features\login.feature:6

1 cenário (falhou) 5 definições (falhou, 4 omitidos) 0m2.32s (11.35Mb)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software