# Gatling check two values in request body

**URL:** <https://community.gatling.io/t/gatling-check-two-values-in-request-body/4145>\
**Category:** Gatling (Open-Source)\
**Created:** [January 26, 2018, 9:56pm UTC](https://community.gatling.io/t/gatling-check-two-values-in-request-body/4145 "2018-01-26T21:56:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepu\_V\_Nair](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Deepu\_V\_Nair](https://community.gatling.io/u/Deepu_V_Nair)\
**Post date:** [January 26, 2018, 9:56pm UTC](https://community.gatling.io/t/gatling-check-two-values-in-request-body/4145/1 "2018-01-26T21:56:11Z")

</div>

```auto

```

```auto
I want to compare values from response body to decide whether all data are processed. I tried following code but not working.

```

```auto

```

```auto

```

```auto
.check(jsonPath("$.countOfProcessed").is(jsonPath("$.countOfRequested")))

```

```auto

```

```auto
I have also tried this but no luck. Is there any way to manually fail a test ?

```

---

<div class="post-metadata">

**Author:** ![Rytis\_Jazdauskas](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Rytis\_Jazdauskas](https://community.gatling.io/u/Rytis_Jazdauskas)\
**Post date:** [January 31, 2018, 11:57pm UTC](https://community.gatling.io/t/gatling-check-two-values-in-request-body/4145/2 "2018-01-31T23:57:35Z")

</div>

save one and then do jsonPath(…).is(session =\> session(“first saved”).as[String]) or jsonPath(…).is(jsonPath(…).saveAs.getOrElse(""))
