Kea2-python 1.2.1__py3-none-any.whl → 1.2.2b3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kea2/assets/monkeyq.jar CHANGED
Binary file
kea2/cli.py CHANGED
@@ -108,89 +108,6 @@ def cmd_merge(args):
108
108
  logger.error(f"Error during merge operation: {e}")
109
109
 
110
110
 
111
- def cmd_mergefbm(args):
112
- """Merge all FBM files in the specified folder and its subfolders using sum mode"""
113
- from .fbm_parser import FBMMerger
114
- import glob
115
- import shutil
116
-
117
- try:
118
- # Validate input path
119
- input_path = Path(args.path).resolve()
120
- if not input_path.exists():
121
- logger.error(f"Input directory does not exist: {input_path}")
122
- return
123
- if not input_path.is_dir():
124
- logger.error(f"Input path is not a directory: {input_path}")
125
- return
126
-
127
- # Find all FBM files in the directory and its subdirectories
128
- fbm_files = glob.glob(str(input_path / "**" / "*.fbm"), recursive=True)
129
-
130
- if not fbm_files:
131
- logger.error(f"No FBM files found in {input_path} or its subdirectories")
132
- return
133
-
134
- logger.debug(f"Found {len(fbm_files)} FBM files to merge:")
135
- for fbm_file in fbm_files:
136
- logger.debug(f" - {fbm_file}")
137
-
138
- # Set default output file if not provided
139
- if not args.output:
140
- output_file = input_path / "merged.fbm"
141
- else:
142
- output_file = Path(args.output).resolve()
143
-
144
- # Initialize merger
145
- merger = FBMMerger()
146
-
147
- # Handle different cases
148
- if len(fbm_files) == 1:
149
- # Only one file, just copy it to output
150
- shutil.copyfile(fbm_files[0], output_file)
151
- logger.info(f"Only one FBM file found, copied to {output_file}")
152
- else:
153
- # Merge files iteratively: start with the first file and merge with each subsequent file
154
- # Create a temporary file for the intermediate merged result
155
- temp_output = input_path / f".tmp_merged.fbm"
156
-
157
- # Start with the first file as the initial merged result
158
- shutil.copyfile(fbm_files[0], temp_output)
159
-
160
- # Iterate through the remaining files and merge them one by one
161
- for i in range(1, len(fbm_files)):
162
- current_file = fbm_files[i]
163
- next_temp = input_path / f".tmp_merged_{i}.fbm"
164
-
165
- logger.debug(f"Merging {temp_output} and {current_file} into {next_temp}")
166
- success = merger.merge(str(temp_output), str(current_file), str(next_temp), merge_mode='sum')
167
-
168
- if not success:
169
- logger.error(f"Failed to merge {temp_output} and {current_file}")
170
- # Clean up temporary files
171
- for f in [temp_output, next_temp]:
172
- if f.exists() and f.name.startswith(".tmp_"):
173
- f.unlink()
174
- return
175
-
176
- # Remove the previous temporary file and update to the new one
177
- temp_output.unlink()
178
- temp_output = next_temp
179
-
180
- # Move the final merged file to the output location
181
- if temp_output != output_file:
182
- temp_output.replace(output_file)
183
-
184
- print(f"✅ All FBM files merged successfully!", flush=True)
185
- print(f"📊 Merged FBM file: {output_file}", flush=True)
186
- print(f"📈 Merged {len(fbm_files)} FBM files", flush=True)
187
-
188
- except Exception as e:
189
- logger.error(f"Error during FBM merge operation: {e}")
190
- import traceback
191
- logger.debug(traceback.format_exc())
192
-
193
-
194
111
  def cmd_run(args):
195
112
  base_dir = getProjectRoot()
196
113
  if base_dir is None:
@@ -251,28 +168,7 @@ _commands = [
251
168
  help="Output directory for merged report (optional)"
252
169
  )
253
170
  ]
254
- ),
255
- dict(
256
- action=cmd_mergefbm,
257
- command="mergefbm",
258
- help="merge all FBM files in the specified folder and its subfolders using sum mode",
259
- flags=[
260
- dict(
261
- name=["path"],
262
- args=["-p", "--path"],
263
- type=str,
264
- required=True,
265
- help="Path to the folder containing FBM files to merge"
266
- ),
267
- dict(
268
- name=["output"],
269
- args=["-o", "--output"],
270
- type=str,
271
- required=False,
272
- help="Output file path for merged FBM file (optional, default: merged.fbm in the input folder)"
273
- )
274
- ]
275
- )
171
+ )
276
172
  ]
