如何与UI测试中与测试应用程序捆绑在一起的GMSMapViews进行交互?

时间:2019-01-15 10:12:01

标签: swift xcode gmsmapview xcuitest

我想与我的可测试应用程序的GMSMapview进行交互以编写一些UI测试。但是由于它是与我的可测试应用程序捆绑在一起的第三方SDK。我不确定也不知道从哪里开始以及如何开始。

func testPanMapToAddFavourite() {
        // Use recording to get started writing UI tests.
        // Use XCTAssert and related functions to verify your tests produce the correct results.

        app.launch()
        app.debugDescription
        app.maps.element.pinch(withScale: 0.5, velocity: -1)//Note: The map in my testable app is not an accessible element. Hence requesting for a suggestion to interact with the GMSMap views for writing some UI test cases in Xcode (XCUITest) 

}

0 个答案:

没有答案