python分布式事务_GitHub - caisirius/test-lcn-dubbo: lcn 分布式事务自动化测试,集成多个场景...

说明

本项目是 lcn 分布式事务的自动化测试项目,集成了若干场景。

适用于dubbo + mybatis + mysql 的项目

被测试的工程源码:https://github.com/caisirius/tx-lcn.git

基于 https://github.com/codingapi/tx-lcn.git 做的修改版本

Test dependencies

Before running the tests, the following must be prepared.

python 安装

MySql 服务器

默认 localhost 3306

创建数据库 test 字符集 utf-8

新建3张表。

执行 SQL 见 db.sql

修改数据库 地址及 用户名密码:

修改 test-lcn-common/src/main/resources/common.properties

中的

jdbc.url=

jdbc.username=

jdbc.password=

TxManager

默认 127.0.0.1 修改地址需要改各个子应用的 tx.properties

url=http://127.0.0.1:7000/tx/manager/

各个模块的 TxManager需要保持一致

启动 tx-manager。

上面的准备工作完成后,便可以执行测试用例了

执行测试

You can run any single test by calling

python run-tests.py

Or you can run any combination of tests by calling

python run-tests.py ...

Run the all test suite with

python run-tests.py

testname is the Class Name of TestClass

TestClass name must ends with "Test"

options:

--help, -help, -?: print help

-skippkg : 不执行 mvn package

Zookeeper(可选)

本测试默认使用广播作为注册中心

若要使用zk

修改test-lcn-common/src/main/resources/common.properties

中的

dubbo.registry.address=

的值为 zookeeper://xxxx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值