AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / coding / 问题

Perguntas[jmeter](coding)

Martin Hope
Enock Prince
Asked: 2025-03-04 00:18:23 +0800 CST

Execução de teste baseada em TPS

  • 6

Tenho um requisito para executar um teste de carga baseado no TPS.

10 requests per second - 10 minutes
20 requests per second - 10 minutes
50 requests per second - 10 minutes
100 requests per second - 30 minutes

A duração total do teste deve ser de uma hora.

Tentei fazer isso usando o Ultimate thread group, o throughput controller e o throughput timer. Mas o design parece muito bagunçado e complicado.

Por favor, nos esclareça se temos algum grupo de threads específico para executar um teste de carga com base no TPS?

Desde já, obrigado..

jmeter
  • 1 respostas
  • 21 Views
Martin Hope
Kleifker
Asked: 2025-01-19 17:54:56 +0800 CST

Tópicos ativos ao longo do tempo vs. número de tópicos (usuários)

  • 6

Tenho a seguinte descrição de grupo de threads com 120 usuários, um tempo de inicialização de 60 segundos e o teste deve ser executado (adicionalmente?) por 120 segundos.

Grupo de Tópicos

Depois de executar o teste, eu queria ver meus threads ativos ao longo do tempo. Eu esperaria ter 120 threads após 60 segundos. No entanto, eu obtenho o seguinte gráfico:

Tópicos ativos ao longo do tempo

O que eu entendi errado?

jmeter
  • 2 respostas
  • 36 Views
Martin Hope
Raghav
Asked: 2024-11-03 12:48:14 +0800 CST

O temporizador de rendimento constante do JMeter não atinge o TPS desejado

  • 5

Tenho um plano de teste JMeter com um sampler fictício e um Constant Throughput Timer adicionado como seu filho. Quero atingir uma meta de 10 TPS, então defino o throughput para 600 amostras por minuto, Usuários - 10. No entanto, após executar o teste, esperava que ele atingisse 10 TPS, mas não está funcionando como esperado. Alguém pode me ajudar a identificar o que posso estar fazendo errado?

 <?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <boolProp name="TestPlan.tearDown_on_shutdown">false</boolProp>
      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
    </TestPlan>
    <hashTree>
      <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
        <collectionProp name="Arguments.arguments">
          <elementProp name="TPM_TO_ACHIEVE" elementType="Argument">
            <stringProp name="Argument.name">TPM_TO_ACHIEVE</stringProp>
            <stringProp name="Argument.value">${__P(TPM_TO_ACHIEVE,600.0)}</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="TOTALDURATION" elementType="Argument">
            <stringProp name="Argument.name">TOTALDURATION</stringProp>
            <stringProp name="Argument.value">${__P(sz_duration,60)}</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="API_Invoked" elementType="Argument">
            <stringProp name="Argument.name">API_Invoked</stringProp>
            <stringProp name="Argument.value">true</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
        </collectionProp>
      </Arguments>
      <hashTree/>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group">
        <intProp name="ThreadGroup.num_threads">10</intProp>
        <intProp name="ThreadGroup.ramp_time">10</intProp>
        <stringProp name="ThreadGroup.duration">${TOTALDURATION}</stringProp>
        <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
        <boolProp name="ThreadGroup.scheduler">true</boolProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
          <intProp name="LoopController.loops">-1</intProp>
          <boolProp name="LoopController.continue_forever">false</boolProp>
        </elementProp>
      </ThreadGroup>
      <hashTree>
        <IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Controller">
          <boolProp name="IfController.evaluateAll">false</boolProp>
          <boolProp name="IfController.useExpression">false</boolProp>
          <stringProp name="IfController.condition">&quot;${API_Invoked}&quot;==&quot;true&quot;</stringProp>
        </IfController>
        <hashTree>
          <kg.apc.jmeter.samplers.DummySampler guiclass="kg.apc.jmeter.samplers.DummySamplerGui" testclass="kg.apc.jmeter.samplers.DummySampler" testname="jp@gc - Dummy Sampler">
            <boolProp name="WAITING">true</boolProp>
            <boolProp name="SUCCESFULL">true</boolProp>
            <stringProp name="RESPONSE_CODE">200</stringProp>
            <stringProp name="RESPONSE_MESSAGE">OK</stringProp>
            <stringProp name="REQUEST_DATA">Dummy Sampler used to simulate requests and responses
