diff --git a/public/tools.py b/public/tools.py index 4e28a748137bd346feb4b1cc6d27b423513e47b6..dc8bb51deb9717e3defae411589e8821b3c17ae9 100644 --- a/public/tools.py +++ b/public/tools.py @@ -134,7 +134,7 @@ def get_pro_path(): curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所在目录的绝对路径 # print(curPath) # C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1\main # #将当前文件的所在目录的绝对路径进行分离,分离成C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1 和main,存到元组中 - print(os.path.split(curPath)) + # print(os.path.split(curPath)) rootPath = os.path.split(curPath)[0] # [0]表示元组中的为一个元素 # print('当前项目的根目录', rootPath) return rootPath diff --git a/testcase/test_scene1/scene3_mainflow.py b/testcase/test_scene1/scene3_mainflow.py index d8a5d7824a453b6987472c95a85b4128e8786bba..88e19ab14f6df034d627c8f159f241c03dda07b9 100644 --- a/testcase/test_scene1/scene3_mainflow.py +++ b/testcase/test_scene1/scene3_mainflow.py @@ -228,7 +228,7 @@ class SalesOrder(): if __name__ == '__main__': try: - step1 = LoginSys1() + step1 = LoginSys() step2_1 = QuickPurchase() step2_2 = PurchaseOrder() step3 = SalesOrder()