def item_name_analyze(item_name):
    """
    Return a basic test name and parameters
    """
    item_args = []
    if '[' not in item_name:
        test_basic_name = item_name
    else:
        test_basic_name, parameters = item_name.split('[', 1)
        parameters = parameters.rsplit(']', 1)[0]
        previous_char_separator = True
        parameter = ''
        for index, char in enumerate(parameters):
            if previous_char_separator or char != '-':
                parameter += char
                previous_char_separator = False
            else:
                item_args.append(parameter)
                parameter = ''
                previous_char_separator = True
        item_args.append(parameter)
    return test_basic_name, item_args
