You are on page 1of 12

Eng.Easier.

QA Simulators playbook
Preface
Simulators based testing is a another approach of tooling replacing Browserstack based testing.
The idea is creation of all needed test environment inside virtual machines that are deployed
and being run locally on IC host machine.
Expected benefits:
● No latency between IC and Browserstack
● No dependency of Browserstack outage and faults
● Simulators can be used in parallel allowing test different platforms at the same time
Expected difficulties:
● Running several VMs at the same time requires higher performance of host laptop
● This approach requires initial installation and configuration of VMs
● This approach requires continuous support of installed browser version to meet the
Easier browsers and devices list

Installation and configuration


According to supported browsers list you would need from 1 to 3 vms to be installed + one
locally installed Android simulator. This section would lead you through installation of each of
them accordingly to host OS you use.

Distribution of browsers by virtual machines


Browsers list

# Device type OS Browser

1 Desktop Windows 10 Chrome 67

2 Desktop Windows 10 IE 11

3 Desktop Windows 10 Edge 17

4 Desktop Windows 10 Firefox 61


5 Desktop Mac OS X Chrome 67

6 Desktop Mac OS X Safari 10

7 Desktop Mac OS X Safari 11.1

8 Desktop Mac OS X Firefox 61

9 Mobile Iphone 8 iOS 11 Safari

10 Mobile Iphone 7 iOS 10 Safari

11 Mobile Ipad Air 2 iOS 9.3 Safari

12 Mobile Galaxy S7 Android 6 Chrome

Distribution per virtual machine

# Vm name Browsers are being run there

1 MacOS High Sierra 7, 8, 9, 10, 11

2 MacOS Sierra 5, 6

3 Win10 1, 2, 3, 4

4 Locally installed Android studio 12

Before you start plan your actions correctly: first you need to download in background all
needed files and then get to installation. Try to reduce distraction from current tasks as much as
possible because nobody would cancel metrics and SLA for time of migration.

Installation of virtualization tool


While this is an experiment we don’t buy any licenses yet, use trials if you don’t have soft
bought. All listed license keys are googled and added here just to overcome sudden blockers if
any.
We use VmWare tools:
● VmWare Workstation PRO if you have Windows host:
https://www.vmware.com/products/workstation-pro.html
○ License keys:
■ AG352-4YED3-0852Q-LPXXT-MGKG4
■ FC1R0-2EX4M-H854Y-2NWGE-Q2KXA
■ ZU3EH-0YXD4-4819Q-CFWQZ-MZHX4
■ UF3H2-0ME0J-M8EAY-CMNNT-NZ0ZA
■ GU38K-DJW07-488MY-85YXT-P3HU4
■ YU1R2-8RZ16-4816Y-WYNET-WQUFD
■ VV140-2ZFD1-H88YY-N5X5C-PF8Z6
■ FF7N0-DEX81-H85HP-4ZXZX-YYRU4
■ CU14H-AEZDM-081MZ-RPXQT-WFKG6
■ AA1T2-2KE13-088JQ-JEY7C-WUHT0
● VmWare Fusion if you have Mac host: ​https://www.vmware.com/ru/products/fusion.html
○ License key: YZ71K-A0Y1P-48EGY-TQWEC-M7AY0
When you install VM always give it enough resources: 50% of RAM you have and 50% of CPU
cores you have

MacOS High Sierra installation


Video: ​https://drive.google.com/open?id=1SBlKKoKVUzEaeE2biXIFDfC33rWT6QtS
ISO image link1: ​https://drop.me/ByWxnP
ISO image link2:
https://mega.nz/#!WSpRVYAD!qPM4QgKJ1uTqsQ6la4heeEDuTh2OBI-W3wc0sGxYIEU
Both images are the same file. 2 links are just for mirroring.
Installation is straightforward:
● Choose iso with OS
● Configure destination, name, etc
● Set enough resources
Only thing that may stuck you is Apple ID. If you already have it then use it. If not then go to
https://appleid.apple.com/​ and register new one and use it inside VM
When you have VM installed and running go to ​installation of Xcode section​.
MacOS Sierra installation
ISO image link: ​https://drive.google.com/drive/folders/0B2GfNkTIqZ04S0gwUWxqMEpMOUk
Video to refer installation & configuration : ​https://www.youtube.com/watch?v=oaEdw4WvWH4
After installation you will get Safari 10 browser from the box.

Win10 installation
ISO image link: ​https://www.microsoft.com/ru-ru/software-download/windows10
Installation is absolutely painless and easy. You just run your VmWare, choose ISO, set
resources and 10 minutes late you get your Windows 10 installed.
Now install
● Chrome 67 - use this link to download old versions
https://www.slimjet.com/chrome/google-chrome-old-version.php
● IE 11
● Edge 17
● Firefox 61

After installation of each VM create it’s fresh snapshot to have a backup in a case of failure.

Android studio installation


1. Go to ​https://developer.android.com/studio/install
2. Download and install android studio
3. Follow this guide to install Galaxy S7 simulator
https://medium.com/@ssaurel/install-samsung-galaxy-s7-and-s7-edge-skins-in-your-and
roid-emulator-846bbcd84d24
Now you get running Galaxy S7 simulator. It is time to install Chrome inside it:
● Run Galaxy S7 simulator
● Download this apk
https://drive.google.com/file/d/1iIxhQhqFd3X4mzeKE-CKOsK9OvaZx0XD/view?usp=sha
ring
● Drag and drop it to simulator screen. You got it.
Xcode installation
1. Run VM

2. Go to App Store application


3. Search Xcode

4. Click install. It would download 5GB.


5. Run Xcode
6. Click right button on Xcode icon bottom bar and run Simulator device

7. You will get running ios device


8. Go to Hardware - Device - Manage devices - Simulator
9. Click on + icon at bottom
10. Choose Download more simulator runtimes
11. Download and install 10.3 and 9.3
12. Now you can run that devices.
13. Hint: you don’t need to keep Xcode running. You can run simulator and close it.
Hint:
Use Debug -> Graphics Quality Override -> Low Quality to speed up the simulator
How to debug app inside iOS simulator
You need to run Web Inspector tool inside your MacOS VM
https://drive.google.com/open?id=1sPnccGS-cNJql6PKb8B-dEwY_oPpJGOa

You might also like