You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/12/01 10:56:26 UTC
[Bug 61839] New: Jmeter not taking REST API response of type
hal+json, hypermedia data
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
Bug ID: 61839
Summary: Jmeter not taking REST API response of type hal+json,
hypermedia data
Product: JMeter
Version: 3.1
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: garima.j9@gmail.com
Target Milestone: ---
Jmeter not reflecting the REST API response of type hal+json, hypermedia data
on his results tree, Jmeter wont support HATEOAS/Hypermedia data which contains
"_embedded" resources and "_links" ?
Please reply on this immediately , it is the blocking issue and i am not
getting any supoorting content on internet as well.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #9 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Hi,
I have tested with example from https://spring.io/guides/gs/rest-hateoas/ and I
have no problem with Apache JMeter 3.3
The same witj latest nightly build
------Sampler result------
Thread Name: Thread Group 1-1
Sample Start: 2017-12-04 21:29:33 CET
Load time: 4
Connect Time: 1
Latency: 4
Size in bytes: 241
Sent bytes:206
Headers size in bytes: 132
Body size in bytes: 109
Sample Count: 1
Error Count: 0
Data type ("text"|"bin"|""): text
Response code: 200
Response message:
Response headers:
HTTP/1.1 200
Content-Type: application/hal+json;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 04 Dec 2017 20:29:33 GMT
HTTPSampleResult fields:
ContentType: application/hal+json;charset=UTF-8
DataEncoding: UTF-8
------Request------
GET http://localhost:8080/greeting
GET data:
[no cookies]
Request Headers:
Connection: keep-alive
Content-Type: application/hal+json;charset=UTF-8
Accept: application/hal+json
Host: localhost:8080
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_144)
------Response data------
{
: "content":"Hello, World!",
: "_links":
: {
: : "self":
: : {
: : : "href":"http://localhost:8080/greeting?name=World"
: : }
: }
}
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #4 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
e.g
Content-type: application/json
Accept: application/hal+json
Antonio
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
Antonio Gomes Rodrigues <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEEDINFO |RESOLVED
--- Comment #12 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Hi,
No news, I close the ticket. Feel free to open it again
Antonio
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #7 from Garima jain <ga...@gmail.com> ---
2017/12/04 10:53:58 INFO - jmeter.engine.StandardJMeterEngine: Running the
test!
2017/12/04 10:53:58 INFO - jmeter.samplers.SampleEvent: List of
sample_variables: []
2017/12/04 10:53:58 INFO - jmeter.gui.util.JMeterMenuBar:
setRunning(true,*local*)
2017/12/04 10:53:58 INFO - jmeter.engine.StandardJMeterEngine: Starting
ThreadGroup: 1 : XS2A STET
2017/12/04 10:53:58 INFO - jmeter.engine.StandardJMeterEngine: Starting 1
threads for group XS2A STET.
2017/12/04 10:53:58 INFO - jmeter.engine.StandardJMeterEngine: Thread will
continue on error
2017/12/04 10:53:58 INFO - jmeter.threads.ThreadGroup: Starting thread group
number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2017/12/04 10:53:58 INFO - jmeter.threads.ThreadGroup: Started thread group
number 1
2017/12/04 10:53:58 INFO - jmeter.engine.StandardJMeterEngine: All thread
groups have been started
2017/12/04 10:53:58 INFO - jmeter.threads.JMeterThread: Thread started: XS2A
STET 1-1
2017/12/04 10:53:58 WARN -
com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor:
Extract failed com.jayway.jsonpath.PathNotFoundException: Path '_embedded' not
found in the current context:
{"page":{"number":0,"size":10,"totalPages":0,"totalElements":0}}
at
com.jayway.jsonpath.internal.filter.FieldFilter.filter(FieldFilter.java:87)
at com.jayway.jsonpath.JsonPath.read(JsonPath.java:255)
at com.jayway.jsonpath.internal.JsonReader.read(JsonReader.java:103)
at com.jayway.jsonpath.internal.JsonReader.read(JsonReader.java:97)
at
com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor.process(JSONPathExtractor.java:106)
at
org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:788)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:501)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)
2017/12/04 10:53:58 INFO - jmeter.threads.JMeterThread: Thread is done: XS2A
STET 1-1
2017/12/04 10:53:58 INFO - jmeter.threads.JMeterThread: Thread finished: XS2A
STET 1-1
2017/12/04 10:53:58 INFO - jmeter.engine.StandardJMeterEngine: Notifying test
listeners of end of test
2017/12/04 10:53:58 INFO - jmeter.gui.util.JMeterMenuBar:
setRunning(false,*local*)
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #2 from Garima jain <ga...@gmail.com> ---
Hi, My Rest API is returning the response like this
{
"_embedded": {
"accounts": [{
"accountId": "Alias1",
"name": "Compte de Mr et Mme Dupont",
"usage": "PRIV",
"type": "CACC",
"Ccy": "EUR",
"psuStatus": "Co-account Holder",
"_links": {
"balances": {
"href":
"v1/accounts/Alias1/balances"
},
"transactions": {
"href":
"v1/accounts/Alias1/transactions"
}
}
}
]
},
"_links": {
"self": {
"href": "v1/accounts"
},
"last": {
"href": "v1/accounts"
},
"next": {
"href": "v1/accounts"
},
"prev": {
"href": "v1/accounts"
},
"first": {
"href": "v1/accounts"
}
}
}
it is a pageable response when i am hitting the api through jmeter i am getting
response like below
{
"page" : {
"size" : 10,
"totalElements" : 0,
"totalPages" : 0,
"number" : 0
}
}
only page info which is json data, JMETER unable to parse embedded
resource/links which is a part of response.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
Antonio Gomes Rodrigues <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Hi,
What exactly the problem?
If I check https://apigility.org/documentation/api-primer/halprimer, the
response is text
Please provide mode information.
Antonio
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #3 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Have you add in HTTP parameters : Accept and Content-Type
Can we have access to your API by Internet to test it ?
Antonio
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #5 from Garima jain <ga...@gmail.com> ---
Check this
Response headers:
HTTP/1.1 200
Date: Fri, 01 Dec 2017 11:22:53 GMT
Content-Type: application/hal+json;charset=UTF-8
Transfer-Encoding: chunked
HTTPSampleResult fields:
ContentType: application/hal+json;charset=UTF-8
DataEncoding: UTF-8
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #11 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Created attachment 35583
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35583&action=edit
Example of working script
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
Antonio Gomes Rodrigues <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #8 from Garima jain <ga...@gmail.com> ---
You can't test my jmx online and we are not using oauth2 authentication for
these test cases and i think it wont affect this jmeter issue.
Have you tried this kind of data before my issue?
Actually i tried on internet but JMeter + Application/hal+json not giving any
proper result, thats why i have posted this issue on your site.
One more point response which jmeter has to reflect is also getting printed on
eclipse console and we are using nodejs server as a intermediate, nodejs is
giving proper hal data but jmeter is not reflecting the same.
Is there any issue between nodejs n jmeter? some dependency or plugin required?
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #10 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Tested with 3.1 and 3.2 without problem
Antonio
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 61839] Jmeter not taking REST API response of type hal+json,
hypermedia data
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839
--- Comment #6 from Antonio Gomes Rodrigues <ra...@gmail.com> ---
Hi,
Can you attach the jmeter.log to this ticket
Can we have access to your API by Internet to test it?
Do you use authorization like OAuth2?
Antonio
--
You are receiving this mail because:
You are the assignee for the bug.