Questions tagged [jsonpath]
The jsonpath tag has no usage guidance.
6
questions
0
votes
1
answer
46
views
Variables in jsonpath expression
I have tested this Json extractor - JSON path expression to extract the GET response's model_name which value matched previous POST data.
POST data:
"model_name": "Model-Test-${variable}...
1
vote
3
answers
235
views
Avoiding a NPE when checking JSON response using JsonPath and Rest Assured
Given the following JSON:
{
"priceOne": 1034,
"priceTwo": null,
"priceThree": 7282,
}
...and the following Rest Assured method to get the priceTwo value and ...
1
vote
1
answer
78
views
Getting an error while trying to run a script using Rest-Assured library
Getting an error while trying to run a script using Rest-Assured library along with Selenium. Anyone has encountered this kind of error while scripting with Rest-Assured. My code is scattered across ...
0
votes
1
answer
2k
views
Extract multiple JsonPath values from returned Response using Rest Assured
I need to obtain two values from JSON response data returned from a Rest Assured modelled request:
Request
public void getCustomerStatuses() {
Response response =
given().header(...
-2
votes
1
answer
6k
views
How to extract a value from a JSON response with Java and Rest-Assured
I'm getting the response below. I need to assert the value of "Type". How can I get the value? I'm using Java and rest-assured
The response:
"Product1": {
"Productive1": {
"applause": {
...
0
votes
1
answer
5k
views
Rest-assured. Is it possible to extract JSONObject/JSONArray from response json?
I'm Using RestAssured,
and i'm getting the response like this-
{
"Data": {
"Sub": {
"SubDetails": [
{
"OrgId": 5,
...