-
Notifications
You must be signed in to change notification settings - Fork 0
/
_TestScripts.py
35 lines (26 loc) · 973 Bytes
/
_TestScripts.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
'''
(PROJECTNAME)TestScripts
This is a template class for building test scripts using functionality
from the ItemSelectorClass
'''
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains as action
from selenium.webdriver.support.ui import Select
from _ItemSelectorClass import ItemSelectorClass # import functionality
import time
import random
'''
begin _TestScripts:
define class variables
(it should just be TestModule defined as ItemSelectorClass)
define initialization(self):
create a ItemSelectorClass object called TestModule
define Test_A0():
try:
using methods from the ItemSelectorClass, program the steps for Test_A0
print success message
except:
print failure/error message
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CONTINUE DOING THIS FOR EVERY SINGLE TEST CASE!!!
'''