I am trying to execute some UI Tests that involve lot of scrolling and tapping. As the test case progresses, the memory consumed by Testing Bundle keeps increasing. Ultimately, "Low Memory warning" is received and the test execution stops.
I thought issue might be with my code, so I wrote simple UI Steps for LIster Sample App provided by Apple, but result is still same. I receive "Low memory Warning" even when repetedly executing same two steps in a loop.
func testExample2() {
let app = XCUIApplication()
let groceriesStaticText = app.tables.staticTexts["Groceries"]
let listerButton = app.navigationBars.matchingIdentifier("Groceries").buttons["Lister"]
for var idx = 0; idx < 1000; idx++ {
groceriesStaticText.tap()
listerButton.tap()
}
}A snapshot of the memory consumption is present in this screenshot http://postimg.org/image/pzzevu3br/
The Lister App I used to run test is obtained from here https://developer.apple.com/library/ios/samplecode/Lister/Introduction/Intro.html
Has anyone else faced this issue?
Thanks
Naveen