自动化测试的重要概念介绍
目的:check that the bugs you found in previous test runs were
indeed fixed and that no new bugs were introduced
This process of rerunning your tests is known as regression testing.
Think about how long it would take you to manually try a few thousand test cases for the Windows Calculator. You might average a test case every 5 seconds or so.
Automation might be able to run 10, 100, even 1000 times that fast.
While you’re busy running test cases, you can’t be doing anything else. If you have a test tool that reduces the time it takes for you to run your tests, you have more time for test planning and thinking up new tests.
wane and you’ll start to make mistakes. A test tool will perform the same test and check the results perfectly, each and every time.
battery-operated bunny of the TV commercials—they can keep going and going and.…
Software test tools aren’t a substitute for software testers—they just help software testers perform their jobs better.
If a tool is used only to monitor and examine the software without modifying it, it’s considered non-invasive.
If, however, the tool modifies the program code or manipulates the operating environment in any way, it’s invasive.
There are varying degrees of invasiveness and testers usually try to use tools that are as non-invasive as possible to reduce the possibility that their tools are affecting the test results.
A viewer or monitor test tool allows you to see details of the software’s operation that you wouldn’t normally be able to see.
A code coverage analyzer is an example of a viewing tool.
Most code coverage analyzers are invasive tools because they need to be compiled and linked into the program to access the information they provide.
The code debuggers that come with most compilers are also considered viewers because they allow programmers or white-box testers to view internal variable values and program states.
Drivers are tools used to control and operate the software being tested.
One of the simplest examples of a driver is a batch file, a simple list of programs or commands that are executed sequentially.
Stubs are essentially the opposite of drivers in that they don’t control or operate the software being tested; they instead receive or respond to data that the software sends.
Stubs are frequently used when software needs to communicate with external devices.
emulator used to describe a device that’s a plug-in replacement for the real device.
The difference between an emulator and a stub is that the stub also provides a means for a tester to view and interpret the data sent to it.
a best-of-the-rest group
Screen capture and comparison software
• Debugger
• Binary-hex calculator 二进制转十六进制
• Stopwatch
什么是宏
可编程的宏 Programmed Macros
Verification is the last big hurdle to overcome with automated software testing. Once you have
that, you can take nearly any test case and create automation that will make trying that case
either much easier or completely automatic.
The term test monkey comes from the idea that if you had a million monkeys typing on a million keyboards for a million years, statistically, they might eventually write a Shakespearean play, Curious George, or some other great work. “测试猴子”这个词来源于这样一个想法:如果你有一百万只猴子在一百万年的键盘上打字,从统计上看,他们最终可能会写一部莎士比亚的戏剧,“好奇” 乔治,或者其他伟大的作品。
Dumb/Semi-Smart/Smart Monkey