【发布时间】:2016-04-21 19:47:20
【问题描述】:
我创建了一个 ui 测试类:
import Foundation
import XCTest
@testable import TestProject
@available(iOS 9.0, *)
class ChangeWishListUITests: XCTestCase {
func testExample() {
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
}
在带有 ios 9.3 的 iphone 6 模拟器上运行应用程序:
但是,录制按钮,就像在本教程中一样: https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/RecordingUITests.html#//apple_ref/doc/uid/TP40010215-CH75-SW1
没有出现。
【问题讨论】:
-
有时你需要在 testExample() 测试用例中按下光标,也可以看看这个stackoverflow.com/questions/31874855/…