Tuesday, August 25, 2020
Monday, August 24, 2020
JMeter max user limitation
https://www.blazemeter.com/blog/what%E2%80%99s-the-max-number-of-users-you-can-test-on-jmeter
In conclusion, we can say that you can simulate up to 10,000 users on a JMeter load test even on a regular laptop. This depends on following 4 simple rules:
- Use JMeter listeners for debugging purposes only
- Run JMeter performance tests in non-GUI mode
- Increase JMeter heap space to generate a larger load
- Use LAN instead of a Wi-Fi connection when running a load test
As you can see, the answer to the question ‘What’s the maximum number of users you can test on JMeter?’ varies. It depends on many factors: test complexity, script running method, internet and machine capabilities and so forth.
I have found the user limit on my local laptop is 8000-9000 users. But what if you need more? There are options to do that:
1. JMeter enables running scripts in distributed mode by using a few slave machines with your own main one, and then combining and outputting the results. With this method you can scripts horizontally without any limitations except for the number of slave machines you allocate for tests.
Saturday, August 22, 2020
Postman tool API testing All
Postman tutorial:
https://www.softwaretestingmaterial.com/postman-tutorial/
Postman assertion:
https://learning.postman.com/docs/writing-scripts/script-references/test-examples/
Pre-requisite script
var random_number1=_.random(1, 100);
var core_Url=pm.environment.get("baseUrl");
var token="Bearer "+pm.environment.get("token") ;
console.log(tok);
const echoPostRequest = {
url: core_Url+'/api/bookstore',
method: 'POST',
header: {
'content-type':'application/json',
'Authorization':token
},
Authorization:tok ,
body: {
mode: 'application/json',
raw: JSON.stringify
({
"code": "Postman updated"+random_number1,
"name": "API Postman"+random_number1,
"description": "ADMT some deee ",
"sla": "5",
"enabled": true,
"metadata": [],
"serviceAccess": ["Public", "Commercial" ],
"requiredDocuments": []
})
}
};
pm.sendRequest(echoPostRequest, function (err, res) {
console.log("new");
console.log(err);
console.log(res);
//console.log(err ? err : res.json());
//const dataresponse= res.json();
//pm.environment.set("ServiceFor_update",dataresponse.data.id);
});
YouTube:
Raghav pal link
https://www.youtube.com/playlist?list=PLhW3qG5bs-L-oT0GenwPLcJAPD_SiFK3C
Node js Newman command line arguments
newman run collection.json -environment enviornment.json --globals global.json
Passing environment variables in cmd prompt
https://github.com/postmanlabs/newman/blob/develop/README.md#command-line-options
newman run <collection file> -e <environment file>
https://stackoverflow.com/questions/50843024/postman-collection-is-passing-in-postman-runner-but-not-its-failing-in-command
https://learning.postman.com/docs/running-collections/using-newman-cli/command-line-integration-with-newman/
How to run multiple collection in newman:
https://community.postman.com/t/required-to-run-multiple-collection-through-newman/10792/5
https://www.npmjs.com/package/newman-reporter-htmlextra
npm install -g newman-reporter-htmlextra
newman run collection.json -r htmlextra
Exact Steps:
How to run multiple collection in newman:
https://community.postman.com/t/required-to-run-multiple-collection-through-newman/10792/5
https://www.npmjs.com/package/newman-reporter-htmlextra
npm install -g newman-reporter-htmlextra
newman run collection.json -r htmlextra
Exact Steps:
2. Install
newman plugin
3. Install
html extra reporter plugin
Run Collection
Tuesday, August 18, 2020
Monday, August 17, 2020
Wednesday, August 12, 2020
Delete files with wildcards in the folder command prompt
pushd C:\Project\newfolder
DEL /Q /F /S "selenium-screenshot*.png"
DEL /Q /F /S "selenium-screenshot*.png"
Subscribe to:
Posts (Atom)
JMeter Simple Controller
Simple Controller is just a container for user request.
-
We can convert in 2 ways. 1 . online tool http://editor.swagger.io/#/ 2. Go to https://swagger.io/docs/open-source-tools/swagger-c...
-
to invoke Notepad on Windows and open the JMeter readme in it, configure the OS Process Sampler as the following: Command: notepad....
-
BeanShell PreProcessor to the sampler import org.apache.jmeter.protocol.http.control.Header; sampler.getHeaderManager().removeHeaderN...