Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

319
Visualizações
JMETER - Variable Header doens't be automated

I'm testing an API, and at some point, one function creates a TOKEN, and I need that token on HEADER for the next function to work. I search and tried everything but without success.

This is my environment
enter image description here

Here, under the POST CREATE MODEL I have:

Bean shell preprocessor
enter image description here

This is for the function Bearer

HTTP manager
enter image description here

This is my HTTP manager, where I need a token.

Here is the big token, it's because have a lot of bytes?
enter image description here

If I put a token manually, work, but I need that automated. And I can't do that. Someone can help this poor QA intern?

Ty guys <3

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You don't need the Beanshell PreProcessor (moreover since JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting), just HTTP Header Manager will be sufficient assuming that your EXTRACTOR Token really extracts the token, check your ${auth_token} variable value using Debug Sampler and View Results Tree listener combination

Just in case here's how I would use JSON Extractor:

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda