Qaiser Wali
Qaiser Wali

Reputation: 358

Getting 401 Unauthorized with jmeter when moving test plan to a new machine

I am using Jmeter on Mac OSX and for some reason the same script which runs successfully on a windows based pc ends up not running on mac.

When looking at the server log, i get a 401 error, even though jmeter GUI shows everything ran fine.

Not sure how best to even describe the issue.

Upvotes: 0

Views: 424

Answers (1)

Dmitri T
Dmitri T

Reputation: 167992

  1. First of all make sure to have the same JMeter version (preferably latest) on both machines.
  2. Second check jmeter.log file - it normally contains enough troubleshooting information to get to the bottom of the issue or guess where the problem lives
  3. If you use external data files in i.e. CSV Data Set Config or __StringFromFile() make sure to use forward slashes / instead of backslashes / in paths.

    testdata/testfile.csv
    
  4. In addition to point 3 make sure to copy all the related data files or .jmx scripts or whatever
  5. If your test relies on any JMeter Plugins - make sure to install JMeter Plugins Manager, it will automatically detect missing components and suggest to download them

Going forward try to provide more information, i.e. screenshot of your test plan, server log file, View Results Tree listener output for request and response for problematic sampler, jmeter.log file, etc.

Upvotes: 1

Related Questions