load-testing

Unable to evaluate EL while creating Gatling scenario

血红的双手。 提交于 2019-12-12 02:16:07
问题 I am creating scenario with repeat block. As I need index based request to be generated. def scnWithLoop() = scenario("scenarioName").repeat(counter, "counter") { exec (session => { val index: Integer = Integer.getInteger(session.attributes.get("counter").get.toString()); session.set("index", index) session }) exec( http("scenarioName") .post(contextPath) .headers(headers) .body(StringBody(getData("${index}".toInt))) .check(status.in(expectedCodes)) ).pause(20 seconds) } But this doesn't

facing JavaScript required error when running vsts webtest

随声附和 提交于 2019-12-12 01:56:14
问题 when running recorded webtest in VSTS 2010 ultimate facing JavaScript required error for many https requests, please help me to take it further for load testing. 回答1: Visual Studio's web tests send and receive HTTP(S) messages. They do not execute or have anything to do with JavaScript or any other "active" elements of the web pages. Any Javascript activity by the web pages must be simulated in the web test. Often web pages have HTML to display a message that Javascript is required. These web

How to spread VUsers across multiple test agents when running load test

浪子不回头ぞ 提交于 2019-12-12 01:37:53
问题 I'm trying to run a load test in visual studio 2015. I have 1 test controller with 3 test agents setup. I have set the weighting of the agents to 33 each as I would like to spread the userload evenly across them. When I run the test I see evidence that it tries log in with the same user on all 3 agents, and as the tests are running I'm observing that there is 1 successfull login and 2 failed / user, which I assume is happening because they all try to log in at once. How can I make sure that 1

Is there a way to automate Jmeter to run a number of testplans

主宰稳场 提交于 2019-12-11 23:56:01
问题 Is there a way to automate Jmeter to run a number of test-plans? Suppose I want to perform an experiment and run same test with single varying field one after the another, and reports saves for every test individually. For example: perform a number of tests by varying the ramp-up time so that I start it once and leave its for hours and comeback to see the whole experiment is performed. I read somewhere that ANT can be used. 回答1: I'd extract relevant variables to .properties files and execute

Is there any limit to the Number of Steps for Load Test in the SOAP UI free version?

送分小仙女□ 提交于 2019-12-11 23:26:23
问题 I am trying to perform the load Test from SOAPUI free version (5.2.1) . I have a Test case with 15 steps which have different Rest Requests. I have created a Load test for the same and when i run the load test, all the requests are not getting executed. Only first six request gets executed. I have tried using different strategy along with different varying thread counts and limits but the result is same. only first six requests gets executed till the limit ends. 回答1: Looking at your results I

Best way to use HttpClient to post a file in terms of effeciency

断了今生、忘了曾经 提交于 2019-12-11 20:25:47
问题 I have to build a fairly custom load testing tool, and because of this I don't want to use JMeter (lets assume for a moment that the level of customization cannot be done using jmeter). One import part of this load testing tool is sending a XML for to a API endpoing. How can I improve the below code to make this fast/efficient? private boolean PostErrorToApi() throws IOException { File xmlSample = new File("/path/to/file/sample.xml"); CloseableHttpClient httpClient = HttpClients.createDefault

JMeter Load Testing with heavy load

时光总嘲笑我的痴心妄想 提交于 2019-12-11 20:22:47
问题 I need to achieve 100K or 1Million Request per Second using JMeter. Is it possible to achieve this target. If so, what is the procedure to achieve. I am using custom plugin Throughput Shaping Timer. 回答1: Practically it is very near to impossible to achieve such amount of load with a cluster of normal machines( or less powerful server class machines). There are 2 options possible, Distributed JMeter environment (with maximum tuned instances) with 100's or 1000's of machines in cluster Drawback

Load testing in Visual Studio. How number of simultaneous users is implemented in Visual Studio?

北慕城南 提交于 2019-12-11 18:11:36
问题 Could you please explain, how load or stress test is released inside Visual Studio when the test is oriented on the number of simultaneous users? Example: Step user count: 0 Initial user count: 2. Run duration and step duration: does not important really because user count is always the same (2), let it be 30 seconds for run duration and 30 seconds for step duration. It is a kind bit weird configuration for the test but it helps to show the main idea of my question. Web serivce is able to

Change LoadTest setup during run

♀尐吖头ヾ 提交于 2019-12-11 15:34:14
问题 I am trying to figure out how to change LoadTest setup during it's run. E.g. I need to run 5 tests included in Loadtest mix during 90 minutes(25 simultaneous users), than add one more test to the mix, which will run 25 simultaneous user for next 90 minutes. I know that with loadtest plugins we can change some properties, but still didn't find a way to make it work. Any help would be greatly appreciated 回答1: I believe that the tests in the test mix of a scenario cannot be altered at run time.

Web Socket messages not all being received

你。 提交于 2019-12-11 14:29:29
问题 I have implemented a web socket server using Alchemy web sockets, and am now trying to stress test it. I have written the following method in C# to create numerous clients to connect to the server and send some data: private void TestWebSocket() { int clients = 10; long messages = 10000; long messagesSent = 0; String host = "127.0.0.1"; String port = "11005"; WSclient[] clientArr = new WSclient[clients]; for (int i = 0; i < clientArr.Length; i++) { clientArr[i] = new WSclient(host, port); }