15 years ago
Authentication over HTTPS and Maven tests
Hello,
Using soapUI 3.6.1 and the corresponding plug-in for Maven I tried to run some tests on some REST web services that require BASIC authentication. I had two tests: 1 sending the correct user name and password, the other not sending any authentication data. The assertions for testing relied on checking the HTTP response codes (200 for okay, 401 for unauthorized). Running the tests from the soapUI GUI everything worked as expected. Running the same tests with the help of the Maven plug-in didn't work well: the test without any authentication data failed because it was sending a user name and a password, therefore receiving a HTTP 200 response code...
Using the exact same tests but this time with the 2.5.1 releases of both soapUI and the soapUI Maven plug-in everything worked okay. Any ideas why?
Using soapUI 3.6.1 and the corresponding plug-in for Maven I tried to run some tests on some REST web services that require BASIC authentication. I had two tests: 1 sending the correct user name and password, the other not sending any authentication data. The assertions for testing relied on checking the HTTP response codes (200 for okay, 401 for unauthorized). Running the tests from the soapUI GUI everything worked as expected. Running the same tests with the help of the Maven plug-in didn't work well: the test without any authentication data failed because it was sending a user name and a password, therefore receiving a HTTP 200 response code...
Using the exact same tests but this time with the 2.5.1 releases of both soapUI and the soapUI Maven plug-in everything worked okay. Any ideas why?