-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtest.py
More file actions
executable file
·44 lines (26 loc) · 1016 Bytes
/
test.py
File metadata and controls
executable file
·44 lines (26 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
import time
import isim
iOS10_2 = isim.runtime.from_id("com.apple.CoreSimulator.SimRuntime.iOS-10-2")
iOS10_3 = isim.runtime.from_id("com.apple.CoreSimulator.SimRuntime.iOS-10-3")
iPhone7Type = isim.device_type.from_id("com.apple.CoreSimulator.SimDeviceType.iPhone-7")
iPhone7 = isim.device.from_name("iPhone 7", iOS10_3)
app_id = "io.myers.testapp"
iPhone7.refresh_state()
#print(iPhone7.get_app_container(app_id))
#iPhone7.openurl("http://google.com")
#iPhone7.addmedia(["/Users/dalemy/Desktop/Screen Shot 2017-09-07 at 22.22.24.png"])
#iPhone7.terminate(app_id)
#test_device = isim.device.create("xcrun test device", iPhone7Type, iOS10_3)
#print(test_device)
#test_device.delete()
# Upgrade flow
#upgrade_device = isim.device.create("Upgrade Device", iPhone7Type, iOS10_2)
#print(upgrade_device.__repr__())
#print("Waiting...")
#time.sleep(10)
#upgrade_device.upgrade(iOS10_3)
#print(upgrade_device.__repr__())
#print("Waiting...")
#time.sleep(10)
#upgrade_device.delete()