How to run Load Test without run duration - visual-studio-2012

Can we run the load test irrespective of time duration, for example, if i am running tests for 25 users then test will automatically stops, once all the users finished their scripts. please help on this ?

Set the Use Test Iterations property to True and Test Iterations to 25.
The first property will overide the test duration property and second will force load test to execute 25 total tests. Since you have 25 virtual users in your test it will share them to your users and so each one will execute one test.
Check here for mor details:
Load Test Run Setting Properties - Test Iterations Properties
Test iteration setting in loadtest using vs 2010

Related

Azure DevOps Pipeline Test results contain Duplicate Test Cases

If I go to Test results screen after run of my pipeline, it is showing each test case from Java/Maven/TestNG automated test project duplicated. One instance of each test case shows blank for machine name and the duplicate of that shows a machine name.
Run 1000122 - JUnit_TestResults_3662
There are several possibilities. First, if you added multiple configurations to a test plan, if so, the tests cases will be repeated in the plan with the each of the configurations you have assigned.
Another possibility is that when you passed parameters to the test method, did you use multiple parameters, so the test method was executed two times.
The information you provided is not sufficient. Can you share the code or screenshots of your Test Samples?

Agregate execution results using Cucumber

Using automation testing running Cucumber through Jenkins, I am able to get the results for execution, however I would need to accumulate the total results, any idea or tool that could allow me to aggregate the results by day, week, month,...

Specflow parallel execution of categories [Tags]

I have about 6000 specflow [version 1.9.0.77] tests and those tests are split across 10 categories [tags], roughly 600 test cases per categories and takes about an hour to complete. Currently I’m using Nunit 2.6.4 to execute the tests [executing sequentially] and generating the Specflow flow report out of Nunit test report xml.
I’m planning to move the sequential execution model to parallel execution to reduce the test execution time. There are no static references, no feature or scenario context and test data are unique to test case.
I explored Nunit 3.5 with Specflow 2.0 but couldn’t find a solution to run the tests parallel through categories or by tags. Every time it runs sequentially.
I followed the page http://www.specflow.org/documentation/Parallel-Execution/ to setup parallel execution but didn’t worked for me.
Any thoughts?
Two things comes to mind that might go wrong that you don't really mention:
To run in parallel, SpecFlow runs Features in parallel. So it doesn't matter how many tags (categories) you use if the are all in the same feature file.
Another error source is that to run parallel tests you need at least two processors on the machine running the tests. And if you have a lot of things running, consuming processor power, the number of available processors will decrease to 1 which equal sequential execution of tests.

JMeter reports are different in Jenkins

I have a JMeter test that has two thread groups. The first thread group goes out and gets auth and audit tokens. The second requires the tokens to test the APIs on which I'm interested in gathering performance data. I have Listeners set up as children of the samplers in the second thread group only. Running JMeter I get the results I want. But when I execute the same test from Jenkins, I get results from the both of the thread groups. I don't want the results from the first thread group. They clutter up my graphs and since there is only one execution of each they fluctuate, performance wise, enough to trigger my unstable/failed percentages routinely. Is there a way to get Jenkins to report on only the listeners/samplers I want? Do I have to run one test to get the tokens and another to test? If so, how do I pass the tokens from one test to the other?
You can execute 2 jenkins jobs:
First job write to file the tokens using BeanShell/JSR223 PostProcessor
Second job read the tokens from file using CSV Data Set Config

JMeter count samplers in thread , passed samplers, failed samplers

I am trying to do functional testing with JMeter for a Web service. I am trying to build a tractability metrics using JMeter itself for which I need the count of the samplers in a thread, no of passed samplers, failed samplers in a thread.
Is there any way to collect no of the samplers, failed or passed samplers in a thread?
Any help is much appreciated.
Thanks
By adding Aggregate Report listener to your test, you will be able to get the number of passed and failed requests details. Below is the purpose of aggregate report.
The aggregate report creates a table row for each differently named
request in your test. For each request, it totals the response
information and provides request count, min, max, average, error rate,
approximate throughput (request/second) and Kilobytes per second
throughput. Once the test is done, the throughput is the actual
through for the duration of the entire test.
Also, you can leverage View Results Tree, View Results in Table and Debug Sampler to debug your samplers.
To enable functional test mode in JMeter, click on the Test Plan and then check Functional Test Mode check box as shown below.

Resources