Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Robotium中程序的流程是什么。我的意思是分别为每个测试用例调用setup()和teardown()?
选项 1 setup() TC01 teardown()
setup() TC02 拆解()
或选项2
setup() TC01 TC02 TC03 拆解()
Setup 在每个测试方法之前调用,而 teardown 在每个测试方法之后调用。所以答案是选项1。