without actual network activity. This helps debugging tests.</stringProp>
            <stringProp name="RESPONSE_DATA">Dummy Sampler used to simulate requests and responses
without actual network activity. This helps debugging tests.</stringProp>
            <stringProp name="RESPONSE_TIME">${__Random(50,500)}</stringProp>
            <stringProp name="LATENCY">${__Random(1,50)}</stringProp>
            <stringProp name="CONNECT">${__Random(1,5)}</stringProp>
            <stringProp name="URL"></stringProp>
            <stringProp name="RESULT_CLASS">org.apache.jmeter.samplers.SampleResult</stringProp>
          </kg.apc.jmeter.samplers.DummySampler>
          <hashTree>
            <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="Constant Throughput Timer">
              <stringProp name="throughput">${TPM_TO_ACHIEVE}</stringProp>
              <intProp name="calcMode">2</intProp>
            </ConstantThroughputTimer>
            <hashTree/>
          </hashTree>
        </hashTree>
        <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
          <boolProp name="ResultCollector.error_logging">true</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
        <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Transactions per Second">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
          <longProp name="interval_grouping">1000</longProp>
          <boolProp name="graph_aggregated">false</boolProp>
          <stringProp name="include_sample_labels"></stringProp>
          <stringProp name="exclude_sample_labels"></stringProp>
          <stringProp name="start_offset"></stringProp>
          <stringProp name="end_offset"></stringProp>
          <boolProp name="include_checkbox_state">false</boolProp>
          <boolProp name="exclude_checkbox_state">false</boolProp>
        </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
        <hashTree/>
        <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>

insira a descrição da imagem aqui

jmeter
  • 1 respostas
  • 19 Views
Martin Hope
Peter
Asked: 2024-09-12 17:34:54 +0800 CST

Precisa disparar 10.000 solicitações de uma só vez, sem qualquer RampUp ou atraso no Jmeter

  • 3

Eu tenho um cenário como este,

Login request

Request-1

Request-2

Request-3

Agora, quero executar esse cenário com 10.000 usuários dessa forma: primeiro, todos os 10.000 usuários são alcançados e, Login requestem seguida, todos os 10.000 usuários são atingidos Requests-1, 2 & 3de uma vez (significa que todas as 10.000 solicitações são acionadas ao mesmo tempo de uma só vez).

Alguém pode compartilhar a configuração do Jmeter para este cenário? Obrigado :-)

jmeter
  • 1 respostas
  • 16 Views
Martin Hope
user3111115
Asked: 2024-08-05 18:31:06 +0800 CST

Jmeter de solicitação HTTP assíncrona

  • 5

Iniciar solicitação HTTP 1: o grupo de threads 1 começa a enviar a solicitação 1 a uma taxa de 0,3 TPS.

Usando o sinal do pré-processador de comunicação entre threads Próxima etapa: Depois que uma solicitação 1 é finalizada com sucesso, um sinal é enviado ao grupo de threads 2.

Simular solicitação HTTP 2: Thread Group 2, após receber o sinal, aguarda 10 segundos e envia a solicitação 2

Atualmente a saída do plano de teste não envia Solicitação HTTP 2 para cada Solicitação HTTP 1

insira a descrição da imagem aqui

jmeter
  • 1 respostas
  • 27 Views
Martin Hope
SanjayDVG
Asked: 2024-08-01 14:01:51 +0800 CST

