当启动待测试应用程序后,我模拟用户操作应用程序窗体。
After I've launched the application under test, I simulate a user manipulating the application form.
因此,我模拟的几个电路和这里是我的经验教训。
So I simulated a few of the circuits and here is what I learned.
为了回答这个问题,我模拟了一系列的测试,来测试不同作用域深度中变量的性能。
In order to answer this question, I set up a series of tests using variables of different scope-depth.
首先,对于清单2中的数据,我需要模拟出一个描述,记录下对于这些数据我可能要说的内容。
First, I need to mock up a description of what I might want to say about the data in Listing 2.
为了让这一场景变得更加真实,我将一些日志文件复制到存储器中,以模拟降级状态。
To make this scenario a bit more realistic, I copied some log files into the storage to simulate a degraded state.
我想只要在每个方案下运行这个模拟(假设雇员和技术成本给定的情况下),并确定上面两种选择哪种更能减少成本。
I thought I would just run the simulation under each scenario — assuming given labor and technology costs — and determine which was cheaper.
在这一节,我将带您体验模拟磁盘故障的整个过程,随后使您的RAID卷退出降级模式。
In this section, I'll walk you through the process of simulating a disk failure, and then bringing your RAID volume back out of degraded mode.
既然是描述,我尝试尽量使方案抽象(讨论如何使用银行,而不是模拟银行的计算机程序)。
As is the case with the description, I try to keep the scenarios as abstract as possible (talking about how a bank, not a computer program that simulates a bank, is used).
最后,我演示了如何模拟不同自由度的x平方分布的抽样分布,而不只是仅说明其来源。
Finally, I demonstrated how to simulate the Chi Square sampling distribution for different degrees of freedom, going beyond simply commenting on its derivation.
现在我准备模拟用户在文本框控件中键入一种颜色,并从Combobox控件选择一种颜色。
Now I'm ready to simulate a user typing a color into the textbox control and selecting a color from the combobox control.
为用作示例,我将编写一个测试,模拟用户选择0行处组合框中的第二个元素。
As an example, I'll write a test that simulates a user selecting the second element in the combo box at row 0. The actions for the test to perform are.
我使用500个流程实例模拟了原有流程和将来流程,并且令牌创建频率为每五分钟一个。
I simulated both the As-Is and To-Be processes using 500 process instances with a token creation rate of one every five minutes. The data in Table 2 were used for the number of resources.
但对于我的食品杂货店,我决定通过几次模拟进行循环,每次对应于某一天的业务。
But for my grocery store, I decided to loop through several simulations, each one corresponding to a day of business.
大多数情况下,我只是简单的模拟它们,而不是重写代码。
In most cases I simply emulated them, rather then rewriting the code.
特别地,我想提供一些技巧来说明编写带有模拟对象的单元测试是多么容易。
Specifically, I want to offer some tips on how easy it can be to write unit tests with mock objects.
我希望你们能够发现在单元测试中使用模拟对象的益处,也希望这篇简短的指南能够帮您了解如何简单地创建模拟对象。
I hope that you see the benefits of using mock objects in unit testing. I also hope this brief tutorial helps you see how to create mock objects easily.
我的模拟程序运行了500个流程,以确保有足够多的示例大小是相对精确的。
My simulation ran 500 processes, to be sure to have a large enough sample size to be mathematically relevant.
我的法律训练使得我能通过裁判模拟法庭竞赛的方式参与法学院社团,这是一种建立人际关系的很好方式。
And my legal training enables me to participate in the law school community by judging moot court competitions-a good way to build relationships.
由于本文重点是使用QEMU开发测试跨平台软件,可能会包含少量的硬件交互,我重点介绍系统模拟。
Because the point of this article is using QEMU to develop and test cross-platform software, which may entail subtle hardware interactions, I emphasize system emulation.
当时我正在我的PC上模拟旧式ibm 3270屏幕,但是PC屏幕通常都是彩色的,而不只是一成不变的黑色。
I was emulating the old IBM 3270 screen on my PC, but PC screens are usually all colors, not just solid black.
为解决此缺憾,我使用POSIX条件变量模拟同步原语,并在一系列文章中对此进行了概述。
To work around this omission, I use the POSIX condition variable emulations synchronization primitives, which are outlined in the series of articles.
我为此项目创建了两个模拟对象,分别模拟GPS设备和UI。
I create two mock objects for this project to simulate the GPS device and the UI, respectively.
对于我的应用程序,我定义了几个运行时常量,它们描述了在特定的模拟运行期间我感兴趣的几个方案。
For my application, I define a few runtime constants that describe the scenarios I am interested in during a particular simulation run.
为了对数据绑定框架进行性能测试,我生成了包含模拟的航班时刻表信息的文档。
For performance tests of the data binding frameworks, I generated documents containing mock airline flight timetable information.
只有运行了模拟后,我才意识到可能会出现比预料的更有趣的事情。
Once I played with the simulation, I realized something that is probably more interesting than I had anticipated.
当我最初考虑食品杂货店模型时,我认为模拟可以解答几个直接问题。
When I first thought of my grocery store model, I thought a simulation would answer a few direct questions.
我真的不知道该怎么回答,但是使用模拟器,我可以将背景更改为另外一种颜色,因为这是一个设置方面的问题。
I really didn't know the answer, but using the emulator I change the background to another color, since it's just matter of Settings.
我的旅途是生活的模拟,对经验的反思和理解自我存在的比喻。
Mine is a simulacrum for life, a reflection on experience and a metaphor for understanding my existence.
我的旅途是生活的模拟,对经验的反思和理解自我存在的比喻。
Mine is a simulacrum for life, a reflection on experience and a metaphor for understanding my existence.
应用推荐