-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme
executable file
·108 lines (77 loc) · 2.86 KB
/
readme
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
version: 1.0.0
description:
- Load an exported configuration file
- start test
- Analyzes expected KPI values that is stated in the testcase yml file
- Get PDF, packet captures, logs and results in CSV and JSON format.
keystack requirements:
- Env yml file
- Testcase yml file
- Create playbook or add testcase to playbook playlist
instructions:
- Manually run test on LoadCore MW
- When test configuration is satisfied, export the config file
- Put the exported config file to:
/keystack_path/KeystackTests/Modules/LoadCore/ExportedConfigs
- Create testcase yml files
- Create an env file containing the LoadCore setup IP addresses and
login credentials
- Create a playbook to run testcase or add testcase to existing playbook
env yml file sample:
file location: /your_keysack_path/Keystack/Tests/Envs/loadcore_qa
# Can this setup be used in parallel
parallelUsage: False
mwIp: 192.168.28.6
username: admin
password: admin
licenseServerIp: 192.168.28.6
licenseIpPort: 7443
# Legacy=vLM | Embeded=KCOS, External=ExternalKCOS
licenseServerType: KCOS
licenseServerUser: admin
licenseServerPassword: admin
# Add LoadCore agents here and uncomment
agents:
- agent:
ip: 192.168.28.137
interface: ens33
- agent:
ip: 192.168.28.138
interface: ens33
testcase yml file sample:
file location: /your_path/KeystackTests/Modules/LoadCore/Testcases/fullcoreBase.yml
description: full core testing
objective: Unittest full core feautures
exportedConfigFile: sample_fullCore.zip <-- The exported config file
pythonScript: /Apps/LoadCore/runLoadCore.py
configParametersFile: None <-- parameter/values for scripts to consume and modify configs
importAppLibraryPaths:
- /Apps/LoadCore
# Note: Get the KPI from a manual test run. After the test, download the CSV logs/results
# There is a CSV folder containing hundreds of csv filenames of KPIs.
KPI:
Fullcorengran_NGSetup:
- NG Setup Failure Rx=0
- NG Setup Request Tx=0
Fullcorengran_NGRANRegistrationprocedure:
- Registration Succeeded>80
- Registration Failed=0
- Registration TimedOut=0
playbook yml file sample:
file location: /your_path/KeystackTests/Playbooks/runLoadCore.yml
stages:
LoadCoreTest:
modules:
- /Modules/LoadCore:
env: loadcore_qa
playlist:
- /Modules/LoadCore/Testcases/fullcoreBase.yml
rebootAgentsBeforeEachTest: False
deleteTestLogsAndResultsOnLoadCore: True
waitTimeBetweenTests: 0
deleteSession: True
deleteSessionOnFailure: True
abortOnFailure: False
getPdfResultsFile: True
getCsvResultsFile: True
getCapturesAndLogs: True