Recording a script development jmeter lack utf-8 to blame

Background: The need to simulate the balance of payment, and release large quantities, I think of jmeter. Is a few simple interface, I think is very simple, get started, I did not expect the final penis, causing me to search for a long reason.

Operation: The script I wrote:

Request content encoding default value is empty I also, at that time I have been reminded account does not exist or wrong, I was forced to look ignorant.

Troubleshooting tips:

  1. Use postman, exactly the same request, the request was successful; this is my ignorant force, why this can
  2. Then I went back to jmeter, open eads log and found that some Chinese compiled, are? ?
  3. I feel I might be not forget to add utf-8, I would add, it really successful, then finally I spit blood
  4. postman can compile recognize many formats, jmeter not, so use jmeter must add utf-8 inside request the default value, not because some can not, just ignore it, or else suspected poor life,

Summary: This is a small problem, but also caused me to reflect, to see why, we must look at the log; secondly more contrast, to develop good habits

 

Guess you like

Origin www.cnblogs.com/Slowfish/p/11240608.html