Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

测试如何可靠的重现? #3

Open
songjinghe opened this issue Sep 27, 2019 · 1 comment
Open

测试如何可靠的重现? #3

songjinghe opened this issue Sep 27, 2019 · 1 comment
Assignees

Comments

@songjinghe
Copy link
Collaborator

鉴于 #1 这样的不可重现测试结果的问题,需要一个可靠的方式来重现测试的结果。之所以不能重现的一个重要原因是有一些参数没有通过版本控制保存起来,而是通过类似于命令行的方式来输入,这就导致有些参数找不回去了。解决这个问题的方法应该是把不同机器上的所有测试参数都保存起来,这样只需要最简单的运行就可以了。为了实现这个功能,有两个办法,一个是直接在工作站上测试啥的。另一个是使用不同的配置机制,自动检测机器并应用相应的配置。

@songjinghe
Copy link
Collaborator Author

最基本的需求是记录所有的配置和代码,这可以通过把运行测试的脚本也加入到git中实现。这种方法遇到的问题是不同的机器需要不同的配置文件。另一种方法是在Java代码中显式的声明测试环境并在日志中记录环境。这样的话会好很多。

另外,运行测试的脚本也改成Java来写,这样就避开了不同系统环境(win或linux)导致的不一致问题。

@songjinghe songjinghe added this to the Performance Test 2019 milestone Oct 8, 2019
@songjinghe songjinghe self-assigned this Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant