-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathautomation_tests.py
More file actions
69 lines (49 loc) · 1.6 KB
/
automation_tests.py
File metadata and controls
69 lines (49 loc) · 1.6 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
import time
import unittest
from modules import *
class AutomationTest(unittest.TestCase):
def setUp(self):
self.startTime = time.time()
#self.driver = webdriver.Firefox()
self.driver = webdriver.Chrome()
self.driver.set_window_size(1920, 1080)
self.driver.get("http://way2automation.com/way2auto_jquery/index.php")
self.module = Module(self.driver)
def test_draggable(self):
self.module.draggable()
def test_droppable(self):
self.module.droppable()
def test_resizable(self):
self.module.resizable()
def test_sortable(self):
self.module.sortable()
def test_datepicker(self):
self.module.datepicker()
def test_tooltip(self):
self.module.tooltip()
def test_menu(self):
self.module.menu()
def test_slider(self):
self.module.slider()
def test_tabs(self):
self.module.tabs()
def test_frames_and_windows(self):
self.module.frames_and_windows()
def test_submit_button_clicked(self):
self.module.submit_button_clicked()
def test_dropdown(self):
self.module.dropdown()
def test_registration(self):
self.module.registration()
def test_alert(self):
self.module.alert()
def test_selectable(self):
self.module.selectable()
def test_accordion(self):
self.module.accordion()
def test_autocomplete(self):
self.module.autocomplete()
def tearDown(self):
self.driver.close()
t = time.time() - self.startTime
print('%s: %.3f' % (self.id(), t))