简体   繁体   English

如何在XCTest Framework的UI测试中测试数据?

[英]How to test Data in UI Testing in XCTest Framework?

By the help of XCTest and Accessibility technology we are able to test UI and able to record UI Flow . XCTest和Accessibility技术的帮助下我们能够测试UI并记录UI Flow。 So is there any procedure to test Data which are coming from the Server side in the subclass of XCTestCase , which help in the data validation as well as UI Validation at same time . 因此,在XCTestCase的子类中是否有测试来自服务器端的数据的任何过程,这些过程可同时帮助进行数据验证和UI验证。

If you want to test data coming from your server, this should be tested outside of a UI test. 如果要测试来自服务器的数据,则应在UI测试之外进行测试。 This would usually be tested completely separately from the client application. 通常,这将与客户端应用程序完全分开进行测试。

XCTest does not allow the user to access any data directly from the target application, and only provides an interface to UI elements. XCTest不允许用户直接从目标应用程序访问任何数据,而仅提供UI元素的接口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM