JMeter- how to set send and receiving data in JSON file - by WebSocket
up vote
0
down vote
favorite
I have a back end application (only back end) which sends data to customers by WebSocket.
I testing this application using JMeter. In Jmeter I added plugin WebSocket Sampler by Peter..
Previously I am sending this data to customers by Postman.
In my Json file incluge data about event, in which customers can subscribe. I have one question: How can I do it, that data, which is send in postman (in json file) will be send in JMeter?
Is it correctly way to read my json file in Jmeter?
If not: Why not and how I can improve this?
- How I can the best to process data - to variable from my json file?
jmeter
New contributor
add a comment |
up vote
0
down vote
favorite
I have a back end application (only back end) which sends data to customers by WebSocket.
I testing this application using JMeter. In Jmeter I added plugin WebSocket Sampler by Peter..
Previously I am sending this data to customers by Postman.
In my Json file incluge data about event, in which customers can subscribe. I have one question: How can I do it, that data, which is send in postman (in json file) will be send in JMeter?
Is it correctly way to read my json file in Jmeter?
If not: Why not and how I can improve this?
- How I can the best to process data - to variable from my json file?
jmeter
New contributor
anyone help me?
– annkol
Nov 11 at 20:34
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a back end application (only back end) which sends data to customers by WebSocket.
I testing this application using JMeter. In Jmeter I added plugin WebSocket Sampler by Peter..
Previously I am sending this data to customers by Postman.
In my Json file incluge data about event, in which customers can subscribe. I have one question: How can I do it, that data, which is send in postman (in json file) will be send in JMeter?
Is it correctly way to read my json file in Jmeter?
If not: Why not and how I can improve this?
- How I can the best to process data - to variable from my json file?
jmeter
New contributor
I have a back end application (only back end) which sends data to customers by WebSocket.
I testing this application using JMeter. In Jmeter I added plugin WebSocket Sampler by Peter..
Previously I am sending this data to customers by Postman.
In my Json file incluge data about event, in which customers can subscribe. I have one question: How can I do it, that data, which is send in postman (in json file) will be send in JMeter?
Is it correctly way to read my json file in Jmeter?
If not: Why not and how I can improve this?
- How I can the best to process data - to variable from my json file?
jmeter
jmeter
New contributor
New contributor
edited 20 hours ago
New contributor
asked Nov 10 at 16:12
annkol
11
11
New contributor
New contributor
anyone help me?
– annkol
Nov 11 at 20:34
add a comment |
anyone help me?
– annkol
Nov 11 at 20:34
anyone help me?
– annkol
Nov 11 at 20:34
anyone help me?
– annkol
Nov 11 at 20:34
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
There is __FileToString() function, you can kill two birds with one with it, to wit:
- Read a file from the file system
- Store file contents into a JMeter Variable
For example the following expression:
${__FileToString(file.json,,myVar)}
will read file.json
from JMeter's "bin" folder and store its contents into ${myVar}
JMeter Variable:
If you have multiple JSON files and want multiple JMeter threads to send different files - the easiest way is going for Directory Listing Config plugin (can be installed using JMeter Plugins Manager)
add a comment |
up vote
0
down vote
in attachmnent I show, what I set this
enter image description here
enter image description here
what is wrong and how is the easiest way to improve this?
I'm not understand exactly, how I can add ${__FileToString(file.json,,myVar)} and variable myVar,
and how exactly must be set FileToString and myVar in Thread group, as what of type test plan?
how improve exactly?
New contributor
add a comment |
up vote
0
down vote
OK I set this, and in View Result Three in ERR in Response Body is correctly return body json, so I dont know, why is **ERR* name
It is correctly? and if not, why is wrong and how I can improve this?
New contributor
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There is __FileToString() function, you can kill two birds with one with it, to wit:
- Read a file from the file system
- Store file contents into a JMeter Variable
For example the following expression:
${__FileToString(file.json,,myVar)}
will read file.json
from JMeter's "bin" folder and store its contents into ${myVar}
JMeter Variable:
If you have multiple JSON files and want multiple JMeter threads to send different files - the easiest way is going for Directory Listing Config plugin (can be installed using JMeter Plugins Manager)
add a comment |
up vote
0
down vote
There is __FileToString() function, you can kill two birds with one with it, to wit:
- Read a file from the file system
- Store file contents into a JMeter Variable
For example the following expression:
${__FileToString(file.json,,myVar)}
will read file.json
from JMeter's "bin" folder and store its contents into ${myVar}
JMeter Variable:
If you have multiple JSON files and want multiple JMeter threads to send different files - the easiest way is going for Directory Listing Config plugin (can be installed using JMeter Plugins Manager)
add a comment |
up vote
0
down vote
up vote
0
down vote
There is __FileToString() function, you can kill two birds with one with it, to wit:
- Read a file from the file system
- Store file contents into a JMeter Variable
For example the following expression:
${__FileToString(file.json,,myVar)}
will read file.json
from JMeter's "bin" folder and store its contents into ${myVar}
JMeter Variable:
If you have multiple JSON files and want multiple JMeter threads to send different files - the easiest way is going for Directory Listing Config plugin (can be installed using JMeter Plugins Manager)
There is __FileToString() function, you can kill two birds with one with it, to wit:
- Read a file from the file system
- Store file contents into a JMeter Variable
For example the following expression:
${__FileToString(file.json,,myVar)}
will read file.json
from JMeter's "bin" folder and store its contents into ${myVar}
JMeter Variable:
If you have multiple JSON files and want multiple JMeter threads to send different files - the easiest way is going for Directory Listing Config plugin (can be installed using JMeter Plugins Manager)
answered 2 days ago
Dmitri T
66k33256
66k33256
add a comment |
add a comment |
up vote
0
down vote
in attachmnent I show, what I set this
enter image description here
enter image description here
what is wrong and how is the easiest way to improve this?
I'm not understand exactly, how I can add ${__FileToString(file.json,,myVar)} and variable myVar,
and how exactly must be set FileToString and myVar in Thread group, as what of type test plan?
how improve exactly?
New contributor
add a comment |
up vote
0
down vote
in attachmnent I show, what I set this
enter image description here
enter image description here
what is wrong and how is the easiest way to improve this?
I'm not understand exactly, how I can add ${__FileToString(file.json,,myVar)} and variable myVar,
and how exactly must be set FileToString and myVar in Thread group, as what of type test plan?
how improve exactly?
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
in attachmnent I show, what I set this
enter image description here
enter image description here
what is wrong and how is the easiest way to improve this?
I'm not understand exactly, how I can add ${__FileToString(file.json,,myVar)} and variable myVar,
and how exactly must be set FileToString and myVar in Thread group, as what of type test plan?
how improve exactly?
New contributor
in attachmnent I show, what I set this
enter image description here
enter image description here
what is wrong and how is the easiest way to improve this?
I'm not understand exactly, how I can add ${__FileToString(file.json,,myVar)} and variable myVar,
and how exactly must be set FileToString and myVar in Thread group, as what of type test plan?
how improve exactly?
New contributor
edited 2 days ago
New contributor
answered 2 days ago
annkol
11
11
New contributor
New contributor
add a comment |
add a comment |
up vote
0
down vote
OK I set this, and in View Result Three in ERR in Response Body is correctly return body json, so I dont know, why is **ERR* name
It is correctly? and if not, why is wrong and how I can improve this?
New contributor
add a comment |
up vote
0
down vote
OK I set this, and in View Result Three in ERR in Response Body is correctly return body json, so I dont know, why is **ERR* name
It is correctly? and if not, why is wrong and how I can improve this?
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
OK I set this, and in View Result Three in ERR in Response Body is correctly return body json, so I dont know, why is **ERR* name
It is correctly? and if not, why is wrong and how I can improve this?
New contributor
OK I set this, and in View Result Three in ERR in Response Body is correctly return body json, so I dont know, why is **ERR* name
It is correctly? and if not, why is wrong and how I can improve this?
New contributor
edited 20 hours ago
New contributor
answered 2 days ago
annkol
11
11
New contributor
New contributor
add a comment |
add a comment |
annkol is a new contributor. Be nice, and check out our Code of Conduct.
annkol is a new contributor. Be nice, and check out our Code of Conduct.
annkol is a new contributor. Be nice, and check out our Code of Conduct.
annkol is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240841%2fjmeter-how-to-set-send-and-receiving-data-in-json-file-by-websocket%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
anyone help me?
– annkol
Nov 11 at 20:34