Skip to content

Commit 9c65af8

Browse files
author
Gaurav Singh
committed
Chapter 3 + 4: Setting up skeleton of a test with a base test with web driver init and teardown.
1 parent 17d49ca commit 9c65af8

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

automation/__init__.py

Whitespace-only changes.

automation/config/__init__.py

Whitespace-only changes.

automation/config/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
APPLITOOLS_API_KEY = ''

automation/tests/__init__.py

Whitespace-only changes.

automation/tests/base_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from unittest import TestCase
2+
3+
from selenium import webdriver
4+
5+
6+
class BaseTest(TestCase):
7+
def setUp(self):
8+
self.driver = webdriver.Chrome()
9+
self.driver.get('https://applitools.com/helloworld')
10+
11+
def tearDown(self):
12+
self.driver.quit()

automation/tests/chapter_04/__init__.py

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from automation.tests.base_test import BaseTest
2+
3+
4+
class HelloWorldTest(BaseTest):
5+
6+
def test_hello_world(self):
7+
pass

0 commit comments

Comments
 (0)