def get_credential(file_path):
    '\n        Read credential json file and return\n        username and password\n    '
    with open(file_path) as json_file:
        config = json.load(json_file)
    assert ('username' in config.keys())
    assert ('password' in config.keys())
    return (config['username'], config['password'])
Read credential json file and return
username and password
def get_credential(file_path):
    '\n        Read credential json file and return\n        username and password\n    '
    with open(file_path) as json_file:
        config = json.load(json_file)
    assert ('username' in config.keys())
    assert ('password' in config.keys())
    return (config['username'], config['password'])