You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSample' object has no attribute 'post'
i tried to solve it myself and found that the value of self.java_wrapped_element when .header() is called is us.abstracta.jmeter.javadsl.http.DslHttpSampler but when .post() is called immediately after it, then the value changes to us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
but i am not good with classes so i couldn't find any solution for it
The text was updated successfully, but these errors were encountered:
i have been trying to send auth token and post data at the same time using this code
http_sampler = HttpSampler("sampler 1",url, timer,).header("Authorization", f"bearer {idToken}").post({"name":"abc"},ContentType.APPLICATION_JSON)
but it gives an error
AttributeError: 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSample' object has no attribute 'post'
i tried to solve it myself and found that the value of self.java_wrapped_element when .header() is called is us.abstracta.jmeter.javadsl.http.DslHttpSampler but when .post() is called immediately after it, then the value changes to us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
but i am not good with classes so i couldn't find any solution for it
The text was updated successfully, but these errors were encountered: