Ask a Question

Defect: JSON Path Expressions can no longer handle inline data fetches

vervuwi
New Contributor

Defect: JSON Path Expressions can no longer handle inline data fetches

We have a response from a REST service with the following json structure:

 

 

{"users": [
	{
		"email": "user1@test.com",
		"userId": "..."
	},
	{
		"email": "user2@test.com",
		"userId": "..."
	}
]}

 

We also have a test step called 'GenerateData' that has a property that actually contains the email of the user we are currently using in this test. When we try to extract his userId with the following JSON Path Expression we always recieve an empty result. We are 100% positive that the '${GenerateData#userEmail}' contains 'user1@test.com' while our test is executing.

 

$.users[?@.email='${GenerateData#userEmail}'].userId

 

In readyAPI 1.6.0 this feature was still working. However we recently upgraded to release 1.7.0 and we now notice that test cases that make use of this sort of JSONPath Expressions actually fail.  

 

Is this a wanted change in version 1.7.0 or a newly introduced bug?

In case there are any reasonable work arounds available, feel free to share them.

 

Thanks in advance.

4 REPLIES 4
TanyaYatskovska
Community Manager

Re: Defect: JSON Path Expressions can no longer handle inline data fetches

Hi Vervuwi,

 

 

Could you please check if you see the same issue in the latest maintenance build?

https://support.smartbear.com/downloads/readyapi/nightly-builds/

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


vervuwi
New Contributor

Re: Defect: JSON Path Expressions can no longer handle inline data fetches

I have just tried this with the nightly build and this issue is still occurring.

Since we run our test cases on a build server we also prefer to install release builds of the product

TanyaYatskovska
Community Manager

Re: Defect: JSON Path Expressions can no longer handle inline data fetches

Thanks for checking this!

I've reported the issue to our R&D Team. Once I get some news from them, I'll post it here.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


TanyaYatskovska
Community Manager

Re: Defect: JSON Path Expressions can no longer handle inline data fetches

I've got the confirmation that this issue had been fixed in the latest Maintenance build. Please download it here to make sure if everything works fine for you: https://support.smartbear.com/downloads/readyapi/nightly-builds/

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


cancel
Showing results for 
Search instead for 
Did you mean: