-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstress_SD-HD_channel_change.py
57 lines (44 loc) · 1.43 KB
/
stress_SD-HD_channel_change.py
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
# Import Tkinter for GUI
from tkinter import *
from tkinter import ttk
import tkinter.font as tkFont
# Import necessary tools for time pause and date
import time
import datetime
import threading
# Import the ADB_Action_Script.py
# This have all the core function to control the TV
from daaf.ADB_Action_Scipt import ActionScript
# Import the RC keys and App PKGs
# This is a supporting tools for ActionScript
# It has a list of RC key code and App PKGs
from daaf.RC_Code import SonyRCKey
from daaf.AppList import AppList
import daaf.Power_Tools as pt
from daaf.atvAuto import atvAuto
class TestScript(atvAuto):
def __init__(self, tkRoot):
""" Initialize the UI and then Set Title Header"""
# Update the string "Template" to your desired Title
super().__init__(tkRoot, "Jump")
# this is in minutes
self.playback_time = 1
self.loopCount.set(50000)
def testCaseInfo(self):
"""
Set the test case info
This is the one that shows on the left side of the screen
Each call of the 'makeInstructionLabel' is one line
"""
self.makeInstructionLabel("Press Jump Key")
self.makeInstructionLabel("Wait 5 seconds")
def runThis(self):
"""
Below is where you assemble test cases
"""
# Press RC POWER Key
self.press_rc_key("JUMP")
self.wait_second(5)
# Start the script
root = Tk()
TestScript(root).startApp()