Add UUIDs for TelLiveStressTest and TelLiveStressCallTest.
Test: None
Bug: 36066207
Change-Id: I71d957d8a59d4d1c070abcaeb0e8712f769d1f0d
diff --git a/acts/tests/google/tel/live/TelLiveRebootStressTest.py b/acts/tests/google/tel/live/TelLiveRebootStressTest.py
index 8c7462d..d03911e 100644
--- a/acts/tests/google/tel/live/TelLiveRebootStressTest.py
+++ b/acts/tests/google/tel/live/TelLiveRebootStressTest.py
@@ -19,6 +19,7 @@
import collections
import time
+from acts.test_decorators import test_tracker_info
from acts.controllers.sl4a_types import Sl4aNetworkInfo
from acts.test_utils.tel.TelephonyBaseTest import TelephonyBaseTest
from acts.test_utils.tel.tel_data_utils import wifi_tethering_setup_teardown
@@ -81,8 +82,8 @@
self.wifi_network_pass = None
self.dut = self.android_devices[0]
- self.ad_reference = self.android_devices[1] if len(
- self.android_devices) > 1 else None
+ self.ad_reference = self.android_devices[
+ 1] if len(self.android_devices) > 1 else None
self.dut_model = get_model_name(self.dut)
self.dut_operator = get_operator_name(self.log, self.dut)
@@ -275,8 +276,8 @@
if method in kwargs: required_methods.append(method)
for i in range(1, self.stress_test_number + 1):
- self.log.info("Reboot Stress Test {} Iteration: <{}> / <{}>".format(
- self.test_name, i, self.stress_test_number))
+ self.log.info("Reboot Stress Test {} Iteration: <{}> / <{}>".
+ format(self.test_name, i, self.stress_test_number))
self.log.info("{} reboot!".format(self.dut.serial))
self.dut.reboot()
@@ -288,8 +289,9 @@
if not test_method_mapping[check]():
fail_count[check] += 1
iteration_result = "fail"
- self.log.info("Reboot Stress Test {} Iteration: <{}> / <{}> {}".format(
- self.test_name, i, self.stress_test_number, iteration_result))
+ self.log.info("Reboot Stress Test {} Iteration: <{}> / <{}> {}".
+ format(self.test_name, i, self.stress_test_number,
+ iteration_result))
# TODO: Check if crash happens.
@@ -302,6 +304,7 @@
""" Tests Begin """
+ @test_tracker_info(uuid="4d9b425b-f804-45f4-8f47-0ba3f01a426b")
@TelephonyBaseTest.tel_test_wrap
def test_reboot_stress(self):
"""Reboot Reliability Test
@@ -340,6 +343,7 @@
check_data_roaming=False,
clear_provision=True)
+ @test_tracker_info(uuid="39a822e5-0360-44ce-97c7-f75468eba8d7")
@TelephonyBaseTest.tel_test_wrap
def test_reboot_stress_without_clear_provisioning(self):
"""Reboot Reliability Test without Clear Provisioning
@@ -377,6 +381,7 @@
check_data_roaming=False,
clear_provision=False)
+ @test_tracker_info(uuid="8b0e2c06-02bf-40fd-a374-08860e482757")
@TelephonyBaseTest.tel_test_wrap
def test_reboot_stress_check_phone_call_only(self):
"""Reboot Reliability Test
@@ -394,8 +399,10 @@
Returns:
True is pass, False if fail.
"""
- return self._stress_test(check_provision=True, check_call_setup_teardown=True)
+ return self._stress_test(
+ check_provision=True, check_call_setup_teardown=True)
+ @test_tracker_info(uuid="6c243b53-379a-4cda-9848-84fcec4019bd")
@TelephonyBaseTest.tel_test_wrap
def test_reboot_stress_data_roaming(self):
"""Reboot Reliability Test
@@ -417,4 +424,3 @@
""" Tests End """
-
diff --git a/acts/tests/google/tel/live/TelLiveStressCallTest.py b/acts/tests/google/tel/live/TelLiveStressCallTest.py
index 30cb8f6..b3e120f 100644
--- a/acts/tests/google/tel/live/TelLiveStressCallTest.py
+++ b/acts/tests/google/tel/live/TelLiveStressCallTest.py
@@ -19,6 +19,7 @@
import collections
import time
+from acts.test_decorators import test_tracker_info
from acts.test_utils.tel.TelephonyBaseTest import TelephonyBaseTest
from acts.test_utils.tel.tel_defines import WFC_MODE_WIFI_PREFERRED
from acts.test_utils.tel.tel_defines import VT_STATE_BIDIRECTIONAL
@@ -56,11 +57,9 @@
self.callee = self.android_devices[1]
self.user_params["telephony_auto_rerun"] = False
self.wifi_network_ssid = self.user_params.get(
- "wifi_network_ssid") or self.user_params.get(
- "wifi_network_ssid_2g")
+ "wifi_network_ssid") or self.user_params.get("wifi_network_ssid_2g")
self.wifi_network_pass = self.user_params.get(
- "wifi_network_pass") or self.user_params.get(
- "wifi_network_pass_2g")
+ "wifi_network_pass") or self.user_params.get("wifi_network_pass_2g")
self.phone_call_iteration = int(
self.user_params.get("phone_call_iteration", 500))
self.phone_call_duration = int(
@@ -93,8 +92,8 @@
def _setup_vt(self):
ads = self.android_devices
- tasks = [(phone_setup_video, (self.log, ads[0])),
- (phone_setup_video, (self.log, ads[1]))]
+ tasks = [(phone_setup_video, (self.log, ads[0])), (phone_setup_video,
+ (self.log, ads[1]))]
if not multithread_func(self.log, tasks):
self.log.error("Phone Failed to Set Up Properly.")
return False
@@ -137,7 +136,7 @@
if not video_call_setup(
self.log,
self.android_devices[0],
- self.android_devices[1],):
+ self.android_devices[1], ):
self.log.error("Failed to setup Video call")
return False
else:
@@ -177,23 +176,23 @@
iteration_result = False
self.log.error("%s call dialing failure.", msg)
else:
- if network_check_func and not network_check_func(self.log,
- self.caller):
+ if network_check_func and not network_check_func(
+ self.log, self.caller):
fail_count["caller_network_check"] += 1
iteration_result = False
self.log.error("%s network check %s failure.", msg,
network_check_func.__name__)
- if network_check_func and not network_check_func(self.log,
- self.callee):
+ if network_check_func and not network_check_func(
+ self.log, self.callee):
fail_count["callee_network_check"] += 1
iteration_result = False
self.log.error("%s network check failure.", msg)
time.sleep(self.phone_call_duration)
- if not verify_incall_state(self.log, [self.caller, self.callee],
- True):
+ if not verify_incall_state(self.log,
+ [self.caller, self.callee], True):
self.log.error("%s call dropped.", msg)
iteration_result = False
fail_count["drop"] += 1
@@ -225,6 +224,7 @@
""" Tests Begin """
+ @test_tracker_info(uuid="3c3daa08-e66a-451a-a772-634ec522c965")
@TelephonyBaseTest.tel_test_wrap
def test_call_default_stress(self):
""" Default state call stress test
@@ -244,6 +244,7 @@
"""
return self.stress_test()
+ @test_tracker_info(uuid="b7fd730a-d4c7-444c-9e36-12389679b430")
@TelephonyBaseTest.tel_test_wrap
def test_call_and_sms_longevity(self):
""" Default state call stress test
@@ -263,6 +264,7 @@
"""
return self.stress_test(test_sms=True)
+ @test_tracker_info(uuid="3b711843-de27-4b0a-a163-8c439c901e24")
@TelephonyBaseTest.tel_test_wrap
def test_call_volte_stress(self):
""" VoLTE call stress test
@@ -284,12 +286,13 @@
setup_func=self._setup_lte_volte_enabled,
network_check_func=is_phone_in_call_volte)
+ @test_tracker_info(uuid="518516ea-1c0a-494d-ad44-272f21075d39")
@TelephonyBaseTest.tel_test_wrap
- def test_call_lte_volte_disabled_stress(self):
- """ LTE non-VoLTE call stress test
+ def test_call_csfb_stress(self):
+ """ LTE CSFB call stress test
Steps:
- 1. Make Sure PhoneA and PhoneB in LTE mode.
+ 1. Make Sure PhoneA in LTE CSFB mode.
2. Call from PhoneA to PhoneB, hang up on PhoneA.
3, Repeat 2 around N times based on the config setup
@@ -305,6 +308,7 @@
setup_func=self._setup_lte_volte_disabled,
network_check_func=is_phone_in_call_csfb)
+ @test_tracker_info(uuid="887608cb-e5c6-4b19-b02b-3461c1e78f2d")
@TelephonyBaseTest.tel_test_wrap
def test_call_wifi_calling_stress(self):
""" Wifi calling call stress test
@@ -326,6 +330,7 @@
setup_func=self._setup_wfc,
network_check_func=is_phone_in_call_iwlan)
+ @test_tracker_info(uuid="8af0454b-b4db-46d8-b5cc-e13ec5bc59ab")
@TelephonyBaseTest.tel_test_wrap
def test_call_3g_stress(self):
""" 3G call stress test
@@ -346,6 +351,7 @@
return self.stress_test(
setup_func=self._setup_3g, network_check_func=is_phone_in_call_3g)
+ @test_tracker_info(uuid="12380823-2e7f-4c41-95c0-5f8c483f9510")
@TelephonyBaseTest.tel_test_wrap
def test_call_2g_stress(self):
""" 2G call stress test
@@ -366,6 +372,7 @@
return self.stress_test(
setup_func=self._setup_2g, network_check_func=is_phone_in_call_2g)
+ @test_tracker_info(uuid="28a88b44-f239-4b77-b01f-e9068373d749")
@TelephonyBaseTest.tel_test_wrap
def test_call_video_stress(self):
""" VT call stress test
@@ -388,5 +395,4 @@
network_check_func=is_phone_in_call_video_bidirectional,
test_video=True)
-
""" Tests End """
diff --git a/acts/tests/google/tel/live/TelLiveStressTest.py b/acts/tests/google/tel/live/TelLiveStressTest.py
index 38a4f0f..0d0c234 100644
--- a/acts/tests/google/tel/live/TelLiveStressTest.py
+++ b/acts/tests/google/tel/live/TelLiveStressTest.py
@@ -20,6 +20,7 @@
import collections
import random
import time
+from acts.test_decorators import test_tracker_info
from acts.test_utils.tel.TelephonyBaseTest import TelephonyBaseTest
from acts.test_utils.tel.tel_defines import WFC_MODE_WIFI_PREFERRED
from acts.test_utils.tel.tel_test_utils import active_file_download_test
@@ -244,33 +245,39 @@
""" Tests Begin """
+ @test_tracker_info(uuid="d035e5b9-476a-4e3d-b4e9-6fd86c51a68d")
@TelephonyBaseTest.tel_test_wrap
def test_default_parallel_stress(self):
""" Default state stress test"""
return self.parallel_tests()
+ @test_tracker_info(uuid="c21e1f17-3282-4f0b-b527-19f048798098")
@TelephonyBaseTest.tel_test_wrap
- def test_lte_volte_stress(self):
+ def test_lte_volte_parallel_stress(self):
""" VoLTE on stress test"""
return self.parallel_tests(setup_func=self._setup_lte_volte_enabled)
+ @test_tracker_info(uuid="a317c23a-41e0-4ef8-af67-661451cfefcf")
@TelephonyBaseTest.tel_test_wrap
- def test_lte_volte_disabled_stress(self):
+ def test_csfb_parallel_stress(self):
""" LTE non-VoLTE stress test"""
return self.parallel_tests(setup_func=self._setup_lte_volte_disabled)
+ @test_tracker_info(uuid="fdb791bf-c414-4333-9fa3-cc18c9b3b234")
@TelephonyBaseTest.tel_test_wrap
- def test_wifi_calling_stress(self):
+ def test_wfc_parallel_stress(self):
""" Wifi calling on stress test"""
return self.parallel_tests(setup_func=self._setup_wfc)
+ @test_tracker_info(uuid="4566eef6-55de-4ac8-87ee-58f2ef41a3e8")
@TelephonyBaseTest.tel_test_wrap
- def test_3g_stress(self):
+ def test_3g_parallel_stress(self):
""" 3G stress test"""
return self.parallel_tests(setup_func=self._setup_3g)
+ @test_tracker_info(uuid="f34f1a31-3948-4675-8698-372a83b8088d")
@TelephonyBaseTest.tel_test_wrap
- def test_call_2g_stress(self):
+ def test_call_2g_parallel_stress(self):
""" 2G call stress test"""
return self.parallel_tests(setup_func=self._setup_2g)