Usecase:

Solution:

Techstack of my solution:

Implementation:

Add your condition before tests. As per my structure

describe()

When “RequestSpecification” for the HTTP request, you may forget to check URL encoding. That may affect the path you need to invoke.

Example:

You need to invoke:

http://www.mocky.io/v2/5c78ed70300000a42d49b04d?user=qavisenti@gmail.com&groupby=zone&displaygroup=smart

By default, URL encoding enabled with RequestSpecification requests and will be the request as follows:

http://www.mocky.io/v2/5c78ed70300000a42d49b04d?user=qavisenti%40gmail.com&groupby=zone&displaygroup=smart

Hence disable URL encoding:

RestAssured.baseURI = "http://www.mocky.io/v2/5c78ed70300000a42d49b04d";RestAssured.urlEncodingEnabled = false;RequestSpecification httpRequest = RestAssured.given().
queryParam("user","qavisenti@gmail.com").
queryParam("groupby","zone").
queryParam("displaygroup","smart").
request().log().all();
Response response = httpRequest.request(Method.GET);

I was working with a test automation framework with cucumber, selenium and TestNG.

According to the requirement, had to have hybrid test architecture to cater to use cases. Hence decided to do REST API testing with Rest Assured.

Framework:

Question:

Input String may have content inside of brackets. All the content in brackets should be in reversed order.

Ex:

Assumptions:

WSO2’s cloud-enabled, 100% open source enterprise service bus (ESB) [1] is a standards-based messaging engine that provides the value of messaging without writing code. It provides data integration capabilities, eliminating the need to use a separate data services server for your integration processes.

In general, ESB has to offer a…

Setup

Data source Configuration

Create

Dilshani Subasinghe

Techie | Traveler | Writer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store