-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme
114 lines (75 loc) · 3.32 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
106
107
108
109
110
111
112
version: 1.0.0
applet: Apps/IxLoad/LoadConfigFileEvalStats.py
description:
- Load an exported configuration file
- Start test
- Show stats
keystack requirements:
- Env yml file
- Testcase yml file
- Create playbook or add testcases to playbook playlist
- Copy /path/KeystackSystem/Apps/IxLoad/LoadConfigFileEvalStats.py ->
/Modules/IxLoad/Scripts/LoadSavedConfigFile/LoadConfigFileEvalStats.py
instructions:
- Manually run test on IxLoad
- When test configuration is satisfied, export the config file
- Put the exported config file to /your_path/KeystackTests/Modules/LoadCore/ExportedConfigs
- Create testcase yml files:
- Create an env file containing the IxLoad setup IP addresses and
login credentials
- Create a playbook to run testcases or add a testcase to existing playbook
env yml file sample:
file location: /your_path/Keystack/Tests/Envs/ixLoad_qa
windowsApiServerIp: 192.168.28.10
# Where to store all of the csv result files in Windows
windowsResultsDir: c:\\Results
linuxApiServerIp: 192.168.28.24
# Leave the 2 lines as default. For your reference only.
linuxResultsDir: /mnt/ixload-share/Results
# http=8080. https=8443 (https is supported starting 8.50)
apiServerIpPort: 8443
licenseServerIp: 192.168.28.10
# licenseModel choices: 'Subscription Mode' or 'Perpetual Mode'
licenseModel: Subscription Mode
# To assign ports for testing. Format = (cardId,portId)
# Traffic1@Network1 are activity names.
# To get the Activity names, got to: /ixload/test/activeTest/communityList
communityPortList1:
chassisIp: 192.168.28.5
Traffic1@Network1:
- [1,1]
communityPortList2:
chassisIp: 192.168.28.5
Traffic2@Network2:
- [1,2]
testcase yml file sample:
file location: /your_path/KeystackTests/Modules/IxLoad/Testcases/http.yml
title: HTTP
description: Validate HTTP
# If you have predefined Jira Issues as testcases, state the
# Issue Key to use for appending failure descriptions to the existing Jira Issue Key.
#jiraTestcaseIssueKey: KEYS-46
# The path must begins with /Modules/
script: /Modules/IxLoad/Scripts/LoadSavedConfigFile/LoadConfigFileEvalStats.py
exportedConfigFile: IxL_Http_Ipv4Ftp_vm_8.20.rxf
configParametersFile: demoConfigs.yml
# Which app to use for running the script
app: IxLoad/applet_IxLoad.py
Configuration Parameters file:
file location: /your_path/KeystackTests/Modules/IxLoad/ConfigParameters/demoConfigs.yml
# Choices of IxLoad Gateway server OS: linux or windows
serverOs: windows
# Which IxLoad version are you using for your test?
# To view all the installed versions, go on a web browser and enter:
# http://<server ip>:8080/api/v0/applicationTypes
ixLoadVersion: 9.30.0.331
# Do you want to delete the session at the end of the test or if the test failed?
deleteSession: True
forceTakePortOwnership: True
# API-Key: Use your user API-Key if you want added security
apiKey: None
# For IxLoad versions prior to 8.50 that doesn't have the rest api to download results.
# Set to True if you want to save run time stat results to CSV files.
saveStatsToCsvFile: True
playbook yml file sample:
file location: /your_path/KeystackTests/Playbooks/ixLoadRegression.yml