#!usr/bin/env python  
# -*- coding:utf-8 -*-
""" 
@author:user 
@file: globalparameter.py 
@time: 2017/12/05 
"""
import time
import os

'''
配置全局参数
'''
# 项目的绝对路径（因为 windows执行时需要绝对路径才能执行通过）
# project_path = "D:\\for2017\\SPframework-Helen_2.0\\"
# 获取项目路径
url = "http://service.380demo.eascs.com"
title = u"380金服平台"
# project_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)[0])))),'.'))
project_path = os.path.abspath(
    os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))))
# 错误图片截图路径
screenshot_path = project_path + "\\com\\ea\\screenshot"
# 测试用例代码存放路径（用于构建suite,注意该文件夹下的文件都应该以test开头命名）
test_case_path = project_path + "\\com\\ea\\cases"
# excel测试数据文档存放路径
test_data_path = project_path + "\\com\\ea\\resource"
test_data_name = test_data_path + "\\hk_plan.xls"
# 证件图片路径
test_pic_path = project_path + "\\com\\ea\\resource\\file.jpg"
# 银行还款计划
file_path = project_path + "\\com\\ea\\resource\\hk_plan.xls"
# 日志文件存储路径
log_path = project_path + "\\com\\ea\\log\\mylog.log"
# 测试报告存储路径，并以当前时间作为报告名称前缀
report_path = project_path + "\\com\\ea\\report\\"
report_name = report_path + time.strftime('%Y%m%d%H%S', time.localtime())
