-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbasic_str.py
More file actions
30 lines (26 loc) · 735 Bytes
/
basic_str.py
File metadata and controls
30 lines (26 loc) · 735 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
#!/usr/bin/env python
from selenium import webdriver
import unittest
import time
from ConfigParser import ConfigParser
conf_file = open('config/config.conf')
config = ConfigParser()
config.readfp(conf_file)
class TestSample(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.implicitly_wait(30)
self.driver.maximize_window()
set_base_url = config.get("set_url",'url')
self.base_url = set_base_url
print self.base_url
global browser
browser = self.driver
self.verificationErrors = []
def test_name_verification(self):
browser.get(self.base_url)
print "Writing my first test script"
def tearDown(self):
self.driver.close()
if __name__ == '__main__':
unittest.main()