benken_parasoft ✭✭✭


Last Active
Members, Staff
  • Re: How to get the ip Address of the System

    Please be aware that a system may have multiple NICs and each NIC may have multiple IP addresses assigned to it. Depending on your requirements, you may need to check all of those and pick the IP address you think you want to use. The script from the previous post is for python (Jython). In contrast, there are java APIs for collecting IP addresses which you could call from a Groovy script. In particular, there is which returns the list of network interfaces. For each network interface, you can call to get the list of IP address for that network interface.

    There are plenty of examples on the web for using the Java APIs I mention. For example:

  • Re: Parameterizing option to send attribute as empty

    From the "Form Input View Options" section of the SOAtest User's Guide, which applies to Form JSON view as well:

    To have values stored in a data source dictate whether a value is sent for an optional element:
    1. Right-click the element’s tree node.
    2. Choose Use Data Source> Exclude Element with Empty String.
    3. In the tool configuration panel, ensure that the appropriate data source column is selected under Use data source: Exclude with empty string.

  • Re: Email test execution report after execution is complete

    Use "" to specify list of emails for manager reports. SOAtest generates manager reports which are comprehensive. However, it also generates individual reports containing failures based on test/task authorship settings. I've always used "" to control who gets the manager reports.

  • Re: Accessing JSON data bank from Jython

    A couple things to keep in mind. Please be aware that backslash is an escape character in JSON. When you extract a JSON string value, like with a JSON Data Bank, then any JSON escape sequences are automatically decoded. You don't need to do this manually by script or something. For example, backslash-double-quote (\") would automatically become a double-quote ("), backslash-t (\t) with the tab character, double-backslash (\\) with a single backslash (\), etc. The data bank column will have the logical string value, not way it needed to be encoded within a JSON document.

  • Re: How to execute a simple soap request Without WSDL/WADL URL??

    Do not enable HTTP authentication in your test if the error is from your HTTP proxy server. Let's use thread 7853 for any questions about how to configure HTTP proxy authentication.