How to write the self-test script?

PHP business interface, you need to write a detection script. Executing the script in the monitoring system can self-check, but the parameters of the interface are not fixed. How to deal with this generally? for example, the interface of an order, the ID, order status is in A state, the program can be finished, the order status is in B state, and the program is stopped in the middle of the program. How to deal with such an interface?

Mar.17,2021
Menu