Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

• In case of .NET 2.0 ASMX you can post HTTP requests for the web service using HttpWebRequest and HttpWebResponse

• Is this approach possible for java based web service as well, referring to requests from java clients ? Posting as HTTP requests in java, Any example pointers would be helpful

• For Developing UI automation we rely on Page object pattern or factory pattern (General Automation Guidance)

• What is the guidance / widely adopted approach for java based web services test automation ?

I am not looking at using SOAP UI. I am looking at developing a Test Automation framework for Java based web services testing using TestNG.

Any pointers / example posts would he helpful.

Thanks, Siva

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Is this approach possible for java based web service as well, referring to requests from java clients ? Posting as HTTP requests in java, Any example pointers would be helpful

Java (and any other programming language/environment that can communicate over TCP/IP) can issue HTTP requests and receive HTTP responses. See for example HttpClient.

What is the guidance / widely adopted approach for java based web services test automation ?

Java, as an object-oriented language, is an appropriate vehicle for modeling pages with Page Objects. See for example this article. Whether you use Page Objects is orthogonal to whether you use TestNG. You could just as easily use Page Objects with JUnit, a test framework of your own design, or no test framework at all.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.