277
173
 
278
174
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Kea2-python
3
- Version: 1.2.1
3
+ Version: 1.2.2b3
4
4
  Summary: A python library for supporting and customizing automated UI testing for mobile apps
5
5
  Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
6
6
  Requires-Python: >=3.8
@@ -1,6 +1,6 @@
1
1
  kea2/__init__.py,sha256=31JQuidfvcTzczGSWgFI6E3LH1Qfyzl7JiHY6IDO9_M,328
2
2
  kea2/adbUtils.py,sha256=6IQKwlE4tsI5tbDpbAnVM7RQK20pw_QxwZDAiuNnukg,8984
3
- kea2/cli.py,sha256=T7wXjCp4AnVS58F0PkE_XRz_rWY0gY33D1z9WNfxiWw,10660
3
+ kea2/cli.py,sha256=Dw00I_kR3geVxBv7KCjgBcRlGuSYrHKqzGxkU4EZ_Fo,6506
4
4
  kea2/fastbotManager.py,sha256=oICrZBemIMr0fKt2envzIePgiJ8pRif7ZmmTuK5JA6A,9022
5
5
  kea2/fbm_parser.py,sha256=dpE78-kOuSSyH02MeecWFVQenZH8uvHDNN9HKSemg1Q,35996
6
6
  kea2/fbm_plugin.py,sha256=lTKVWVR01XNe8uCoPM65QifXzXAdUGZRyavYVnOG-xI,3239
@@ -21,7 +21,7 @@ kea2/assets/config_version.json,sha256=dYZRNo17hQq2SV45xxRCwDmykhsWWYI__w7vZXMHv
21
21
  kea2/assets/fastbot-thirdpart.jar,sha256=0SZ_OoZFWDGMnazgXKceHgKvXdUDoIa3Gb2bcifaikk,85664
22
22
  kea2/assets/framework.jar,sha256=rTluOJJKj2DFwh7ascXso1udYdWv00BxBwSQ3Vmv-fw,1149240
23
23
  kea2/assets/kea2-thirdpart.jar,sha256=HYdtG2gqDLuLb72dpK3lX-Y6QUNTrJ-bfQopU5aWpfo,359346
24
- kea2/assets/monkeyq.jar,sha256=Khr_GDur-jA2YGkDZCcDXMIJeVctlrLDDjV2WXiLonc,118773
24
+ kea2/assets/monkeyq.jar,sha256=jeEbTgRcuPeNO91iXoRHLvJ5GPvqH7wlF4QMWmP1mgE,137899
25
25
  kea2/assets/quicktest.py,sha256=11VgSAHYHgTAhBGqwyQkhTecmIAIrOSQgu1y4DkEuCU,5782
26
26
  kea2/assets/fastbot_configs/abl.strings,sha256=Rn8_YEbVGOJqndIY_-kWnR5NaoFI-cuB-ij10Ddhl90,75
27
27
  kea2/assets/fastbot_configs/awl.strings,sha256=-j4980GoWQxGOM9ijAwXPQmziCwFBZJFmuiv2tOEaYI,101
@@ -32,10 +32,10 @@ kea2/assets/fastbot_configs/max.strings,sha256=k82GAAZZG7KbDI7bk7DUklp41WJJO7j-j
32
32
  kea2/assets/fastbot_configs/max.tree.pruning,sha256=dm0oesN75FFbVSkV7STDUmrNMpQUBEuO7Uymt6nEkBc,629
33
33
  kea2/assets/fastbot_configs/teardown.py,sha256=dW6xHzozh2vXTB1qfCxAlT0xcv5kFwzX7kW1FmLfNA0,363
34
34
  kea2/assets/fastbot_configs/widget.block.py,sha256=lxWLca9Az0Ba3EBe8jcYmuEa1WSIhIDDgEG_r7b32R8,1160
