Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] Testing REST API

Hello Asaf

In our codebase you can find different ways to test Rest services

One way,  as Alexander mentioned is more TestNG based. 
https://github.com/codenvy/che-core/blob/master/platform-api/che-core-api-factory/src/test/java/org/eclipse/che/api/factory/FactoryServiceTest.java#L78
It uses TestNG listeners to deploy services in Jetty server
We intend to make this listener part of everest in close future. But you can used it now as dependency from our maven repository.

Other way is more framework independent 
https://github.com/codenvy/che-core/blob/master/platform-api/che-core-api-project/src/test/java/org/eclipse/che/api/project/server/ProjectServiceTest.java#L860
It uses Everrest internal classes to launch test

Sergii Kabashniuk


On Mon, Apr 6, 2015 at 5:22 PM, Alexander Garagatyi <agaragatyi@xxxxxxxxxxx> wrote:

On Mon, Apr 6, 2015 at 4:51 PM, Bruner, Asaf <asaf.bruner@xxxxxxx> wrote:

Hi All,

 

We want to write tests for the REST API that Che provides and we are trying to decide which is the best:

·        REST-assured (https://code.google.com/p/rest-assured/ ) for making the calls and testing the results.

·        Using everrest for the REST calls and writing the testing framework ourselves.

 

Are there other possibilities you recommend? Thanks.

 

Best Regards,

Asaf Bruner.

DI Cloud Exp DevX | SaaS Extensions &  Ecosystem Team | SAP Labs Israel | 15 Hatidhar st. | Raanana 43665, Israel

T +972-(0)9-777-9542

SAP_logo_small

 


_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev




--
  | Alexander Garagatyi | Developer | Codenvy.com 

_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev



Back to the top