예제 #1
0
 def setUp(self):
     self.client = Client()
     self.benchmark = create_benchmark()
     config = SimpleHttpGetConfig.objects.create(
         url="superman.com",
     )
     test = SimpleHttpGetTest.objects.create(
         benchmark=self.benchmark,
         config=config,
         order=0,
         protocol_info=[
             {
                 "Time": "2018-02-12T15:47:32.519422Z",
                 "Connections": {
                     "9df47356d2fd833b": {
                         "Streams": {
                             "3": {
                                 "BytesRead": 40972,
                             },
                         },
                     },
                 }
             },
             {
                 "Time": "2018-02-12T15:47:35.686581Z",
                 "Connections": {
                     "9df47356d2fd833b": {
                         "Streams": {
                             "3": {
                                 "BytesRead": 10240000,
                             },
                         },
                     },
                 },
             },
         ],
         start_time=datetime(2018, 1, 16, 10, 41, 40, 744000, tzinfo=pytz.utc),
         wait_time="5.0",
         duration="37.421521",
         wifi_bytes_received=45,
         wifi_bytes_sent=78,
         cell_bytes_received=33,
         cell_bytes_sent=25,
         multipath_service='aggregate',
         protocol='QUIC',
     )
     SimpleHttpGetResult.objects.create(
         test=test,
         success=True,
     )
예제 #2
0
 def setUp(self):
     self.client = Client()
     self.benchmark = create_benchmark()
     config = ConnectivityConfig.objects.create(
         url="superman.com",
         port=443,
     )
     test = ConnectivityTest.objects.create(
         benchmark=self.benchmark,
         config=config,
         order=0,
         protocol_info=get_quic_info(),
         start_time=datetime(2018,
                             1,
                             16,
                             10,
                             41,
                             40,
                             744000,
                             tzinfo=pytz.utc),
         wait_time="5.0",
         duration="37.421521",
         wifi_bytes_received=45,
         wifi_bytes_sent=78,
         cell_bytes_received=33,
         cell_bytes_sent=25,
         multipath_service='aggregate',
         protocol='QUIC',
     )
     result = ConnectivityResult.objects.create(
         test=test,
         success=True,
     )
     ConnectivityDelay.objects.create(
         result=result,
         delay=25.876,
     )
     ConnectivityDelay.objects.create(
         result=result,
         delay=150.112,
     )
     ConnectivityDelay.objects.create(
         result=result,
         delay=75.844,
     )
예제 #3
0
 def setUp(self):
     self.client = Client()
     self.benchmark = create_benchmark()
예제 #4
0
 def setUp(self):
     self.client = Client()
     self.benchmark = create_benchmark()
     config = StreamConfig.objects.create(
         url="superman.com",
         port=1234,
         upload_chunk_size=2000,
         download_chunk_size=2000,
         upload_interval_time="0.1",
         download_interval_time="0.1",
         duration="2.0",
     )
     test = StreamTest.objects.create(
         benchmark=self.benchmark,
         config=config,
         order=0,
         protocol_info=[
             {
                 "Time": "2018-02-12T15:47:32.519422Z",
                 "Connections": {},
             },
             {
                 "Time": "2018-02-12T15:47:35.686581Z",
                 "Connections": {},
             },
         ],
         start_time=datetime(2018, 1, 16, 10, 41, 40, 744000, tzinfo=pytz.utc),
         wait_time="5.0",
         duration="1.234",
         wifi_bytes_received=45,
         wifi_bytes_sent=78,
         cell_bytes_received=33,
         cell_bytes_sent=25,
         multipath_service='aggregate',
         protocol='QUIC',
     )
     result = StreamResult.objects.create(
         test=test,
         error_msg="Exiting client main with error InternalError: deadline exceeded",
         success=True,
     )
     StreamDelay.objects.create(
         result=result,
         time=datetime(2018, 1, 16, 10, 41, 47, 744000, tzinfo=pytz.utc),
         delay="0.1234",
         upload=True,
     )
     StreamDelay.objects.create(
         result=result,
         time=datetime(2018, 1, 16, 10, 41, 40, 744000, tzinfo=pytz.utc),
         delay="0.2345",
         upload=True,
     )
     StreamDelay.objects.create(
         result=result,
         time=datetime(2018, 1, 16, 10, 41, 40, 744000, tzinfo=pytz.utc),
         delay="0.0123",
         upload=False,
     )
     StreamDelay.objects.create(
         result=result,
         time=datetime(2018, 1, 16, 10, 41, 47, 744000, tzinfo=pytz.utc),
         delay="0.3456",
         upload=False,
     )
예제 #5
0
 def setUp(self):
     self.client = Client()
     self.benchmark = create_benchmark()
     config = IPerfConfig.objects.create(
         download=True,
         duration=2,
         port=8008,
         url="superman.com",
     )
     test = IPerfTest.objects.create(
         benchmark=self.benchmark,
         config=config,
         order=0,
         protocol_info=[
             {
                 "Time": "2018-02-12T15:47:32.519422Z",
                 "Connections": {
                     "9df47356d2fd833b": {
                         "Paths": {
                             "0": {
                                 "CongestionWindow": 40972,
                             },
                             "1": {
                                 "CongestionWindow": 40972,
                             },
                             "2": {
                                 "CongestionWindow": 40972,
                                 "InterfaceName": "en0"
                             },
                         },
                     },
                 }
             },
             {
                 "Time": "2018-02-12T15:47:35.686581Z",
                 "Connections": {
                     "9df47356d2fd833b": {
                         "Paths": {
                             "0": {
                                 "CongestionWindow": 10240000,
                             },
                             "1": {
                                 "CongestionWindow": 10240000,
                             },
                             "2": {
                                 "CongestionWindow": 10240000,
                                 "InterfaceName": "en0",
                             },
                             "3": {
                                 "CongestionWindow": 10240000,
                                 "InterfaceName": "pdp_ip0"
                             },
                         },
                     },
                 },
             },
         ],
         start_time=datetime(2018,
                             1,
                             16,
                             10,
                             41,
                             40,
                             744000,
                             tzinfo=pytz.utc),
         wait_time="5.0",
         duration="37.421521",
         wifi_bytes_received=45,
         wifi_bytes_sent=78,
         cell_bytes_received=33,
         cell_bytes_sent=25,
         multipath_service='aggregate',
         protocol='MPQUIC',
     )
     result = IPerfResult.objects.create(
         test=test,
         success=True,
         total_sent=501450,
         total_retrans=1234,
     )
     IPerfInterval.objects.create(
         result=result,
         intervalInSec="0-1",
         transferredLastSecond=200000,
         globalBandwidth=200000,
         retransmittedLastSecond=0,
     )
     IPerfInterval.objects.create(
         result=result,
         intervalInSec="1-2",
         transferredLastSecond=301450,
         globalBandwidth=260725,
         retransmittedLastSecond=1234,
     )