-
Notifications
You must be signed in to change notification settings - Fork 1
/
libraries.txt
194 lines (172 loc) · 8.37 KB
/
libraries.txt
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
Following libraries are available:
./cfg_01_gradle.sh :
Loads configuration generated by gradle
$resources_dir: Directory with gradle system test resources.
$expanded_productA_simulator : Directory where productA test resources jar is extracted.
$expanded_productB_simulator : Directory where productB test resources jar is extracted.
$expanded_productC_simulator : Directory where productC test resources jar is extracted.
./cfg_02_dirs.sh :
$cfg_tests_work_dir : path to working directory for tests
./cfg_50_proxy.sh :
Configure proxy settings instead of system environment variables that are lost on Jenkins.
./cfg_61_example_productA.sh :
ProductA configuration parameters for tests.
Be sure not to export those variables as they'll override content of configuration files.
$productA_kit_dir : A directory with kit of productA.
$productA_install_root : Root directory where productA will be installed.
$productARtListenPort : Network port where productA will listen for real time events.
$productAActionListenPort : Network port where productA will listen for resynchronization requests from productB.
$emsActionListenPort : Network port where EMS is expected to receive resynchronization requests.
./cfg_61_example_productB.sh :
ProductB configuration parameters for tests.
$productB_kit_dir : A directory with kit of productB.
$platform_user : User account that should be used to run commands for ProductB.
./cfg_61_example_productC.sh :
ProductC configuration parameters for tests.
$productC_kit_dir : A directory with kit of productC.
./cfg_62_simulator.sh :
Configuration of simulator.
./cfg_tests.sh :
Defines test sets.
$cfg_name : name of this test package
Filters that define test sets and their properties.
Inclusion filter:
cfg_filter_include_<test set name>="<regexp>"
Exclusion filter:
cfg_filter_exclude_<test set name>="<regexp>"
If either inclusion or exclusion filter is not specified
then default one is used.
Additional flags:
cfg_filter_flags_<test set name>="<flags>"
Flags could be:
disable_traps - if test set fails then no hooks are run
Required user:
cfg_filter_user_<test set name>="<user name>"
If required user is not set then user is not checked or changed automatically.
$cfg_filter_include_default : default inclusion filter
Used when no option is specified on command line or no inclusion
pattern is specified for named filter.
$cfg_filter_exclude_default : default exclusion filter
Used when no option is specified on command line or no exclusion
pattern is specified for named filter.
./lib_80_simulator.sh :
Support functions for work with Groovy based per test case simulator.
Function run_simulator :
Runs simulator and waits until it exits.
Usage: exec_expect_ok "[SIM_BASE_CP=$BUILD_DIR/libs/simulator/*] run_simulator [script] [param1 [param2 [...]]]"
By default, script is the same as test script name but with .sh replaced with .groovy.
If script doesn't end with .groovy then it is considered to be a script parameter instead.
Script is supposed to be in $bin_dir.
Groovy and other dependencies are supposed to be in BUILD_DIR/libs/simulator/.
Java is taken from $JAVA variable.
You can add an extra classpath directory using simulator_cp_extra variable.
This variable is evaluated dynamically so you can escape dollar within it and it
will be evaluated correctly at run time.
You can pass additional java options using SIM_JAVA_OPTS environment variable.
./lib_90_example_productA.sh :
Functions specific to productA.
$productA_home : ProductA installation directory.
$productA_conf : Path to directory with configuration files of productA.
$productA_cfg_adv : ProductA advanced configuration directory.
$productA_cfg_cst : ProductA customization configuration directory.
$productA_data : ProductA data directory.
$productA_log : ProductA log directory.
$productA_lib : ProductA library directory.
$productA_log_file : Log file of productA.
Function configure_productA_processing_trace :
Sets productA to flow tracing (permanently)
Usage: configure_productA_processing_trace
Function configure_productA_full_trace :
Sets productA to full tracing (permanently)
Usage: configure_productA_full_trace
Function configure_productA_production_trace :
Sets productA to production logging (permanently)
Usage: configure_productA_production_trace
Function start_productA :
Start productA.
Usage: start_productA
Function stop_productA :
Stop productA.
Usage: stop_productA
Function restart_productA :
Restart productA.
Usage: restart_productA
Function check_productA_installed :
Checks that adapters is installed
Usage: check_productA_installed
Function get_productA_pid :
Gets process id of productA.
Usage: productA_pid=$(get_productA_pid)
./lib_90_example_productB.sh :
Functions specific to productB.
$productB_exploded_kit_dir : A directory where extracted productB kit is located
$productB_log_java : Log for Java part
$productB_log_platform : Log for Platform part
$productB_default_trace_mask : Default trace mask
$PRODUCTB_CONF_DIR : Path to directory with configuration files of AM.
Function set_productB_platform_full_trace_for_current_process :
Sets ProductB to full logging (only for current process)
Usage: set_productB_platform_full_trace_for_current_process
Function set_productB_platform_processing_trace_for_current_process :
Sets ProductB to flow tracing (only for current process)
Usage: set_productB_platform_processing_trace_for_current_process
Function set_productB_platform_production_trace_for_current_process :
Sets ProductB to production logging (only for current process)
Usage: set_productB_platform_production_trace_for_current_process
Function configure_productB_processing_trace_and_restart :
Sets ProductB to flow tracing (permanently)
Usage: configure_productB_processing_trace_and_restart
Function configure_productB_full_trace_and_restart :
Sets ProductB to full tracing (permanently)
Usage: configure_productB_full_trace_and_restart
Function configure_productB_production_trace_and_restart :
Sets ProductB to production logging (permanently)
Usage: configure_productB_production_trace_and_restart
Function start_productB :
Start productB.
Usage: start_productB
Function stop_productB :
Stop productB.
Usage: stop_productB
Function restart_productB :
Restart productB.
Usage: restart_productB
Function check_productB_installed :
Checks that productBs is installed
Usage: check_productB_installed
Function check_productB_activated :
Checks that productBs is activated
Usage: check_productB_activated
Function find_productB_jvm :
Gets the actual JVM used by AM.
ProductB must have been running as log is used to understand which JVM is used.
Usage: productB_jvm=$(find_productB_jvm)
Function get_productB_pid :
Gets process id of AM.
Usage: productB_pid=$(get_productB_pid)
./lib_90_example_productC.sh :
Functions specific to productC.
$productC_exploded_kit_dir : A directory where extracted productC kit is located
$PRODUCTC_CONF_DIR : Path to directory with configuration files of AM.
./lib_91_testset.sh :
Function flow_prepare :
Cleanup and check OC for first EMS instance.
Function flow_cleanup :
Cleanup OC for first EMS instance.
Function flow_prepare_all :
Cleanup and check all OCs.
Function flow_cleanup_all :
Cleanup all OCs.
./lib_92_jvm_leak.sh :
A library to check ProductB JVM for memory leaks.
Function dump_productB_heap :
Dumps ProductB heap statistics.
Usage: dump_productB_heap index
Function check_productB_heap_for_leaks :
Run a trend check on heap dumps generated by dump_productB_heap.
Usage: check_productB_heap_for_leaks [ignore_patterens_list]
ignore_patterens_list - is a comma separated list of regexp patterns for class names
to be ignored during heap dump analysis.
Function clean_productB_dumps :
Deletes dumps generated by dump_productB_heap.
Usage: clean_productB_dumps