UNPKG

dubbotest

Version:

Please run follow command in Windows GitBash or Linux. Can't use windows Cmd or PowerShell. ```shell npm install -g dubbotest dubbotest ```

64 lines (55 loc) 1.74 kB
# Document ## Install Please run follow command in Windows GitBash or Linux. Can't use windows Cmd or PowerShell. ```shell npm install -g dubbotest dubbotest ``` ## Description dubbotest make you use http method invoke dubbo service, and use postman build http request to test dubbo service. ## Param Explain - host: dubbo host - port: dubbo port - service: dubbo service name - method: dubbo service method - param: dubbo service method param ## Invoke Demo 1. One param ```shell curl --location --request GET 'http://localhost:3000/api' \ --header 'Content-Type: application/json' \ --data-raw '{ "host": "192.168.26.243", "port": "20882", "service": "CbsQuickenCardService", "method": "listValidQuickenTimes", "param": "168880613011" }' ``` 2. Multi param ```shell curl --location --request GET 'http://localhost:3000/api' \ --header 'Content-Type: application/json' \ --data-raw '{ "host": "192.168.26.243", "port": "20882", "service": "CbsQuickenCardService", "method": "queryRightModuleGoodsUseInfo", "param": "AIQIYI,C832206290000160001" }' ``` 3. Json Param ```shell curl --location --request GET 'http://localhost:3000/api' \ --header 'Content-Type: application/json' \ --data-raw '{ "host": "192.168.26.243", "port": "20882", "service": "CbsQuickenCardService", "method": "queryQuickenCardGoodsConfig", "param": { "class": "com.smy.cbs.dto.quickenCard.QueryQuickenCardGoodsConfigReq", "cardType": "ZBANK_SY061" } }' ```