Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

320
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda