针对api服务,http、gRPC(暂时不支持)的自动化测试框架
- 无需进行程序开发,只需要编写配置文件
- 可以指定testcase之间的依赖关系
- 无依赖关系的testcase可以并发执行,执行速度更快
- 使用xpath提取变量书写方便
autotest --config-file=${CONFIG_FILE}
autotest --config-file=${CONFIG_FILE} --env-file=${ENV_FILE}
cd docker-compose
docker compose up -d
curl -X POST 'http://localhost:8080/api/books' \
--header 'Content-Type: application/json' \
--data '{"title": "book3_title", "author": "book3_author"}'
curl -X DELETE 'http://localhost:8080/api/books/1'
curl -X PUT 'localhost:8080/api/books/3' \
--header 'Content-Type: application/json' \
--data '{"title": "book3_title", "author": "book3_author-2"}'
curl 'http://localhost:8080/api/books'
make build
./autotest run -c=./config_files/autotest.yml -e=./config_files/.env.dev