Background:
I want to confirm at the interface level whether the new application can be found after it is successfully added. I don’t think it’s troublesome to write a query interface alone, so I write the query interface into the tests of the new interface. I want to do the assertions of whether the new application can be queried after the new application is successful in the tests of the new interface. Code directly skip, the following first on the execution results.
Implementation results:
Summary:
my assertion failed, but when I checked the global variables set, I found that the global variables have been set successfully. But using pm.globals.get (“chartappname1”) when taking this value, the value taken out is inconsistent with what you see…. After checking the code repeatedly, no error was found. Finally, I consulted a senior. The senior told me that the global variable set in tests will take effect only after the interface is executed. I immediately understood that my assertion is executed during the interface execution. Therefore, the value I took when I made the assertion is not updated. As for why the corresponding value has been changed when I checked it Update, because even if my assertion fails, the interface completes the corresponding request.
Read More:
- [Solved] Opencv Compile Error: (CMake Error: The following variables are used in this project, but they are set to not)
- [Go] Testing when solving go test: warning: no tests to run
- [Go] Solve the empty interface interface{} cannot use (type []string) as type []interface {}
- [Solved] matlab error: try to write SCRIPT vl_sift is executed as a function
- [Solved] Failed assertion: line 3180 pos 12: ‘debugNeedsPaint‘: is not true
- ORA-24338 statement handle not executed [How to Solve]
- The @RestControllerAdvice annotation does not take effect in the Springboot project
- Error in Tensorflow using variables: List of Tensors when single Tensor expected
- [Solved] OpenCv5 error: (-215:Assertion failed) !_descriptors.empty() in function ‘add‘
- [Solved] Postman Error: Unsupported Media Type
- [PX4 Bug] make px4_sitl gazebo Error: CMake Error: The following variables are used in this project
- Springboot connects to the database error: testWhileIdle is true, validationQuery not set
- Kettle Flash Back Error:The graphical interface cannot be opened. There is an ETI installation problem
- postman CSRF verification failed [How to Solve]
- error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘cv::imshow‘
- postman Error:There was an error connecting to XXXX
- Qt Error: Debug Assertion Failed [How to Solve]
- [Solved] volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
- [Solved] validateNewTexture:89: failed assertion `BytesPerRow of a buffer-backed texture with pixelFormat