A execução do script JMeter não é concluída mesmo após o tempo limite

  • 5

Estou executando o script JMeter na instância AWS EC2 para 4.000 usuários virtuais com 60 segundos como RampUp. Adicionei algumas solicitações dentro do Runtime Controller e dei 20 minutos como tempo limite para o Runtime Controller. Estou executando na máquina EC2 que tem 248 GB. Percebi que a execução não será concluída mesmo após o tempo limite. Percebi que poucos usuários virtuais se desconectaram ou concluíram a execução. Mas para poucos a execução não está completa. Além disso, não vejo as atualizações no console. Estou usando o comando abaixo para executar, JVM_ARGS="-Xms1g -Xmx200g" ./jmeter -n -t Load-Test-01.jmx -l TestResults4000UsersMachine1.csv

Estou cometendo algum erro aqui?

Em anexo está a captura de tela do console, insira a descrição da imagem aqui

jmeter
  • 1 respostas
  • 15 Views
Martin Hope
Luctia
Asked: 2024-05-29 18:57:26 +0800 CST

Executando dois Ultimate Thread Groups consecutivamente

  • 5

Listado abaixo está um .jmxarquivo que contém um plano de teste com dois Ultimate Thread Groups, ambos com um ouvinte de transações por segundo e um amostrador e ambos os amostradores com um temporizador de modelagem de taxa de transferência.

O plano de teste está configurado para executar todos os grupos de threads consecutivamente, mas quando executo o plano de teste, apenas o primeiro UTG é executado. Quando desativo o primeiro, o segundo é executado. Quando defino o plano de teste para executar os UTGs em paralelo, ambos funcionam bem.

Os UTGs não suportam corridas consecutivas? Estou fazendo algo errado?

<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan">
      <stringProp name="TestPlan.comments">This example test plan demonstrates 
how Throughput Shaping Timer is used
to limit Requests per Second 
to desired shape.</stringProp>
      <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
    </TestPlan>
    <hashTree>
      <kg.apc.jmeter.threads.UltimateThreadGroup guiclass="kg.apc.jmeter.threads.UltimateThreadGroupGui" testclass="kg.apc.jmeter.threads.UltimateThreadGroup" testname="jp@gc - Ultimate Thread Group">
        <collectionProp name="ultimatethreadgroupdata">
          <collectionProp name="-167714363">
            <stringProp name="1691">50</stringProp>
            <stringProp name="0">0</stringProp>
            <stringProp name="48">0</stringProp>
            <stringProp name="1572">15</stringProp>
            <stringProp name="53">5</stringProp>
          </collectionProp>
        </collectionProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
          <intProp name="LoopController.loops">-1</intProp>
          <boolProp name="LoopController.continue_forever">false</boolProp>
        </elementProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
      </kg.apc.jmeter.threads.UltimateThreadGroup>
      <hashTree>
        <kg.apc.jmeter.samplers.DummySampler guiclass="kg.apc.jmeter.samplers.DummySamplerGui" testclass="kg.apc.jmeter.samplers.DummySampler" testname="jp@gc - Dummy Sampler">
          <boolProp name="SUCCESFULL">true</boolProp>
          <stringProp name="RESPONSE_CODE">200</stringProp>
          <stringProp name="RESPONSE_MESSAGE">OK</stringProp>
          <stringProp name="RESPONSE_DATA">Dummy Sampler used to simulate requests and responses
