I have used rest assured before and not aware of unirest much. Does anyone used both and can tell me which one is better to automate rest APIs
Asked
Active
Viewed 3,441 times
1 Answers
1
Based on the below mentioned Pros and Cons, I know. Rest-Assured is best to test and automate Rest API.
Pros
Unirest
- Support Available in 8 languages like Node, Ruby, Java, Python, Objective C etc.
- Both syncronous and asynchronous (non-blocking) requests.
Rest Assured
- DSL
- Inbuilt library of Assertions, Matchers and Extractors.
- Easy integration with TestNG/JUnit.
- Follow BDD/Gherkin for readable behaviour driven test cases.
- Minimal Documentation.
- Designed and Built for API Automation Testing.
Cons
Unirest
- No in-built library for Matchers/ Extractors / Assertions.
- Simple HTTP Client Library.
RestAssured
- Supports only Java Language.

Vamsi Ravi
- 1,196
- 8
- 26