Commit 1907367b authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增流程十数据库验证脚本

parent 107b793c
...@@ -10,6 +10,7 @@ curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所 ...@@ -10,6 +10,7 @@ curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所
rootPath = os.path.split(curPath)[0] # [0]表示元组中的为一个元素 rootPath = os.path.split(curPath)[0] # [0]表示元组中的为一个元素
# print('当前项目的根目录', rootPath) # print('当前项目的根目录', rootPath)
sys.path.append(rootPath) # 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本 sys.path.append(rootPath) # 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本
sys.path.append(os.path.join(rootPath,'common'))
# print('根据当前文件获取当前文件所在目录的路径', os.path.dirname(__file__)) # print('根据当前文件获取当前文件所在目录的路径', os.path.dirname(__file__))
from airtest.core.helper import using from airtest.core.helper import using
...@@ -25,7 +26,7 @@ from common.db.sql.sql_del_branch_info import delData ...@@ -25,7 +26,7 @@ from common.db.sql.sql_del_branch_info import delData
# sys.path.append(rootPath) # 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本 # sys.path.append(rootPath) # 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本
# print('rootPath',rootPath) # print('rootPath',rootPath)
# sys.path.append(os.path.join(rootPath,'common'))
# print(sys.path) # print(sys.path)
import tkinter as tk import tkinter as tk
from tkinter import * from tkinter import *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment