I'm new to XCUITest. I would like to get some suggestions on how to design 'page' (actually more like screen) object XCUITest.
Is there any open-source project that give samples to reference?
I'm thinking to create a screen folder to put all the screen objects there to hold methods and locators for each screen. Create a test folder to put the actual test cases. And also create a lib folder to put the common methods there.
I was wondering 2 things: 1. How XCUITest reference the files in different folders, how can one test file import methods from 2 different screen files? 2. I'm also thinking to create a data file (acting like .json file). Should I set it as .swift file? and how to make my test call that?
many thanks!