测试 MSI 安装的最佳实践
我当前工作地点的 QA 团队使用定制工具来测试 MSI 安装。该工具使用 xml 文件来定义 MSI 中包含的文件/注册表项/服务/等。该工具还使用数据库在运行时检索文件版本信息。
每当构建产品的新版本时,数据库都会填充该构建的所有相关版本号。然后,QA 团队在各种虚拟机上安装 MSI,并运行该工具,该工具将验证 xml 文件中定义的所有项目是否存在,并验证相关版本号是否与数据库中定义的版本号匹配。
当然,这会带来维护自定义工具的开销。我尝试在谷歌上搜索有关如何使 MSI 测试过程快速可靠的想法,但我的搜索结果总是空的。那么如何测试 MSI 安装呢?
The QA team at my current place of employment uses a custom built tool to test MSI installations. The tool uses xml files to define the files/registry entries/services/etc that are included in the MSI. The tool also uses a database to retrieve the file version information at run time.
Whenever a new version of the product is built, the database is populated with all the relevant version numbers for the build. The QA team then installs the MSI on various virtual machines, and runs the tool, which will go and verify that all items defined in the xml files exist, and also verifies that relevant version numbers match those defined in the database.
Of course, this comes with the overhead of having to maintain the custom tool. I've tried googling for ideas on how to make the process of testing an MSI fast and reliable, but my searches always come up empty. So how do you go about testing an MSI installation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当运行
Msiexec /i setup.msi /qn
安装最新版本时,通过 Jenkins 将工件复制到 QA 框。Via Jenkins to copy the artifacts to a QA box when it runs
Msiexec /i setup.msi /qn
to install the latest version.