1.2.1 • Published 1 year ago

dubbotest v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Document

Install

Please run follow command in Windows GitBash or Linux. Can't use windows Cmd or PowerShell.

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

    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

    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

    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"
        }
    }'