Record method calls in one session for replaying in future test sessions?

前端 未结 9 1301
梦毁少年i
梦毁少年i 2020-12-23 14:21

I have a backend system which we use a third-party Java API to access from our own applications. I can access the system as a normal user along with other users, but I do no

9条回答
  •  不思量自难忘°
    2020-12-23 14:24

    // pseudocode
    class LogMethod {
       List parameters;
       String method;
       addCallTo(String method, List params):
           this.method = method;
           parameters = params;
       }
    }
    

    Have a list of LogMethods and call new LogMethod().addCallTo() before every call in your test method.

提交回复
热议问题