قالب وردپرس درنا توس
Home / IOS Development / ios – How to pause XCUITest for manual simulator manipulation?

ios – How to pause XCUITest for manual simulator manipulation?



I'm trying to automate parts of my UI testing using XCUITest. I will not try to do parts of the test automatically, and then wait for me to do some things manually. Is there a good way to do this?

right now I'm just doing this:

  class QDBUITestHost: XCTestCase {

override func setUp () {
continuousAfterFailure = false
XCUIAapplication (). Launch ()
}

override func tearDown () {}

func testHosting () {
La app = XCUIAapplication ()
app.buttons ["Select Group"] .tap ()
app.sheets.buttons ["com-mist-qdb-1"] .tap ()
app.buttons ["Host"] .tap ()
sleep (600) // This is a bad hack
}

}

So, is there a better way to do this, rather than just sleeping (600) ?


Source link