0

I need to test integration with 3rd party using OAuth 1.0.

I didn't found any working solution except OAuthSampler which mark as deprecated and it states:

Does not work with JMeter v3.2+.

In JMeter 3.1 Plugin Manager it's marked as deprecated,

Can I still use it in JMeter 3.1 and how? Is there a working solution for sending OAuth 1.0 requests?

Is the main problem of plugin is the use of deprecated Base64Encoder?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233

2 Answers2

0

Yes, you can use it in JMeter 3.1. The reason many plug-ins do not work with JMeter 3.2 are outlined in Incompatible changes section. Most important reasons are

  • Logging changes - this is the most popular reason for plug-ins to break. And looking at OAuthSampler, it seems the likely reason for this plug-in as well.
  • Java 8 version requirement. Could be a problem for some libs.

It's also not too hard to convert sampler to be 3.2 friendly (remove logging completely, or change it to use new standard methods), so you could do that from OAuthSampler source code. You can also use script solution described here

timbre timbre
  • 12,648
  • 10
  • 46
  • 77
0

OAuth has too many faces therefore I doubt the plugin has ever worked. The best way is reaching out to your application developers, if you will be lucky enough you will get a relevant OAuth client library and code snipped which will be producing the required token. If not - you will at least have Consumer Key and Consumer Secret which you can use for building up the proper OAuth login sequence and the necessary signature method (as OAuth requests can be signed using different algorithms)

See How to Run Performance Tests on OAuth Secured Apps with JMeter for more detailed explanation, approaches to bypass OAuth login challenges and code snippets.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133