"Why would you ever use basic HTTP libraries rather than Rest-Assured?"
"When would you choose to use basic HTTP libraries instead of Rest-Assured?"
Source links are on this blog post:
http://blog.javafortesters.com/2018/0...
When:
HttpURLConnection vs RestAssured
no additional dependencies required
stable API
Using `HttpURLConnection` keeps my life as a programmer simple.
You only have to write code to cover the situations you test for.
running fast integration tests
constrained use case for the HTTP requests
want to keep dependencies to a minimum
happy to write abstraction code around HTTP requests (but not too much)
want to minimise impact of Java version upgrades
When they are part of my 'integration' test process I'll probably use RestAssured as the default choice because I will be expecting a less constrained set of use cases for the HTTP requests and I'll probably be coding in a different project than the main code project so dependency management will be less of an issue
Auf dieser Seite können Sie das Online-Video Why Java basic HTTP libraries HttpURLConnection instead of RestAssured? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer EvilTester - Software Testing 25 April 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,616 Mal angesehen und es wurde von 20 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!