自动化测试人员需要知道的50件事(目录篇)

50 Things Automation Engineers Should Know
先放出这本书的英文目录如下,后面有中文部分,往下面拖哈。

Chapter 1: Scripting

  1. Do Not Use Record & Play in Real Projects .
  2. Do Not Use Pauses
  3. Provide Exit by Timeout for Loops
  4. Do Not Consider Test Automation as Full-Fledged Development
  5. Do Not Write Bulky Code
  6. Verify All Options of Logical Conditions
  7. Use Coding Standards
  8. Use Static Code Analyzers
  9. Add an Element of Randomness to Scripts
  10. Do Not Perform Blind Clicks Against Nonstandard Controls
  11. Learn and Use Standard Libraries
  12. Avoid Copy and Paste.
  13. Do Not Use try…catch with an Empty catch Block
  14. Separate Code from Data
  15. Learn How to Debug
  16. Do Not Write Code for the Future
  17. Leave the Code Better Than It Was
  18. Choose a Proper Language for GUI Tests
  19. Remember to Declare and Initialize Variables

    Chapter 2 Testing

  20. Do Not Duplicate Tested Application Functionality in the Scripts
  21. Each Test Should Be Independent
  22. What Should Not Be Automated?
  23. Ask the Developers for Help
  24. Cloud Testing
  25. Introduce Automation for Corner Cases
  26. The Difference Between Error and Warning
  27. Use the Appropriate Methodologies
  28. Verification of Individual Bugs
  29. Make a Pilot Project Before Writing Real Tests

    Chapter 3: Environment

  30. Choose a Proper Set of Tools for Your Needs
  31. Do Not Automatically Register Bugs from Scripts
  32. Do Not Chase After a “Green Build” in the Prejudice of Quality
  33. Learn the Tool You Work With
  34. Make Use of Version Control Systems
  35. Avoid Custom Forms
  36. Simplify Everything You Can
  37. Automate Any Routine

    Chapter 4: Running, Logging, Verifying

  38. Run Scripts as Often as Possible
  39. Perform an Automatic Restart of Failed Tests
  40. A Disabled Test Should Be Provided with a Comment
  41. Errors in Logs Should Be Informative
  42. Make a Screenshot in Case of Error
  43. Check the Accuracy of Tests Before Adding Them to theRegular Run
  44. Avoid Comparing Images

    Chapter 5: Reviewing

  45. Write Tests That Even Non-Automation EngineersCan Understand
  46. Avoid Unneeded Optimization
  47. Review Someone Else’s Code Regularly
  48. Participate in Forums and Discussions
  49. Perform Refactoring
  50. 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)
自动化测试人员需要知道的50件事(第一章 脚本)

#第二章 测试 Testing (已完成)
自动化测试人员需要知道的50件事(第二章 测试)

#第三章 环境 Environment (已完成,撒花~~)
自动化测试人员需要知道的50件事(第三章 环境)