Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to write a Automation code in JAVA ?

983314Jan 7 2013 — edited Jan 8 2013
Hi Team,

I have been writing a automation code for testing the API provided by company. Initially, there were few number of APIs but when our features and enhancement grows, API also grows.

Now my automation code looks complex and messy. I need to revamp my automation.

Brief intro to my automation:

My Service provides APIs for all CRUD operations (Create, Retrieve, Update, Delete). All API are implemented in the Web API (an API is typically defined as a set of Hypertext Transfer Protocol (HTTP) request messages, along with a definition of the structure of response messages in XML and JSON markup language)

I have been writing the the automation code by only using the core java like (making httpclient request, parsing XML/JSON response, validate the response based on the parameters which i passed and generate the report).

Is there any other ways or techniques that make the automation easy to understand, write, cover many test cases. . . ?

Looking forward for your reply.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2013
Added on Jan 7 2013
1 comment
599 views