S
S
Stanislav Martynov2018-07-11 22:49:20
Java
Stanislav Martynov, 2018-07-11 22:49:20

JMeter asynchronous request?

Good time. There is a JMeter test in which:
1. User authorization and obtaining an authorization token
2. The user gets JSON from the web api with an array of elements
3. A while loop is launched in which we go through each element, get the element id
3.1. We upload this element to another storage via web api using id
3.2. A while loop is launched that checks whether the element has loaded or not
3.2.1. We address to web api, we do check on availability of the given element in the second storage
3.3.2. If the data in the response is correct and the element has loaded, go to step 3.
3.4.3. If the data in the response came with the calculating status, we continue to wait, proceeding to step 3.2.
4. The results are written to a csv file.
Essence of the question: there is a user who takes data from one web api, and puts it into another web api element by element, checking whether each element has moved.
Question: Can step 3 be made asynchronous. Those. that the elements from the array were loaded into the web api not sequentially but asynchronously, i.e. is it possible to make an asynchronous post or get request in jmeter?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
alfss, 2018-09-03
@alfss

https://dzone.com/articles/how-to-use-the-parallel... i think this might help

S
Sergey, 2014-11-15
@Bowen

It won't work 100%. You can always fake a request to the server. The easiest way to resolve such things on the client is to simply redirect if the page is not loaded in a frame.

A
Alexander, 2014-11-15
Madzhugin @Suntechnic

Think about this - even if now we somehow contrive (there are ideas with parameters) - what's the use of this? Do you need a form to send a request? What will prevent me from building the same query?

F
FanatPHP, 2014-11-15
@FanatPHP

No way.
All calls to your server are "direct". It doesn't know anything about frames in the browser.
Besides, it's just not necessary. If you do not want anyone to fill in - attach authorization

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question