35
- kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so,sha256=WMRwqCOy5MrflaqSKUSljq2Vi-zWdgqgMiJpwaf3AyI,2058952
36
- kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so,sha256=K6PXqabGfx-hPFOgoaYPJALXYGL3b0o_EYhEEEiO6bE,1407540
37
- kea2/assets/fastbot_libs/x86/libfastbot_native.so,sha256=Oc0dCJSAQT7IhTJmIARt_otSMl0PcKuodScjXrsmWWY,2156540
38
- kea2/assets/fastbot_libs/x86_64/libfastbot_native.so,sha256=SOQcU3vRnwaIRYbtXEXKHy7U6CY3HFfbvFZxj1uQvxU,2187928
35
+ kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so,sha256=1a8ZXikAo2-tssD5weXizs4gqG724KzPi2BR-QFJvM0,2468632
36
+ kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so,sha256=BkClTMOamkXyA81Vh00xMH9syOWOLuQk8h9Kiyxeuj8,1727688
37
+ kea2/assets/fastbot_libs/x86/libfastbot_native.so,sha256=ppxTJAkqDLLLlpMJykTHJMN2i3gv4df0zp_I2rXmuys,2591012
38
+ kea2/assets/fastbot_libs/x86_64/libfastbot_native.so,sha256=PGpk7cOxZF6VMQixuO3kRD_ZNq-6xEtOCDDrgKb-LQo,2651928
39
39
  kea2/fastbotx/ActivityTimes.py,sha256=TdDf-R6rD6Ts8yGTynD9PQ35HXxIBoetPnWRt9SO85U,1926
40
40
  kea2/fastbotx/ReuseEntry.py,sha256=qndFBv2EoJbQUz1iIghJbn-Vb1RPJBpDdJbqYQGs1OE,2745
41
41
  kea2/fastbotx/ReuseModel.py,sha256=n2uLO1_wJrKaFaMh-pHE_BiW3Wm4_wmkdFeTkIIxlWI,2245
@@ -48,9 +48,9 @@ kea2/report/utils.py,sha256=r-oPtqbSDo8X0-V7zoIrz49TJ2-w-W444DS0de67mtk,344
48
48
  kea2/report/widget_coverage.py,sha256=cKftBeirNNdn2deGAqQ5ZZm24wF4hNv5uqMdypeoMf4,6413
49
49
  kea2/report/templates/bug_report_template.html,sha256=PVhQ1gkXIvS-1gYrvHGSxLSXK2ryK_zhPHyuCDj1JX4,190851
50
50
  kea2/report/templates/merged_bug_report_template.html,sha256=hu2ZXl1ktCcteG3UKdYwPhMKj1nyRXQrAW1ipAX-UjM,166488
51
- kea2_python-1.2.1.dist-info/licenses/LICENSE,sha256=nM9PPjcsXVo5SzNsjRqWgA-gdJlwqZZcRDSC6Qf6bVE,2034
52
- kea2_python-1.2.1.dist-info/METADATA,sha256=gjaOW-JJZYk0uLOzlmLbMrMoWOdeFQs420qVk6-JreE,22051
53
- kea2_python-1.2.1.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
54
- kea2_python-1.2.1.dist-info/entry_points.txt,sha256=mFX06TyxXiUAJQ6JZn8QHzfn8n5R8_KJ5W-pTm_fRCA,39
55
- kea2_python-1.2.1.dist-info/top_level.txt,sha256=TsgNH4PQoNOVhegpO7AcjutMVWp6Z4KDL1pBH9FnMmk,5
56
- kea2_python-1.2.1.dist-info/RECORD,,
51
+ kea2_python-1.2.2b3.dist-info/licenses/LICENSE,sha256=nM9PPjcsXVo5SzNsjRqWgA-gdJlwqZZcRDSC6Qf6bVE,2034
52
+ kea2_python-1.2.2b3.dist-info/METADATA,sha256=ded5X2uU2ldonVKVZruDhYYySLtQcpxlXHo9qwqdKo0,22053
53
+ kea2_python-1.2.2b3.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
54
+ kea2_python-1.2.2b3.dist-info/entry_points.txt,sha256=mFX06TyxXiUAJQ6JZn8QHzfn8n5R8_KJ5W-pTm_fRCA,39
55
+ kea2_python-1.2.2b3.dist-info/top_level.txt,sha256=TsgNH4PQoNOVhegpO7AcjutMVWp6Z4KDL1pBH9FnMmk,5
56
+ kea2_python-1.2.2b3.dist-info/RECORD,,