without actual network activity. This helps debugging tests.</stringProp>
          <stringProp name="RESPONSE_TIME">${__Random(1,10)}</stringProp>
          <stringProp name="TestPlan.comments">Pretty fast response time gives us huge possible RPS rate</stringProp>
          <boolProp name="WAITING">false</boolProp>
          <stringProp name="REQUEST_DATA"></stringProp>
          <stringProp name="LATENCY"></stringProp>
          <stringProp name="CONNECT"></stringProp>
          <stringProp name="URL"></stringProp>
          <stringProp name="RESULT_CLASS">org.apache.jmeter.samplers.SampleResult</stringProp>
        </kg.apc.jmeter.samplers.DummySampler>
        <hashTree>
          <kg.apc.jmeter.timers.VariableThroughputTimer guiclass="kg.apc.jmeter.timers.VariableThroughputTimerGui" testclass="kg.apc.jmeter.timers.VariableThroughputTimer" testname="jp@gc - Throughput Shaping Timer">
            <collectionProp name="load_profile">
              <collectionProp name="1914237040">
                <stringProp name="49">1</stringProp>
                <stringProp name="1000">1000</stringProp>
                <stringProp name="1567">10</stringProp>
              </collectionProp>
              <collectionProp name="394057850">
                <stringProp name="1507423">1000</stringProp>
                <stringProp name="49">1</stringProp>
                <stringProp name="53">5</stringProp>
              </collectionProp>
            </collectionProp>
            <stringProp name="TestPlan.comments">Table below sets request rate shcedule ant preview graph instantly shows effect of changes.</stringProp>
          </kg.apc.jmeter.timers.VariableThroughputTimer>
          <hashTree/>
        </hashTree>
        <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Transactions per Second">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
          <longProp name="interval_grouping">1000</longProp>
          <boolProp name="graph_aggregated">false</boolProp>
          <stringProp name="include_sample_labels"></stringProp>
          <stringProp name="exclude_sample_labels"></stringProp>
          <stringProp name="start_offset"></stringProp>
          <stringProp name="end_offset"></stringProp>
          <boolProp name="include_checkbox_state">false</boolProp>
          <boolProp name="exclude_checkbox_state">false</boolProp>
        </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
        <hashTree/>
      </hashTree>
      <kg.apc.jmeter.threads.UltimateThreadGroup guiclass="kg.apc.jmeter.threads.UltimateThreadGroupGui" testclass="kg.apc.jmeter.threads.UltimateThreadGroup" testname="jp@gc - Ultimate Thread Group">
        <collectionProp name="ultimatethreadgroupdata">
          <collectionProp name="-167631597">
            <stringProp name="1691">50</stringProp>
            <stringProp name="0">0</stringProp>
            <stringProp name="48">0</stringProp>
            <stringProp name="1572">15</stringProp>
            <stringProp name="10">10</stringProp>
          </collectionProp>
        </collectionProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
          <intProp name="LoopController.loops">-1</intProp>
          <boolProp name="LoopController.continue_forever">false</boolProp>
        </elementProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
      </kg.apc.jmeter.threads.UltimateThreadGroup>
      <hashTree>
        <kg.apc.jmeter.samplers.DummySampler guiclass="kg.apc.jmeter.samplers.DummySamplerGui" testclass="kg.apc.jmeter.samplers.DummySampler" testname="jp@gc - Dummy Sampler">
          <boolProp name="SUCCESFULL">true</boolProp>
          <stringProp name="RESPONSE_CODE">200</stringProp>
          <stringProp name="RESPONSE_MESSAGE">OK</stringProp>
          <stringProp name="RESPONSE_DATA">Dummy Sampler used to simulate requests and responses
