自动化测试需要知道的50件事~本人的笔记 + 心得部分 (目录)
2018-04-28 本文已影响97人
cynthia猫
50 Things Automation Engineers Should Know
先放出这本书的英文目录如下,后面有中文部分,往下面拖哈。
Chapter 1: Scripting
- Do Not Use Record & Play in Real Projects .
- Do Not Use Pauses
- Provide Exit by Timeout for Loops
- Do Not Consider Test Automation as Full-Fledged Development
- Do Not Write Bulky Code
- Verify All Options of Logical Conditions
- Use Coding Standards
- Use Static Code Analyzers
- Add an Element of Randomness to Scripts
- Do Not Perform Blind Clicks Against Nonstandard Controls
- Learn and Use Standard Libraries
- Avoid Copy and Paste.
- Do Not Use try...catch with an Empty catch Block
- Separate Code from Data
- Learn How to Debug
- Do Not Write Code for the Future
- Leave the Code Better Than It Was
- Choose a Proper Language for GUI Tests
- Remember to Declare and Initialize Variables
Chapter 2 Testing
- Do Not Duplicate Tested Application Functionality in the Scripts
- Each Test Should Be Independent
- What Should Not Be Automated?
- Ask the Developers for Help
- Cloud Testing
- Introduce Automation for Corner Cases
- The Difference Between Error and Warning
- Use the Appropriate Methodologies
- Verification of Individual Bugs
- Make a Pilot Project Before Writing Real Tests
Chapter 3: Environment
- Choose a Proper Set of Tools for Your Needs
- Do Not Automatically Register Bugs from Scripts
- Do Not Chase After a “Green Build” in the Prejudice of Quality
- Learn the Tool You Work With
- Make Use of Version Control Systems
- Avoid Custom Forms
- Simplify Everything You Can
- Automate Any Routine
Chapter 4: Running, Logging, Verifying
- Run Scripts as Often as Possible
- Perform an Automatic Restart of Failed Tests
- A Disabled Test Should Be Provided with a Comment
- Errors in Logs Should Be Informative
- Make a Screenshot in Case of Error
- Check the Accuracy of Tests Before Adding Them to theRegular Run
- Avoid Comparing Images
Chapter 5: Reviewing
- Write Tests That Even Non-Automation EngineersCan Understand
- Avoid Unneeded Optimization
- Review Someone Else’s Code Regularly
- Participate in Forums and Discussions
- Perform Refactoring
- Remove Tests That Provide Minimal Benefit
整理自Gennadiy Alpaev, Software Testing Automation Tips - 50 Things Automation Engineers Should Know(2017),对应着本书的目录部分,不得不说有几条真的是曾经犯过,要是能早点看到这本书多好!
50 Things Automation Engineers Should Know.png以下为个人的读书笔记+心得部分
关于这部分的说明:非原文翻译,是我根据作者原文,加上自己的理解,写下的内容。算是半笔记半心得体会性质的原创内容。为了加以区分,我会尽量把纯粹自己观点的大段文字使用加粗处理。
这部分目前更新ing,更新顺序并没有按照原书章节~~ 感兴趣的小伙伴可以先关注着~ 恩,我会把这50个点全部更新完的!
由于内容过长,所以分了5个章节,5篇文章来写全部的内容,以下是目录:
第一章 脚本 Scripting (更新ing)
https://www.jianshu.com/p/eb46b0b5322e
第二章 测试 Testing (已完成)
https://www.jianshu.com/p/0976d99d48a9
第三章 环境 Environment (已完成)
https://www.jianshu.com/p/322ffd68da29
第四章 运行,记录日志,验证 Running, Logging, Verifying (已完成)
https://www.jianshu.com/p/56c7960bd866
本文在我的个人博客上的地址
https://mmcatt.github.io/2018/05/02/automation-50tips-menu/