-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_mobile_tests.sh
75 lines (65 loc) · 3.92 KB
/
run_mobile_tests.sh
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
#!/bin/bash
#Connects to virtual environment
source venv/bin/activate
path="/Users/KIMO/Desktop/Testing/"
sel="Do"
#Makes Login_Reports directory
rm -rf ./Reports/Mobile_Reports/Login_Reports/
mkdir ./Reports/Mobile_Reports/Login_Reports
#Makes Login_Reports/allurefiles directory
mkdir ./Reports/Mobile_Reports/Login_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Mobile_Reports/Login_Reports/allurefiles" ./Mobile_Testing/Tests/test_login.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Mobile_Reports/Login_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Mobile_Reports/Login_Reports/allurefiles/. $path/Reports/Mobile_Reports/allurefiles
#Makes Authentication_Reports directory
rm -rf ./Reports/Mobile_Reports/Authentication_Reports/
mkdir ./Reports/Mobile_Reports/Authentication_Reports
#Makes Authentication_Reports/allurefiles directory
mkdir ./Reports/Mobile_Reports/Authentication_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Mobile_Reports/Authentication_Reports/allurefiles" ./Mobile_Testing/Tests/test_authentication.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Mobile_Reports/Authentication_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Mobile_Reports/Authentication_Reports/allurefiles/. $path/Reports/Mobile_Reports/allurefiles
#Makes Extra_Reports directory
rm -rf ./Reports/Mobile_Reports/Extra_Reports/
mkdir ./Reports/Mobile_Reports/Extra_Reports
#Makes Extra_Reports/allurefiles directory
mkdir ./Reports/Mobile_Reports/Extra_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Mobile_Reports/Extra_Reports/allurefiles" ./Mobile_Testing/Tests/test_extra.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Mobile_Reports/Extra_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Mobile_Reports/Extra_Reports/allurefiles/. $path/Reports/Mobile_Reports/allurefiles
#Makes Home_Reports directory
rm -rf ./Reports/Mobile_Reports/Home_Reports/
mkdir ./Reports/Mobile_Reports/Home_Reports
#Makes Home_Reports/allurefiles directory
mkdir ./Reports/Mobile_Reports/Home_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Mobile_Reports/Home_Reports/allurefiles" ./Mobile_Testing/Tests/test_home.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Mobile_Reports/Home_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Mobile_Reports/Home_Reports/allurefiles/. $path/Reports/Mobile_Reports/allurefiles
#Makes Player_Reports directory
rm -rf ./Reports/Mobile_Reports/Player_Reports/
mkdir ./Reports/Mobile_Reports/Player_Reports
#Makes Player_Reports/allurefiles directory
mkdir ./Reports/Mobile_Reports/Player_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Mobile_Reports/Player_Reports/allurefiles" ./Mobile_Testing/Tests/test_player.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Mobile_Reports/Player_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Mobile_Reports/Player_Reports/allurefiles/. $path/Reports/Mobile_Reports/allurefiles
#Makes Signup_Reports directory
rm -rf ./Reports/Mobile_Reports/Signup_Reports/
mkdir ./Reports/Mobile_Reports/Signup_Reports
#Makes Signup_Reports/allurefiles directory
mkdir ./Reports/Mobile_Reports/Signup_Reports/allurefiles
#Runs tests for this function
python3 -m pytest --alluredir="./Reports/Mobile_Reports/Signup_Reports/allurefiles" ./Mobile_Testing/Tests/test_signup.py -m $sel
#Copies allure files to all more general palce
cp -a $path/Reports/Mobile_Reports/Signup_Reports/allurefiles/. $path/Reports/All_Reports/allurefiles
cp -a $path/Reports/Mobile_Reports/Signup_Reports/allurefiles/. $path/Reports/Mobile_Reports/allurefiles