-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLongMemoryTest.py
More file actions
72 lines (63 loc) · 2.56 KB
/
LongMemoryTest.py
File metadata and controls
72 lines (63 loc) · 2.56 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import os
import time
from Clicker_Library import *
def clicking(repeat):
for clic in range(repeat):
memory(file_name, userId) # current memory?
print("Browsing in the page")
for page in range(6): #
os.system(RCU_RIGHT_LONG) # Click x times right (simulates long press)
time.sleep(2)
os.system(RCU_LEFT_LONG) # Click x times left (simulates long press)
time.sleep(2)
os.system(RCU_DOWN)
os.system(RCU_MENU)
time.sleep(5)
memory(file_name, userId) # current memory?
os.system(RCU_LIVETV)
print("Watching channel for 5 minutes.")
time.sleep(300)
memory(file_name, userId) # current memory?
print("I will switch channel now.")
time.sleep(2)
os.system(RCU_CH_PLUS)
print("Watching channel for another 5 minutes.")
time.sleep(300)
os.system(RCU_MENU)
time.sleep(5)
memory(file_name, userId) # current memory?
os.system(RCU_PREMIUM)
print("Browsing in the page")
time.sleep(5)
for page in range(6): #
os.system(RCU_RIGHT_LONG) # Click x times right (simulates long press)
time.sleep(2)
os.system(RCU_LEFT_LONG) # Click x times left (simulates long press)
time.sleep(2)
os.system(RCU_DOWN)
os.system(RCU_MENU)
time.sleep(5)
memory(file_name, userId) # current memory?
print("Lets go browse in EPG now.")
os.system(RCU_EPG)
time.sleep(5)
browse_in_epg()
os.system(RCU_MENU)
time.sleep(5)
memory(file_name, userId) # current memory?
# disconnect all connected devices
os.system("adb disconnect")
# User need to enter IP of device
DeviceIP = input("Enter the DeviceIP: ")
# connect device to PC
os.system(f"adb connect {DeviceIP}")
userId = str(input("What is USER (e.g. u0_a71) of the app? (can be checked with 'adb shell top' command - please check this before you will continue this script) "))
# User need to enter name of file to save the memory consumtion of the app
file_name = str(input("Enter the name of the file (no spaces, no file type - e.g. .txt, .log): "))
# how many repeats
repeat = int(input("How many repeats of the program? One cycle is about approximately 20 minutes. "))
channel1()
time.sleep(5)
os.system(RCU_MENU) # play channel nr.1 and return to default position in Home page
time.sleep(5)
clicking(repeat)