-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_web_tests.sh
More file actions
128 lines (115 loc) · 7.19 KB
/
run_web_tests.sh
File metadata and controls
128 lines (115 loc) · 7.19 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/bash
#Connects to virtual environment
source venv/bin/activate
path="/Users/KIMO/Desktop/Testing/"
sel="Do"
#Makes Login_Reports directory
rm -rf ./Reports/Web_Reports/Login_Reports/
mkdir ./Reports/Web_Reports/Login_Reports
#Makes Login_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Login_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Login_Reports/allurefiles" ./Web_Testing/Tests/test_login.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Login_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Login_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Account_OverView_Reports directory
rm -rf ./Reports/Web_Reports/Account_Overview_Reports/
mkdir ./Reports/Web_Reports/Account_Overview_Reports
#Makes Account_Overview_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Account_Overview_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Account_Overview_Reports/allurefiles" ./Web_Testing/Tests/test_accountoverview.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Account_Overview_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Account_Overview_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Artist_Reports directory
rm -rf ./Reports/Web_Reports/Artist_Reports/
mkdir ./Reports/Web_Reports/Artist_Reports
#Makes Artist_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Artist_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Artist_Reports/allurefiles" ./Web_Testing/Tests/test_artist.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Artist_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Artist_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Change_Password_Reports directory
rm -rf ./Reports/Web_Reports/Change_Password_Reports/
mkdir ./Reports/Web_Reports/Change_Password_Reports
#Makes Change_Password_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Change_Password_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Change_Password_Reports/allurefiles" ./Web_Testing/Tests/test_changePassword.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Change_Password_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Change_Password_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Liked_Songs_Reports directory
rm -rf ./Reports/Web_Reports/Liked_Songs_Reports/
mkdir ./Reports/Web_Reports/Liked_Songs_Reports
#Makes Liked_Songs_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Liked_Songs_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Liked_Songs_Reports/allurefiles" ./Web_Testing/Tests/test_likedsongs.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Liked_Songs_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Liked_Songs_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Logged_Out_Home_Reports directory
rm -rf ./Reports/Web_Reports/Logged_Out_Home_Reports/
mkdir ./Reports/Web_Reports/Logged_Out_Home_Reports
#Makes Logged_Out_Home_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Logged_Out_Home_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Logged_Out_Home_Reports/allurefiles" ./Web_Testing/Tests/test_loggedOutHome.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Logged_Out_Home_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Logged_Out_Home_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Playlist_Reports directory
rm -rf ./Reports/Web_Reports/Playlist_Reports/
mkdir ./Reports/Web_Reports/Playlist_Reports
#Makes Playlist_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Playlist_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Playlist_Reports/allurefiles" ./Web_Testing/Tests/test_playlist.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Playlist_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Playlist_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Premium_Reports directory
rm -rf ./Reports/Web_Reports/Premium_Reports/
mkdir ./Reports/Web_Reports/Premium_Reports
#Makes Premium_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Premium_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Premium_Reports/allurefiles" ./Web_Testing/Tests/test_premium.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Premium_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Premium_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Signup_Reports directory
rm -rf ./Reports/Web_Reports/Signup_Reports/
mkdir ./Reports/Web_Reports/Signup_Reports
#Makes Signup_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Signup_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Signup_Reports/allurefiles" ./Web_Testing/Tests/test_signup.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Signup_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Signup_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Web_Player_Home_Reports directory
rm -rf ./Reports/Web_Reports/Web_Player_Home_Reports/
mkdir ./Reports/Web_Reports/Web_Player_Home_Reports
#Makes Web_Player_Home_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Web_Player_Home_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Web_Player_Home_Reports/allurefiles" ./Web_Testing/Tests/test_webplayerHome.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Web_Player_Home_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Web_Player_Home_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles
#Makes Your_Library_Reports directory
rm -rf ./Reports/Web_Reports/Your_Library_Reports/
mkdir ./Reports/Web_Reports/Your_Library_Reports
#Makes Your_Library_Reports/allurefiles directory
mkdir ./Reports/Web_Reports/Your_Library_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Web_Reports/Your_Library_Reports/allurefiles" ./Web_Testing/Tests/test_yourLibrary.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Web_Reports/Your_Library_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Web_Reports/Your_Library_Reports/allurefiles/. $path/Reports/Web_Reports/allurefiles