without actual network activity. This helps debugging tests.</stringProp>
          <stringProp name="RESPONSE_TIME">${__Random(1,10)}</stringProp>
          <stringProp name="TestPlan.comments">Pretty fast response time gives us huge possible RPS rate</stringProp>
          <boolProp name="WAITING">false</boolProp>
          <stringProp name="REQUEST_DATA"></stringProp>
          <stringProp name="LATENCY"></stringProp>
          <stringProp name="CONNECT"></stringProp>
          <stringProp name="URL"></stringProp>
          <stringProp name="RESULT_CLASS">org.apache.jmeter.samplers.SampleResult</stringProp>
        </kg.apc.jmeter.samplers.DummySampler>
        <hashTree>
          <kg.apc.jmeter.timers.VariableThroughputTimer guiclass="kg.apc.jmeter.timers.VariableThroughputTimerGui" testclass="kg.apc.jmeter.timers.VariableThroughputTimer" testname="jp@gc - Throughput Shaping Timer">
            <collectionProp name="load_profile">
              <collectionProp name="-136768949">
                <stringProp name="49">1</stringProp>
                <stringProp name="1537214">2000</stringProp>
                <stringProp name="1567">10</stringProp>
              </collectionProp>
              <collectionProp name="81940520">
                <stringProp name="1537214">2000</stringProp>
                <stringProp name="49">1</stringProp>
                <stringProp name="53">5</stringProp>
              </collectionProp>
            </collectionProp>
            <stringProp name="TestPlan.comments">Table below sets request rate shcedule ant preview graph instantly shows effect of changes.</stringProp>
          </kg.apc.jmeter.timers.VariableThroughputTimer>
          <hashTree/>
        </hashTree>
        <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Transactions per Second">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>false</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <threadCounts>true</threadCounts>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
          <longProp name="interval_grouping">1000</longProp>
          <boolProp name="graph_aggregated">false</boolProp>
          <stringProp name="include_sample_labels"></stringProp>
          <stringProp name="exclude_sample_labels"></stringProp>
          <stringProp name="start_offset"></stringProp>
          <stringProp name="end_offset"></stringProp>
          <boolProp name="include_checkbox_state">false</boolProp>
          <boolProp name="exclude_checkbox_state">false</boolProp>
        </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
        <hashTree/>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>
jmeter
  • 1 respostas
  • 14 Views
Martin Hope
Swarup
Asked: 2024-05-29 15:50:47 +0800 CST

Se a desmontagem do grupo de threads sempre for executada, por que a opção está presente como uma caixa de seleção no Plano de teste no Jmeter

  • 5

Vejo esta opção Executar desmontagem de grupos de threads após o encerramento dos threads principais. Mas se eu adicionar um grupo de threads desmontáveis ​​em meu plano de teste e configurar uma solicitação HTTP simples, vejo que isso sempre é executado, independentemente de a caixa de seleção estar marcada ou não no plano de teste. Então, qual é o propósito desta caixa de seleção no Plano de Teste. Alguém também pode esclarecer se o grupo de threads desmontados sempre será executado se estiver presente no plano de teste ou não. Estou recebendo respostas contraditórias de vários blogs.

jmeter
  • 1 respostas
  • 10 Views
Martin Hope
alex_us
Asked: 2024-05-07 22:33:14 +0800 CST

Como usar grupos Therad em ciclo no Jmeter?

  • 5

Tenho poucos elementos ThreadGroup no script Jmeter. E eu quero executá-lo um após o outro em ciclo infinito. Como eu posso fazer isso?

