

@classmethod
def setUpClass(cls):
    rc = controller.RootController()
    actual_out = util.capture_stdout(rc.execute, ['show', 'statistics'])
    TestShowStatistics.output_list = test_util.get_separate_output(actual_out, 'Statistics')
    TestShowStatistics.is_bar_present = False
    for item in TestShowStatistics.output_list:
        if ('~~test Bin Statistics~~' in item):
            TestShowStatistics.test_bin_stats = item
        elif ('~~bar Bin Statistics~~' in item):
            TestShowStatistics.bar_bin_stats = item
            TestShowStatistics.is_bar_present = True
        elif ('~~Service Statistics~~' in item):
            TestShowStatistics.service_stats = item
        elif ('~~bar Namespace Statistics~~' in item):
            TestShowStatistics.bar_namespace_stats = item
            TestShowStatistics.is_bar_present = True
        elif ('~~test Namespace Statistics~~' in item):
            TestShowStatistics.test_namespace_stats = item
        elif ('~~XDR Statistics~~' in item):
            TestShowStatistics.xdr_stats = item

dataset/ETHPy150Open aerospike/aerospike-admin/test/e2e/test_show.py TestShowStatistics.setUpClass/original