Auto test Polaris with Tencent/spring-cloud-tencent and Tencent/QTAF.
0. 启动 Polaris-server,详见北极星单机版安装
pip3 install qtaf
指定POLARIS_SERVER_ADDR为你的北极星server地址
详细配置说明见 QTAF 说明文档
配置文件中已为您默认指定了 polaris_test_case.polaris_initial_login_check 基础测试用例,用于检查初始密码登录。
export PYTHONPATH=$PYTHONPATH:`pwd`;echo $PYTHONPATH
5. 执行测试,详细配置见 QTAF 说明文档
python3 src/manage.py runtest src/polaris_test_case/polaris_dependency_init.py
python3 src/manage.py runtest src/polaris_test_case/polaris_initial_login_check.py [基础测试用例,用于检查初始密码登录。]
python3 src/manage.py runtest --config-file src/runtest_config.json
.spring-cloud-tencent-demo
├── 2020
├── 2021
.
├── discovery-callee-service-1.11.0-2021.0.6-SNAPSHOT.jar
├── discovery-caller-service-1.11.0-2021.0.6-SNAPSHOT.jar
├── polaris-circuitbreaker-callee-service-1.11.0-2021.0.6-SNAPSHOT.jar
├── polaris-circuitbreaker-callee-service2-1.11.0-2021.0.6-SNAPSHOT.jar
├── polaris-circuitbreaker-feign-example-1.11.0-2021.0.6-SNAPSHOT.jar
├── polaris-config-example-1.11.0-2021.0.6-SNAPSHOT.jar
├── ratelimit-callee-service-1.11.0-2021.0.6-SNAPSHOT.jar
├── router-callee-service1-1.11.0-2021.0.6-SNAPSHOT.jar
├── router-callee-service2-1.11.0-2021.0.6-SNAPSHOT.jar
├── router-caller-service-1.11.0-2021.0.6-SNAPSHOT.jar
└── spring-cloud-tencent【若当前目录下未检测到对应jar包,则polari-test会即时编译。】
└── 2022
polaris-discovery-example
polaris-config-example
polaris-circuitbreaker-example
polaris-ratelimit-example
polaris-router-example