uitest

What are fixtures in programming?

狂风中的少年 提交于 2019-11-28 13:52:27
问题 I heard this term many times before (when talking about programming) but couldn't find any explanation what does it mean. Any good articles or explanations? I didn't find anything worth mentioning. 回答1: I think you're referring to test fixtures: The purpose of a test fixture is to ensure that there is a well known and fixed environment in which tests are run so that results are repeatable. Some people call this the test context. Examples of fixtures: - Loading a database with a specific,

How to speed up UI test cases in Xcode?

旧时模样 提交于 2019-11-27 13:01:00
问题 Since Xcode 7 we have a nice API for UI testing. Mostly I'm satisfied with it. The only concern is related to the speed. In the beginning an ordinary UI test case (about 15 actions) ran approximately 25 seconds . Then I mocked networking completely. Now it takes 20 seconds . Considering the fact that the time is taken only by animations and a launch time (1 second or even less), I assume, there must be a way to speed it up. 回答1: Try setting this property when your UI tests run: UIApplication