hazem_borham
11 years agoOccasional Contributor
[Reg] Auth Compatibility Issues with soapui 5.0.0 and 4.x
Not sure if this is a bug or usage issue with the new features in soapui 5.0.0, but let me try and explain.
In short, projects set-up in 5.0.0 are not always compatible with 4.5.1 and/4.6.4 due to the change in default for Authentication Type . The following are some errors seen by the TestCaseRunner in automation:
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'NTLM' is not a valid enumeration value for type of authType element
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'No Authorization' is not a valid enumeration value for type of authType element.
Example Usage Pattern
It looks like there are new features in 5.0.0 for setting up Auth, the change in behavior has an impact for users defining their tests in 5.0.0 and automation running on a 4.x version. Specifically in the case of what would be "Basic" in 5.0.0, a user in 4.x could set up Username, Password, Authentication Type, WWS Password-Type via the TestRequest Properties window. From the Auth tab of the request, Username, Password, and Authentication Type are configurable and NOT WWS Password-Type. In addition the default value for Authentications Type in 4.x was "Global HTTP Settings". A common pattern for test configuration was to use only the TestRequest Properties window to configure the 4 options noted.
In 5.0.0, the Authentication Type changed the default from "Global HTTP Settings" to "No Authorization", and is no longer configurable/editable on TestRequest Properties. The only way to configure the same case on 5.0.0 is always edit in the Auth tab and then change WWS Password-Type in the TestRequest Properties.
If a 5.0.0 user creates a case with Authentication Type equals "No Authorization", then the 4.5.1 runner (and UI) will choke, the runner will throw this error when trying to run the request:
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'No Authorization' is not a valid enumeration value for type of authType element.
Since "No Authorization" is a new option for 5.0.0 and "Global HTTP Settings" was the default, I think making "Global HTTP Settings" should be the default in 5.0.0. In addition, please make Authentication Type editable in TestRequest Properties in 5.0.0
In short, projects set-up in 5.0.0 are not always compatible with 4.5.1 and/4.6.4 due to the change in default for Authentication Type . The following are some errors seen by the TestCaseRunner in automation:
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'NTLM' is not a valid enumeration value for type of authType element
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'No Authorization' is not a valid enumeration value for type of authType element.
Example Usage Pattern
It looks like there are new features in 5.0.0 for setting up Auth, the change in behavior has an impact for users defining their tests in 5.0.0 and automation running on a 4.x version. Specifically in the case of what would be "Basic" in 5.0.0, a user in 4.x could set up Username, Password, Authentication Type, WWS Password-Type via the TestRequest Properties window. From the Auth tab of the request, Username, Password, and Authentication Type are configurable and NOT WWS Password-Type. In addition the default value for Authentications Type in 4.x was "Global HTTP Settings". A common pattern for test configuration was to use only the TestRequest Properties window to configure the 4 options noted.
In 5.0.0, the Authentication Type changed the default from "Global HTTP Settings" to "No Authorization", and is no longer configurable/editable on TestRequest Properties. The only way to configure the same case on 5.0.0 is always edit in the Auth tab and then change WWS Password-Type in the TestRequest Properties.
If a 5.0.0 user creates a case with Authentication Type equals "No Authorization", then the 4.5.1 runner (and UI) will choke, the runner will throw this error when trying to run the request:
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'No Authorization' is not a valid enumeration value for type of authType element.
Since "No Authorization" is a new option for 5.0.0 and "Global HTTP Settings" was the default, I think making "Global HTTP Settings" should be the default in 5.0.0. In addition, please make Authentication Type editable in TestRequest Properties in 5.0.0