The window for the simulator is like a fake Apple device. You can simulate just about anything (Watch, AppleTV, iPad, etc) by going to Hardware Device. Step 3) Open Safari and go to a website. Easy enough to type something in. It understands keyboard input so you don’t have to like use the mouse to click fake on-screen keys. Important trick! The full-featured iOS and Android emulators and simulators work just like actual devices and include development-related features such as device logs, locale changes and session recordings. A solution for everyone. Whether you are a start-up or an enterprise, Appcircle has a solution for you. A solution for everyone.
TestArchitect allows you to create and run automated tests of web applications in Safari on a simulated iOS device.
Therefore, ensuring iPhone users get the best user experience is critical. IPhone runs on Apple’s iOS and users predominantly browse using Safari. IOS behaves differently from Android and Safari supports CSS in a different form versus Chrome, IE. Therefore, testing on iPhones for responsive design and cross browser compatibility is important. To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu, and click Run. Xcode builds your project and then launches the most recent version of your app running in Simulator on your Mac screen, as shown in Figure 1-1. Apple’s official tool to slow down the network connections on you Mac for testing purposes is Network Link Conditioner. Additional Tools for Xcode version. Additionally, iOS has similar function accessible from within Xcode and iOS 6 or later. Older versions of Xcode before version 4.3.2 embedded a copy of this tool.
Apple’s Simulator allows you to rapidly prototype and test builds of your app during the development process. Installed as part of the Xcode tools, Simulator runs on your Mac and behaves like a standard Mac app while simulating an iPhone, iPad, Apple Watch, or Apple TV environment. (Learn more.)
TestArchitect supports the testing of web applications running within the Safari browser on the following versions of a simulated iOS device:
Remote debugging is a remote web inspector for debugging web applications on the iOS Simulator. The following configuration must be set up to allow remote debugging to be performed:
Event-fired action model: TestArchitect attempts to effectuate built-in actions in a manner that is as close as possible to real user actions. In most cases, for each given UI action, TestArchitect calls a sequence of events as follows. (Refer to supported built-in actions.)
Built-in actions | Applicable controls | Sequence of events triggered |
---|---|---|
click, tap | all controls | touchstart >touchend >mouseover >mousedown >focus >mouseup >click |
click table cell | table | touchstart >touchend >mouseover >mousedown >focus >mouseup >click |
set list check | ul, ol | touchstart >touchend >mouseover >mousedown >focus >mouseup >click |
select, click list item | select-one, select-multiple | click >change |
set | input-checkbox, input-radio | touchstart >touchend >mouseover >mousedown >focus >mouseup >click |
enter, set | input-text, input-password, input-search, input-tel, input-url, input-email, input-number | keydown >keypress >input >keyup >change |
Configuring an iOS Simulator for testing Safari
This section describes essential configurations needed to ensure that automated tests on Safari on the iOS Simulator run successfully and stably.
Invoking Safari on iOS Simulator during automation
There are two methods by which Safari may be invoked in the iOS Simulator:
Automation testing on Safari in iOS Simulator
After having completed the prerequisites, you can now start to automate your tests on Safari in the target iOS Simulator.