Ejemplo n.º 1
0
	
	# Get group level results.
	# Note: the statistic names should be identical to those that appear in the results CSV
	results = ixchariotApi.getGroupLevelResults(session, ["Throughput"], "AppMix 1")
	
	print "Group Level Results for AppMix 1:\n"
	for res in results:
		# Each object in the list of results has a printing function defined.
		# It will print the name of the statistic and the list of timestamp - value pairs.
		# For accessing each of these components separately see the example above.
		print res
		print ""
		
	# Get flow level results
	# Note: the statistic names should be identical to those that appear in the results CSV
	results = ixchariotApi.getFlowLevelResults(session, ["Throughput", "Total Datagrams Sent"], "FlowGroup 1", "RTP HD (10 Mbps)", "RTP")
	
	print "Flow Level Results for RTP HD (10 Mbps) (RTP) from FlowGroup 1:\n"
	for res in results:
		print res
		print ""
		
	# Get user level results
	# Note: the statistic names should be identical to those that appear in the results CSV
	# Get results for the first user
	results = ixchariotApi.getUserLevelResultsFromFlow(session, ["Throughput"], "FlowGroup 1", "RTP HD (10 Mbps)", "RTP", 1)
	
	print "User Level Results for first user in flow RTP HD (10 Mbps) (RTP), FlowGroup 1:\n"
	for res in results:
		print res
		print ""
    # results = ixchariotApi.getTestLevelResults(session, ["Min Mos"])

    print "Test Level Results: \n"
    for res in results:
        # Each object in the list of results is of type Statistic (contains the statistic name and a list of StatisticValue objects).
        print res.name
        for val in res.values:
            # The list will contain StatisticValue objects for all the reported timestamps since the beginning of the test.
            # Each StatisticValue object contains the timestamp and the actual value.
            print str(val.timestamp) + "      " + str(val.value)
        print ""

    # Get flow level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    results = ixchariotApi.getFlowLevelResults(session,
                                               ["Avg Mos", "Avg R-value"],
                                               "FlowGroup 1",
                                               "G.711a (64 kbps)", "RTP")

    print "Flow Level Results for AMR-NB (7.40 kbps) from FlowGroup 1:\n"
    for res in results:
        print res
        print ""

    # Get user level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    # Get results for the first user
    results = ixchariotApi.getUserLevelResultsFromFlow(session, ["Avg Mos"],
                                                       "FlowGroup 1",
                                                       "G.711a (64 kbps)",
                                                       "RTP", 1)
Ejemplo n.º 3
0
    results = ixchariotApi.getTestLevelResults(session, ["Throughput"])

    print "Test Level Results: \n"
    for res in results:
        # Each object in the list of results is of type Statistic (contains the statistic name and a list of StatisticValue objects).
        print res.name
        for val in res.values:
            # The list will contain StatisticValue objects for all the reported timestamps since the beginning of the test.
            # Each StatisticValue object contains the timestamp and the actual value.
            print str(val.timestamp) + "      " + str(val.value)
        print ""

    # Get flow level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    results = ixchariotApi.getFlowLevelResults(
        session, ["Throughput", "Total Datagrams Sent"], "FlowGroup 1",
        "TCP Baseline Performance", "TCP")

    print "Flow Level Results for TCP Baseline Performance (TCP) from FlowGroup 1:\n"
    for res in results:
        print res
        print ""

    # Get user level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    # Get results for the first user
    results = ixchariotApi.getUserLevelResultsFromFlow(
        session, ["Throughput"], "FlowGroup 1", "TCP Baseline Performance",
        "TCP", 1)

    print "User Level Results for first user in flow TCP Baseline Performance (TCP), FlowGroup 1:\n"