-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsuite.py
64 lines (56 loc) · 3.55 KB
/
testsuite.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
58
59
60
61
62
import unittest
from check_landing_page import check_landing_page
from login import login
from registration import registration
from open_folder import open_folder
from create_files import create_files
from delete_folder import delete_folder
from create_note import create_note
from task_create_delete import task_create_delete
from file_properties import file_properties
from task_edit import task_edit
from task_comment import task_comment
from create_delete_user import create_delete_edit_user
from settings import settings_change
from settings_2 import settings_change_2
from settings_3 import settings_change_3
from open_file import open_file
from admin_all_pages_check import admin_all_pages_check
from admin_users_page import admin_users_page
from admin_users_page_ney_payment import admin_new_payment
from download_few_files import download_files
from download_few_folders import download_folders
from download_single_file import download_file
from download_zip_all_files_and_folders import download_all
# get all tests
login_tests = unittest.TestLoader().loadTestsFromTestCase(login)
landing_page_tests = unittest.TestLoader().loadTestsFromTestCase(check_landing_page)
registration_test = unittest.TestLoader().loadTestsFromTestCase(registration)
open_folder_test = unittest.TestLoader().loadTestsFromTestCase(open_folder)
delete_folder_test = unittest.TestLoader().loadTestsFromTestCase(delete_folder)
create_files_test = unittest.TestLoader().loadTestsFromTestCase(create_files)
create_note_test = unittest.TestLoader().loadTestsFromTestCase(create_note)
task_create_delete_test = unittest.TestLoader().loadTestsFromTestCase(task_create_delete)
task_edit_test = unittest.TestLoader().loadTestsFromTestCase(task_edit)
task_comment_test = unittest.TestLoader().loadTestsFromTestCase(task_comment)
create_delete_users_test = unittest.TestLoader().loadTestsFromTestCase(create_delete_edit_user)
file_properties_test = unittest.TestLoader().loadTestsFromTestCase(file_properties)
settings_change_test = unittest.TestLoader().loadTestsFromTestCase(settings_change)
settings_change_2_test = unittest.TestLoader().loadTestsFromTestCase(settings_change_2)
settings_change_3_test = unittest.TestLoader().loadTestsFromTestCase(settings_change_3)
open_file_test = unittest.TestLoader().loadTestsFromTestCase(open_file)
admin_check_pages_test = unittest.TestLoader().loadTestsFromTestCase(admin_all_pages_check)
admin_users_page_test = unittest.TestLoader().loadTestsFromTestCase(admin_users_page)
admin_create_new_payment_test = unittest.TestLoader().loadTestsFromTestCase(admin_new_payment)
download_all_test = unittest.TestLoader().loadTestsFromTestCase(download_all)
download_file_test = unittest.TestLoader().loadTestsFromTestCase(download_file)
download_few_folders_test = unittest.TestLoader().loadTestsFromTestCase(download_folders)
download_few_files_test = unittest.TestLoader().loadTestsFromTestCase(download_files)
smoke_tests = unittest.TestSuite((login_tests, landing_page_tests, registration_test, open_folder_test,
create_files_test, delete_folder_test, create_note_test,
task_create_delete_test, task_edit_test, task_comment_test, create_delete_users_test, file_properties_test,
settings_change_test, settings_change_2_test, settings_change_3_test, open_file_test,
admin_check_pages_test, admin_users_page_test, admin_create_new_payment_test,
download_all_test, download_few_files_test, download_few_folders_test, download_file_test))
# run the suite
a = unittest.TextTestRunner(verbosity=2).run(smoke_tests)