from common.myTest import MyTest from common.logger import logger from common.connectMysql import ConnectMysql from common.connectRedis import ConnectRedis from common.config import GetInit from common.tools import get_redis_name from common.count import count_value_sell_first from common.count import count_value_buy_first import time, unittest from common.tools import init_environment test_data = GetInit().get_test_data(file_name="test_30.yaml") base_test_data = GetInit().get_test_data(file_name="base.yaml") base_url, mysql_type, redis_type = init_environment() buy_price = test_data.get("buy_price") buy_num = test_data.get("buy_num") progre_buy_price = test_data.get("progre_buy_price") progre_buy_num = test_data.get("progre_buy_num") end_buy_price = test_data.get("end_buy_price") end_buy_num = test_data.get("end_buy_num") sell_price = test_data.get("sell_price") sell_num = test_data.get("sell_num") progre_sell_price = test_data.get("progre_sell_price") progre_sell_num = test_data.get("progre_sell_num") end_sell_price = test_data.get("end_sell_price") end_sell_num = test_data.get("end_sell_num") transtion_id = 10 main_currency_id = 5 target_currency_id = 2
from common.jsonparser import JMESPathExtractor import requests from common.connectRedis import ConnectRedis from common.connectMysql import ConnectMysql from common.logger import logger from common.myTest import MyTest from common.config import GetInit from common.names import names from common.params import * import ddt import math from common.run import query_user_balance_value from common.tools import init_environment test_data = GetInit().get_test_data(file_name="base.yaml") user_password = test_data.get("password") base_url, mysql_type, redis_type = init_environment() login_header = names.login_header BUYER = names.user_39 SELLER = names.user_41 transtion_4 = GetInit().get_test_data(file_name="transtion_4.yaml") transtion_11 = GetInit().get_test_data(file_name="transtion_11.yaml") transtion_12 = GetInit().get_test_data(file_name="transtion_12.yaml") transtion_10 = GetInit().get_test_data(file_name="transtion_10.yaml") transtion_24 = GetInit().get_test_data(file_name="transtion_24.yaml") transtion_25 = GetInit().get_test_data(file_name="transtion_25.yaml") transtion_37 = GetInit().get_test_data(file_name="transtion_37.yaml") # transtion_35 = GetInit().get_test_data(file_name="transtion_35.yaml") transtion_36 = GetInit().get_test_data(file_name="transtion_36.yaml") # transtion_33 = GetInit().get_test_data(file_name="transtion_33.yaml")
# coding=utf-8 from common.jsonparser import JMESPathExtractor from common.run import query_user_balance_value from common.base import Base from common.logger import logger from common.myTest import MyTest from common.connectRedis import ConnectRedis from common.connectMysql import ConnectMysql from common.config import GetInit from common.tools import count_balance from common.tools import get_redis_name import time test_data = GetInit().get_test_data(file_name="test_40.yaml") base_test_data = GetInit().get_test_data(file_name="base.yaml") mysql_type = base_test_data.get("50_mysql_type") redis_type = base_test_data.get("50_redis_type") sell_price = 2000000000 buy_price = 1000000000 sell_num = 3000000000 buy_num = 1000000000 transtion_id = 10 main_currency_id = 5 target_currency_id = 2 BUYER = base_test_data.get("market_user_38") SELLER = base_test_data.get("market_user_40")