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

Module Soap with PhpBrowser - Response not shown in verbose output #3690

Closed
Noles opened this Issue Nov 6, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@Noles
Contributor

Noles commented Nov 6, 2016

What are you trying to achieve?

Test soap with PhpBrowser in verbose mode including Soap response

What do you get instead?

No Soap response in output

Provide console output if related. Use -vvv mode for more details.

Scenario --
 I send soap request "user_create","<?xml version=\"1.0\"?>\n<data><uid>iTest123<\/uid><username>test123@work<\/username>..."
  [Request] <soapenv:Envelope xmlns:ns="User" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"></soapenv:Header><soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns:user_create><data><uid>iTest123</uid><username>test123</username></data></ns:user_create></soapenv:Body></soapenv:Envelope>
  [Response] {}
 I see soap response contains structure "<user_createResponse/>"
  [Structure] <?xml version="1.0"?>
  <user_createResponse/>
  
 FAIL

Expected output

Scenario --
 I send soap request "user_create","<?xml version=\"1.0\"?>\n<data><uid>iTest123<\/uid><username>test123@work<\/username>..."
  [Request] <soapenv:Envelope xmlns:ns="User" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"></soapenv:Header><soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns:user_create><data><uid>iTest123</uid><username>test123@work</username></data></ns:user_create></soapenv:Body></soapenv:Envelope>
  [Response] <?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>User exists</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
  
 I see soap response contains structure "<user_createResponse/>"
  [Structure] <?xml version="1.0"?>
  <user_createResponse/>
  
 FAIL

Details

  • Codeception version:
  • PHP Version: 5.4
  • Operating System: Ubuntu 16.04
  • Installation type: Composer
  • List of installed packages (composer show)
  • Suite configuration:
class_name: AcceptanceTester
modules:
    enabled:
        - PhpBrowser:
            url: http://localhost/web
        - \Helper\Acceptance
        - SOAP:
            depends: PhpBrowser
            endpoint: 'http://localhost/web/soap.php'
            schema: 'User'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment