Reputation: 252
I am looking for java tests that I can use in automation testing of web pages hosted locally.
These are for RESTful web services.
The situation is we have some web pages or web service hosted locally and I need to run several tests on this.
Upvotes: 0
Views: 319
Reputation: 98
You can use the URL class in Java: http://docs.oracle.com/javase/7/docs/api/java/net/URL.html
I feel that you don't need to use Selenium as the REST calls you will be making are independent of the browser. You don't need an actual browser to make these calls. If you do that, your automation will run a lot faster.
If you also have an authentication and authorization service then you will need to take care of it using the Set-Cookie HTTP header.
Upvotes: 0