do you have any Best Practice for testing
More test methods in your TestCase than in the class you are testing
Tests should be as fine grained as possible
Tests should be independent
Should not take long to run (a few seconds)
Easy to understand and read
Make them safe
Developers must know they are not destructive
All developers must know about them
Everyone who touches the code must run the tests.
Determines how much of your code is covered by tests
If developer changes functionality, they may need to update test
Warning: you’ve changed the interface. Did you break someone else?
Even better, all tests pass AND new tests were added for new code
All tests pass all the time
Don’t allow even one test the “always fails”
Track down and fix the broken test immediately
Automate running of tests
Ex. All tests on tip revision of code get run automatically once per day with failures emailed.
Run tests on code check-in
Run tests before deployment
Have a reasonable copy of your production environment in a dev area.
【do you have any Best Practice for testing】相关文章
1. do you have any Best Practice for testing
2. 软件测试LoadRunner面试题:If you want to stop the execution of your script on error, how do you do that?
3. 若通过ObjectOutputStream向一个文件中多次以追加方式写入object,为什么用ObjectInputStream读取这些object时会产生StreamCorruptedExcepti
4. Linux Interview Questions For software testers
5. 软件测试LoadRunner面试题:How do you identify the performance bottlenecks
6. 如何反序的迭代一个序列?how do I iterate over a sequence in reverse order
7. 简述你对Statement,PreparedStatement,CallableStatement的理解
8. 软件测试LoadRunner面试题:What is think time? How do you change the threshold?
9. 软件测试LoadRunner面试题:How did you find web server related issues?
10. 什么是Connection-oriented Protocol/Connectionless Protocol面向连接的协议/无连接协议
本文来源:https://www.mianshiwenti.com/a12024.html
﹝do you have any Best Practice for testing﹞相关内容
- Java的类可以定义为Protected或者Private得吗
- String s = new String(“xyz”);创建了几个String Object?
- 什么是表空间(tablespace)和系统表空间(System tablespace)
- 什么是表空间(tablespace)和系统表空间(System tablespace)?
- 什么是Oracle的后台进程background processes?都有哪些后台进程?
- .TTL是什么?有什么用处,通常那些工具会用到它?(ping? traceroute? ifconfig? netstat?)
- 什么是Oracle的同义词(synonym)? 如何创建synonym?
- What\'s the difference between an interface and abstract class? (接口与抽象类有什么区别)
- 软件测试LoadRunner面试题:Explain the Configuration of your systems
- Spring对多种ORM框架提供了很好的支持,简单描述在Spring中使用Hibernate的方法