如何自动化安装测试 [英] How to automate installer testing

查看:178
本文介绍了如何自动化安装测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果任何人有自动化的各种机器安装的具有潜在不同的硬件/软件配置文件的测试,并通过指定不同的选项来安装程序的最佳做法。这个想法是,我可以写code设置一台机器,运行安装程序之类的单元测试,然后进行测试,有些事情是真实的。测试可能类似于:

I'm wondering if anyone has any best practices for automating the testing of installers on various machines with potentially different hardware / software profiles and by specifying various options to the installer. The idea would be that I could write "unit test like" code to set up a machine, run the installer, then test that certain things are true. Tests might look similar to:

Test:
    Boot Machine without IIS
    Run Installer
    Assert Installer Had Errors

Test:
    Boot Machine with IIS
    Run Installer
    Assert Installer Ran

Test_Fixture:
    SetUp:
        Boot Machine with IIS

    Test:
        Run Installer without IIS install
        Assert Website Not Installed

    Test:
        Run Installer with IIS install
        Assert Website Installed

我知道我可以创造大量虚拟机的,而是在等待一个虚拟机启动各功能测试听起来像的方式更多的工作比我想要的。我真正想要的是虚拟化安装程序环境的方法。有什么建议么?

I know I could create lots of VMs, but waiting for a VM to boot for each functional test sounds like way more work than I want. What I really want is a way to virtualize the installer environment. Any suggestions?

推荐答案

我们已经创建了一个组VM并发现这是非常容易管理。我们经营的13种不同的Windows安装程序在夜间测试。虚拟机,我们已经创建了我们非常裸露的骨头,所以可以并行运行一些测试。

We have created a set of VMs and find it is very easy to manage. We run the tests for 13 different Windows installers over night. The VMs we have created our very bare bones, so it is possible to run a number of tests in parallel.

这篇关于如何自动化安装测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