diff --git a/config/allure_config/双击打开Allure报告.bat b/config/allure_config/双击打开Allure报告.bat index 8e592fd..d92499a 100644 --- a/config/allure_config/双击打开Allure报告.bat +++ b/config/allure_config/双击打开Allure报告.bat @@ -2,14 +2,10 @@ setlocal enabledelayedexpansion set "chrome_path=" -::从注册表查找谷歌浏览器路径 set reg_query_command=reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /ve -::遍历注册表查询结果 for /f "tokens=2*" %%A in ('%reg_query_command%') do ( - ::如果有REG_SZ,则证明找到了谷歌浏览器 if "%%A"=="REG_SZ" ( - ::如果路径存在,则设置谷歌浏览器绝对路径到变量chrome_path set "tmp_chrome_path=%%B" if exist "!tmp_chrome_path!" ( set "chrome_path=%%B" @@ -17,19 +13,13 @@ for /f "tokens=2*" %%A in ('%reg_query_command%') do ( ) ) -::如果上面找到了谷歌浏览器的路径 + if defined chrome_path ( - ::打印找到了谷歌浏览器的文件地址 echo Chrome found at: "%chrome_path%" - ::带参启动谷歌浏览器,使其不校验跨域问题 - "%chrome_path%" --disable-web-security --user-data-dir="./" %~dp0/index.html + "%chrome_path%" --disable-web-security --user-data-dir="%~dp0/tmp" %~dp0/index.html ) else ( - ::如果没找到,打印没找到 echo Chrome not found. - ::打印启动web信息 echo start a webserver ... - ::启动一个web服务监听5001端口,在后台运行。默认用当前文件夹的index.html作为首页 start /b http_server.exe -port 5001 - ::使用默认浏览器打开web服务的地址并等待浏览器关闭 start /WAIT msedge.exe http://127.0.0.1:5001 ) diff --git a/config/allure_config/微信图片_20230615174806.jpg b/config/allure_config/微信图片_20230615174806.jpg deleted file mode 100644 index c9fbb9d..0000000 Binary files a/config/allure_config/微信图片_20230615174806.jpg and /dev/null differ diff --git a/config/allure_config/微信图片_20230615174812.png b/config/allure_config/微信图片_20230615174812.png deleted file mode 100644 index 378b197..0000000 Binary files a/config/allure_config/微信图片_20230615174812.png and /dev/null differ diff --git a/config/allure_config/微信图片_20230615174817.jpg b/config/allure_config/微信图片_20230615174817.jpg deleted file mode 100644 index c27e2a4..0000000 Binary files a/config/allure_config/微信图片_20230615174817.jpg and /dev/null differ