Code Monkey home page Code Monkey logo

Comments (12)

Karthicsrv avatar Karthicsrv commented on September 16, 2024

Yes we are also facing the same issue

from jmeter-grpc-request.

NateTsg avatar NateTsg commented on September 16, 2024

@Karthicsrv you can use property values to set the metadata dynamically

from jmeter-grpc-request.

blindchaser avatar blindchaser commented on September 16, 2024

When I tried to add Metadata, I got:
Response code: 500
Response message: Exception: UNKNOWN

I'm not sure if I put the wrong format, do you have a working example for metadata here? thx

from jmeter-grpc-request.

huynhminhtan avatar huynhminhtan commented on September 16, 2024

Hi @blindchaser,

You can try again with format key1:value1,key2:value2 of metadata.
Everything will be fine.

from jmeter-grpc-request.

vidyabhushan40 avatar vidyabhushan40 commented on September 16, 2024

HI @huynhminhtan
I am also facing issue with metadata, I have already tried with several format but still it is not working and shows issue

Response code: 500
Response message: Exception: UNKNOWN

Below format I have tried with but none of them works for me. Please share format with example

authorization : h7Zd4eIXQ/BKiL9v5M/aY4JFfPp
"authorization" : "h7Zd4eIXQ/BKiL9v5M/aY4JFfPp"
{"authorization" : "h7Zd4eIXQ/BKiL9v5M/aY4JFfPp"}

from jmeter-grpc-request.

Ankit7327 avatar Ankit7327 commented on September 16, 2024

Hi @NateTsg @huynhminhtan

I am trying to pass variable value in GRPC metadata from CSV but its passing like ${varibaleName}. Its not replacing the string with actual value in csv.
Can you please provide your input on this

from jmeter-grpc-request.

NateTsg avatar NateTsg commented on September 16, 2024

@Ankit7327 I couldn't pass the variable it doesn't replace the variable .I used property in the form of

access_token:${_groovy(props.get("token" + ${__threadNum}))}

I iterate through the CSV and store it on the props using props.set("key", "value") then retrieve the value as shown above

from jmeter-grpc-request.

Ankit7327 avatar Ankit7327 commented on September 16, 2024

@NateTsg I tried as you suggested but its partially working in my case.
I am able to replace values in meta data but if I execute it for multiple iteration it takes the same value. Values in metadata not changing as per the thread
Can you please share any snippet or code for storing values in pros by iterating csv?

from jmeter-grpc-request.

NateTsg avatar NateTsg commented on September 16, 2024

@Ankit7327 Am store each variable with a separate thread key as follows so when you read the variable you get a different one for each thread

props.put("token_"+Thread.currentThread().getName().split("-")[1],vars.get("token"));

I store it on the props with a different thread number and get it with the thread number in the following code
access_token:${_groovy(props.get("token" + ${__threadNum}))}

from jmeter-grpc-request.

Ankit7327 avatar Ankit7327 commented on September 16, 2024

@NateTsg which sampler you have used for above code?

from jmeter-grpc-request.

Ankit7327 avatar Ankit7327 commented on September 16, 2024

@NateTsg @huynhminhtan
Query 1:-
I tried above solution, it worked properly with single iteration but while executing under load jmeter replacing blank values in parameter. Have you face this issue?
Query2:-
I tried to execute multiple request at a time. When I click on play button green dot appeared on upper right corner but users were not ramping up. There is only 1 second of ramp up is defined and test was schedule for 15 min.

Please help on this

from jmeter-grpc-request.

friouimeher1 avatar friouimeher1 commented on September 16, 2024

@vidyabhushan40

You can fix it with

Authorization:Bearer USER_TOKEN

from jmeter-grpc-request.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.