# dubbotest

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

Latest version **1.2.1** (published 2023-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install dubbotest
pnpm add dubbotest
yarn add dubbotest
bun add dubbotest
```

Provides the command `dubbotest`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2023-02-22 |
| First published | 2022-10-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wanglong |
| Maintainers | long150018 |
| Keywords | dubbo, http, dubbo test, dubbo invoke |

## Links

- npm: https://www.npmjs.com/package/dubbotest
- npm.io page: https://npm.io/package/dubbotest

## Dependencies (4)

- [express](https://npm.io/package/express.md) ^4.18.2
- [zookeeper](https://npm.io/package/zookeeper.md) ^5.6.0
- [telnet-client](https://npm.io/package/telnet-client.md) ^2.0.4
- [node-zookeeper-client](https://npm.io/package/node-zookeeper-client.md) ^1.1.3

## Recent versions

- 1.2.1 (latest) — 2023-02-22
- 1.2.0 — 2023-02-22
- 1.1.1 — 2022-12-22
- 1.1.0 — 2022-12-22
- 1.0.11 — 2022-11-16
- 1.0.10 — 2022-10-25

## README

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

---
_Source: https://npm.io/package/dubbotest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