Add this for validation of stackoverflow
"information_for_calculation_period": {
             "is_alimony_received": false,
            "is_recipient_of_foreign_income": true,
            "is_under23_and_unscholarshipped_student": false,
            "is_recipient_of_educational_benefits": false,
            "is_served_military_service_by_conscription": false,
            "is_recipient_of_judges_retirement_benefit": false,
            "is_compensation_received_for_duties": false,
            "is_under_long_term_medical_treatment": true,
            "is_recipient_of_one_time_service_termination_benefit": false,
            "is_recipient_of_law_enforcement_pension": true, 
            "is_pregnant_family_member_during_income_period_or_application": false          
jmeter
  • 1 respostas
  • 6 Views
Martin Hope
Rakesh
Asked: 2024-03-30 16:14:46 +0800 CST

extraí alguns valores usando regex no pós-processador beanshell, agora preciso escolher um valor aleatório e armazená-lo em uma variável?

  • 5


import java.util.Random;
import java.util.regex.Pattern;
 import java.util.regex.Matcher;


String responseData = prev.getResponseDataAsString();
// log.info("the response data is : " + responseData);

Pattern pattern = Pattern.compile("<option value=\"(.+?)\">(.+?)</option>");
// log.info("pattern is : " + pattern);
Matcher matcher = pattern.matcher(responseData);
// log.info("matcher is :" + matcher);

while(matcher.find())
{
    log.info("the cities are : " + matcher.group(1));
    String extractedCity = matcher.group(1);
    log.info("the extracted city is : " + extractedCity);
    vars.put("Depart_city" , extractedCity);
}[log level output of the code](https://isstatic.askoverflow.dev/ANKbl.png)

consigo extrair os dados, mas não consigo escolher um valor aleatório do resultado e armazená-lo em uma variável jmeter

jmeter
  • 1 respostas
  • 20 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Reformatar números, inserindo separadores em posições fixas

    • 6 respostas
  • Marko Smith

    Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não?

    • 2 respostas
  • Marko Smith

    Problema com extensão desinstalada automaticamente do VScode (tema Material)

    • 2 respostas
  • Marko Smith

    Vue 3: Erro na criação "Identificador esperado, mas encontrado 'import'" [duplicado]

    • 1 respostas
  • Marko Smith

    Qual é o propósito de `enum class` com um tipo subjacente especificado, mas sem enumeradores?

    • 1 respostas
  • Marko Smith

    Como faço para corrigir um erro MODULE_NOT_FOUND para um módulo que não importei manualmente?

    • 6 respostas
  • Marko Smith

    `(expression, lvalue) = rvalue` é uma atribuição válida em C ou C++? Por que alguns compiladores aceitam/rejeitam isso?

    • 3 respostas
  • Marko Smith

    Um programa vazio que não faz nada em C++ precisa de um heap de 204 KB, mas não em C

    • 1 respostas
  • Marko Smith

    PowerBI atualmente quebrado com BigQuery: problema de driver Simba com atualização do Windows

    • 2 respostas
  • Marko Smith

    AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos

    • 1 respostas
  • Martin Hope
    Fantastic Mr Fox Somente o tipo copiável não é aceito na implementação std::vector do MSVC 2025-04-23 06:40:49 +0800 CST
  • Martin Hope
    Howard Hinnant Encontre o próximo dia da semana usando o cronógrafo 2025-04-21 08:30:25 +0800 CST
  • Martin Hope
    Fedor O inicializador de membro do construtor pode incluir a inicialização de outro membro? 2025-04-15 01:01:44 +0800 CST
  • Martin Hope
    Petr Filipský Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não? 2025-03-23 21:39:40 +0800 CST
  • Martin Hope
    Catskul O C++20 mudou para permitir a conversão de `type(&)[N]` de matriz de limites conhecidos para `type(&)[]` de matriz de limites desconhecidos? 2025-03-04 06:57:53 +0800 CST
  • Martin Hope
    Stefan Pochmann Como/por que {2,3,10} e {x,3,10} com x=2 são ordenados de forma diferente? 2025-01-13 23:24:07 +0800 CST
  • Martin Hope
    Chad Feller O ponto e vírgula agora é opcional em condicionais bash com [[ .. ]] na versão 5.2? 2024-10-21 05:50:33 +0800 CST
  • Martin Hope
    Wrench Por que um traço duplo (--) faz com que esta cláusula MariaDB seja avaliada como verdadeira? 2024-05-05 13:37:20 +0800 CST
  • Martin Hope
    Waket Zheng Por que `dict(id=1, **{'id': 2})` às vezes gera `KeyError: 'id'` em vez de um TypeError? 2024-05-04 14:19:19 +0800 CST
  • Martin Hope
    user924 AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos 2024-03-20 03:12:31 +0800 CST

Hot tag

python javascript c++ c# java typescript sql reactjs html

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve