Skip to content

Commit 044032b

Browse files
committed
ui
1 parent 7765b94 commit 044032b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+404
-142
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Common/.DS_Store

0 Bytes
Binary file not shown.

Common/Tool/.DS_Store

8 KB
Binary file not shown.

Common/Tool/clean_meta

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
#! /bin/sh
3+
4+
filepath=$(cd "$(dirname "$0")"; pwd)
5+
6+
# VMware 虚拟机共享目录里路径带空格 需要转换处理
7+
str1=$filepath
8+
str2="VMware"
9+
if [[ $str1 =~ $str2 ]]
10+
then
11+
echo "包含"
12+
#去除带空格的路径
13+
#filepath=${filepath// /\\ }
14+
filepath=${filepath#/Volumes/VMware Shared Folders/}
15+
cd /Volumes/VMware\ Shared\ Folders
16+
else
17+
echo "不包含"
18+
fi
19+
20+
21+
echo $filepath
22+
cd $filepath
23+
python3 clean_meta.py
24+
25+
26+

Common/Tool/clean_meta.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
@set filepath = %~dp0
3+
4+
c:/Python27/python clean_meta.py %~dp0
5+
6+
7+
8+
@Pause
9+
10+

Common/Tool/clean_meta.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/python
2+
# coding=utf-8
3+
import zipfile
4+
import shutil
5+
import os
6+
import sys
7+
8+
#获取脚本文件的当前路径
9+
def cur_file_dir():
10+
#获取脚本路径
11+
path = sys.path[0]
12+
#判断为脚本文件还是py2exe编译后的文件,如果是脚本文件,则返回的是脚本的目录,如果是py2exe编译后的文件,则返回的是编译后的文件路径
13+
if os.path.isdir(path):
14+
return path
15+
elif os.path.isfile(path):
16+
return os.path.dirname(path)
17+
18+
def scanApkFiles(sourceDir):
19+
for file in os.listdir(sourceDir):
20+
sourceFile = os.path.join(sourceDir, file)
21+
#cover the files
22+
if os.path.isfile(sourceFile):
23+
# print sourceFile
24+
# 分割文件名与后缀
25+
temp_list = os.path.splitext(file)
26+
# name without extension
27+
src_apk_name = temp_list[0]
28+
# 后缀名,包含. 例如: ".apk "
29+
src_apk_extension = temp_list[1]
30+
if '.meta'==src_apk_extension:
31+
print(sourceFile)
32+
os.remove(sourceFile)
33+
34+
#目录嵌套
35+
if os.path.isdir(sourceFile):
36+
# print sourceFile
37+
scanApkFiles(sourceFile)
38+
39+
40+
41+
42+
curDir = cur_file_dir()
43+
scanApkFiles(curDir)
44+

Common/WebDriver/WebDriverCmd.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ def GetParent(self,item,level =1):
173173
def GetParentInternal(self,item):
174174
return item.find_element(By.XPATH, "./..")
175175

176+
177+
178+
# key = "span[@class = 'info-item-content']"
179+
def FindBrother(self,item,key):
180+
# .//../span[@class = 'info-item-content']
181+
str = ".//../"+key
182+
return item.find_element_by_xpath(str)
183+
176184
def FindChild(self,item,key,isWait=False):
177185
ret = None
178186
if isWait:
188 Bytes
Binary file not shown.

GameProjectSample/.DS_Store

0 Bytes
Binary file not shown.

GameProjectSample/Code/.DS_Store

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)