UITableView XCTest Swipe Pagination issues

Hi, I meet a problem that the page will auto request the pagination backend API for each swipe action(or get page source action) When I do UI Automation Testing in UITableView. This behavior did not occur in manual scrolling.

This problem will lead the page become very huge and the source page tree will become much fat. So the find element time cost become much more.

If we have some options to reduce the XCTest to load the entire table which may trigger the pagination to request next page.

More info can be refer to here: https://github.com/appium/appium/issues/17322#issuecomment-1208349608

I also meet the same problem, hope for a solution!

As far as I'm concerned, the preFetchingEnable feature is default Enable for xctest framework, is any way to disable it.

First of all, any UI Automation should not be making live outbound API calls. You need to implement a data mocking mechanism during testing where the UI wait times are constant and are not bound by the variable response times related to real data requests before triggering a UI action or gesture.

Anyone can help me?

UITableView XCTest Swipe Pagination issues
 
 
Q