dubbotest

1.2.1 • Public • Published

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

Package Sidebar

Install

npm i dubbotest

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

8.04 kB

Total Files

5

Last publish

Collaborators

  • long150018