Exemple #1
0
def request_without_name_for_profile():
    data = {
        "tradingProfile": {
            "platforms": ["MT4_MARKET_REAL", "MT4_MARKET_DEMO"]
        }
    }
    R1 = requests_to_service.change_profile_trueurl(data)
    return R1
Exemple #2
0
def value_to_name_not_str():
    data = {
        "tradingProfile": {
            "name": 123456,
            "platforms": ["MT4_MARKET_REAL", "MT4_MARKET_DEMO"]
        }
    }
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #3
0
def not_found_platform_in_profile():
    data = {
        "tradingProfile": {
            "name": "Default_autotest",
            "platforms": ["MT4_INSTANT_DEMO"]
        }
    }
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #4
0
def no_connection_with_server():
    data = {
        "tradingProfile": {
            "name": "For_AutoTest",
            "platforms": ["MT4_TEST"]
        }
    }
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #5
0
def value_to_platforms_two_servers_one_no_connection():
    data = {
        "tradingProfile": {
            "name": "For_AutoTest",
            "platforms": ["MT4_INSTANT_REAL1", "MT4_TEST"]
        }
    }
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #6
0
def value_to_platforms_not_str():
    data = {
        "tradingProfile": {
            "name": "Default_autotest",
            "platforms": [123456]
        }
    }
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #7
0
def not_found_profile_for_name_value():
    data = {
        "tradingProfile": {
            "name": "for test",
            "platforms": ["MT4_INSTANT_REAL1", "MT4_MARKET_REAL"]
        }
    }
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #8
0
def All_Crisis():
    data = {"tradingProfile": {"name": "Crisis_autotest"}}
    R1 = requests_to_service.change_profile_trueurl(data)
    time.sleep(2)
    R2 = Get_data_from_server.Get_data_from_server(MT4_INSTANT_REAL1)
    R3 = Get_data_from_server.Get_data_from_server(MT4_INSTANT_REAL2)
    R4 = Get_data_from_server.Get_data_from_server(MT4_MARKET_REAL)
    R5 = Get_data_from_server.Get_data_from_server(MT4_MARKET_REAL2)

    return R1, R2, R3, R4, R5
Exemple #9
0
def correct_value_to_platforms_two_servers():
    data = {
        "tradingProfile": {
            "name": "Crisis_autotest",
            "platforms": ["MT4_MARKET_REAL", "MT4_INSTANT_REAL1"]
        }
    }
    R1 = requests_to_service.change_profile_trueurl(data)
    time.sleep(2)

    R3 = Get_data_from_server.Get_data_from_server(MT4_INSTANT_REAL1)
    R2 = Get_data_from_server.Get_data_from_server(MT4_MARKET_REAL)
    return R1, R2, R3
Exemple #10
0
def no_value_to_platforms():
    data = {"tradingProfile": {"name": "Default_autotest", "platforms": []}}
    R1 = requests_to_service.change_profile_trueurl(data)
    time.sleep(2)

    R2 = Get_data_from_server.Get_data_from_server(MT4_INSTANT_REAL1)
    R3 = Get_data_from_server.Get_data_from_server(MT4_INSTANT_REAL2)
    R5 = Get_data_from_server.Get_data_from_server(MT4_MARKET_REAL)
    R6 = Get_data_from_server.Get_data_from_server(MT4_INSTANT_DEMO)
    R7 = Get_data_from_server.Get_data_from_server(MT4_MARKET_DEMO)
    R8 = Get_data_from_server.Get_data_from_server(MT4_MARKET_REAL2)

    return R1, R2, R3, R5, R6, R7, R8
Exemple #11
0
def request_without_name_and_platform():
    data = {"tradingProfile": {}}
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #12
0
def no_body_in_the_request_changeprofile():
    data = {}
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult
Exemple #13
0
def no_valid_json_1():
    data = '{"tradingProfile":{"name":"Default_autotest","platforms":["MT4_MARKET_DEMO"]}}'
    FinishResult = requests_to_service.change_profile_trueurl(data)
    return FinishResult