Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ericsson.radio.sw.testobjects.txmodule;
- 2
- 3 import java.util.ArrayList;
- 4 import java.util.List;
- 5
- 6 import org.testng.Assert;
- 7 import org.testng.annotations.AfterMethod;
- 8 import org.testng.annotations.BeforeMethod;
- 9 import org.testng.annotations.Test;
- 10
- 11 import se.ericsson.jcat.fw.annotations.JcatMethod;
- 12 import se.ericsson.jcat.fw.annotations.Setup;
- 13
- 14 import com.ericsson.radio.sw.framework.core.common.UserOptions;
- 15 import com.ericsson.radio.sw.framework.core.common.internal.RadioEnums.Bool;
- 16 import com.ericsson.radio.sw.framework.core.common.internal.RadioEnums.LinkDirection;
- 17 import com.ericsson.radio.sw.framework.core.common.internal.RadioEnums.RadioPlatform;
- 18 import com.ericsson.radio.sw.framework.core.common.internal.RadioEnums.RatType;
- 19 import com.ericsson.radio.sw.framework.core.common.internal.RadioEnums.TestGroup;
- 20 import com.ericsson.radio.sw.framework.core.jcat.ElvisLogger;
- 21 import com.ericsson.radio.sw.framework.core.jcat.RadioSwTestBase;
- 22 import com.ericsson.radio.sw.framework.core.jcat.internal.ElvisAssert;
- 23 import com.ericsson.radio.sw.framework.core.matcher.Parameters;
- 24 import com.ericsson.radio.sw.framework.core.result_handling.ProcedureResult;
- 25 import com.ericsson.radio.sw.framework.core.result_handling.ProcedureResult.Verdict;
- 26 import com.ericsson.radio.sw.framework.core.staticinfo.StaticInfo;
- 27 import com.ericsson.radio.sw.framework.core.staticinfo.band_info.Band.ArfcnRange;
- 28 import com.ericsson.radio.sw.framework.core.tcselection.Exclude;
- 29 import com.ericsson.radio.sw.framework.core.tcselection.Groups;
- 30 import com.ericsson.radio.sw.framework.core.tcselection.If;
- 31 import com.ericsson.radio.sw.framework.core.tcselection.Run;
- 32 import com.ericsson.radio.sw.framework.radiotest_utils.carrier.CarrierManagement;
- 33 import com.ericsson.radio.sw.framework.radiotest_utils.carrier.CarrierManagementFactory;
- 34 import com.ericsson.radio.sw.framework.radiotest_utils.carrier.CarrierUtils;
- 35 import com.ericsson.radio.sw.framework.radiotest_utils.carrier.WcdmaBasebandConfigurationUtils;
- 36 import com.ericsson.radio.sw.framework.radiotest_utils.carrier.internal.WcdmaCarrierManagement;
- 37 import com.ericsson.radio.sw.framework.radiotest_utils.coli.ColiCommandsUtils;
- 38 import com.ericsson.radio.sw.framework.radiotest_utils.connsetup.ConnSetupUtils;
- 39 import com.ericsson.radio.sw.framework.radiotest_utils.faulthandling.Fault;
- 40 import com.ericsson.radio.sw.framework.ru.resources.internal.AntennaBranchId;
- 41 import com.ericsson.radio.sw.framework.ru.resources.internal.Carrier;
- 42 import com.ericsson.radio.sw.framework.ru.resources.internal.Carrier.CarrierConstants;
- 43 import com.ericsson.radio.sw.framework.ru.resources.internal.CarrierType;
- 44 import com.ericsson.radio.sw.framework.ru.resources.internal.RfPort;
- 45 import com.ericsson.radio.sw.framework.ru.shell.memmappedcommand.MemMappedCommand;
- 46 import com.ericsson.radio.sw.framework.ru.shell.txm.brc.TxmSbpsCommand.SBPSEvent;
- 47 import com.ericsson.radio.sw.framework.ru.shell.txm.brc.TxmSbpsCommand.SBPSState;
- 48 import com.ericsson.radio.sw.framework.ru.shell.txm.brc.TxmSbpsDumpInfo;
- 49 import com.ericsson.radio.sw.framework.stp.MsiDuClient;
- 50 import com.ericsson.radio.sw.framework.stp.SystemTestPlantImpl;
- 51 import com.ericsson.radio.sw.framework.stp.WcdmaCarrier;
- 52 import com.ericsson.radio.sw.framework.stp.WcdmaDuClient;
- 53 import com.ericsson.radio.sw.framework.verifyutils.carriercontrol.VerifyCarrierControl;
- 54 import com.ericsson.radio.sw.framework.verifyutils.powersave.VerifySbps;
- 55 import com.ericsson.radio.sw.framework.verifyutils.txmodule.VerifyTxModule;
- 56 import com.ericsson.radio.sw.ose.signals.device.dc_tr.Const_dc_tr;
- 57
- 58 /**
- 59 * <b>ELVIS:</b> JCAT <b>E</b>xtension for <b>L</b>oops in <b>V</b>erification and
- 60 * <b>I</b>ntegration in <b>S</b>ubsystem at Radio SW
- 61 *
- 62 * <pre>
- 63 * G __
- 64 * \\ ,,)_
- 65 * \'-\( /
- 66 * \ | ,\
- 67 * \|_/\\
- 68 * / _ '.D
- 69 * / / \ |
- 70 * /_\ /_\
- 71 * '- '- </pre>
- 72 *
- 73 * @custom.purpose <p>
- 74 * Performs Symbol Based Power Saving "SBPS" logic tests.
- 75 * </p>
- 76 * @custom.references MIRA_ROOT/tests/testobjects/tx_module/spec/tx_sbps_logic_spec.rb
- 77 * @since Feb 02, 2016
- 78 * @custom.details
- 79 * <pre>
- 80 * ------------------------ Copyright ERICSSON AB 2016 ------------------------
- 81 * The programs may be used and/or copied only with the written permission from
- 82 * ERICSSON AB or in accordance with the terms and conditions stipulated in
- 83 * the agreement/contract under which the programs have been supplied.
- 84 * </pre>
- 85 */
- 86
- 87 public class SbpsLogic extends RadioSwTestBase {
- 88
- 89 /**
- 90 * @JcatTcDescription Perform SBPS logic tests.
- 91 * @JcatTcInstruction <br>
- 92 * This class verifies SBPS logic the following configurations:<br>
- 93 * <ul>
- 94 * <li>Verify SbpsSrv logic when starting and ending with an LTE carrier,
- 95 * prio A</li>
- 96 * </ul>
- 97 * <br>
- 98 * @JcatTcPreconditions BCI state: Connected.
- 99 * TR-DCI connection state: connected.
- 100 * Te log and HW log erased.
- 101 * @JcatTcAction ...
- 102 * @JcatTcActionResult ...
- 103 * @JcatTcPostcondtions ..
- 104 * @Area "SBPS" ...
- 105 * @JcatTcChapter SBPS<br/>
- 106 */
- 107 /*
- 108 * DEFINES
- 109 */
- 110 private static final String SBPS_DISABLED_TEXT = "Verify SBPS state DISABLED on branch ";
- 111 private static final String SBPS_ENABLED_TEXT = "Verify SBPS state ENABLED on branch ";
- 112 private static final String SBPS_AFFECTED_TEXT =
- 113 "Verify that activation on branch B hasn't affected state on branch A";
- 114 private static final int RF_PORT_ID_A = 0;
- 115 private static final int RF_PORT_ID_B = 1;
- 116 private static final int TPA_ID_ADD_FOR_BRANCH_A = 1;
- 117 private static final int TPA_ID_ADD_FOR_BRANCH_B = 2;
- 118
- 119 private static final int SLEEP_TIME = 200; // ms
- 120 private static final int RECOVERY_TIME = 3000; // ms
- 121 private static final int DAILY_RECOVERY_SLEEP_TIME = 5; // 3s recovery time + 2s for completing sw recovery cycle
- 122 private static final int DAILY_WINDOW_SIZE = 3 * DAILY_RECOVERY_SLEEP_TIME + 1; // 16s per day for 3 ru restart recovery
- 123 private static final int HIGH_TRAFFIC_RESTART_DELAY = 1000; // s
- 124 private static final int BRANCH_BUSY_DELAY = 100; // s
- 125
- 126 private static final String ELOG_SBPS_DISABLED_TXL_TEXT = "SBPS: Branch:A, disabled by TXL";
- 127 private static final String ELOG_SBPS_PERMANENTLY_DISABLED_TXL_TEXT = "SBPS: Branch:A, permanently disabled by TXL";
- 128 private static final String ELOG_SBPS_RECOVERED_TEXT = "SBPS: Branch:A, recovered/re-enabled";
- 129
- 130 private static final String PWR_SYNC_A_MSG_TO_0 = "0x00210810";
- 131
- 132 /* Helper */
- 133 private TxModuleHelper helper;
- 134 /* The Clients and the Carrier Managers */
- 135 private MsiDuClient msiClient = null;
- 136 private CarrierManagement msiCarrierManager = null;
- 137 private WcdmaDuClient wcdmaClient = null;
- 138 private WcdmaCarrierManagement wcdmaCarrierManager = null;
- 139 private Carrier dlLteCarrier = null;
- 140 private Carrier dlGsmCarrier = null;
- 141 private static ElvisLogger logger = ElvisLogger.getInstance();
- 142 /* GSM variables */
- 143 private static int SBPS_STATUS_GSM;
- 144 private static SBPSState SBPS_STATE_GSM = null;
- 145 private static String SBPS_TEXT_GSM = null;
- 146 private boolean RADIO_SBPS_CAPABLE_GSM = radioUnit.coli().db().autogetSingleValue("sbpsSupportedRat").contains("G");
- 147 /* Used for MR299 workaround on the R68JA */
- 148 private final int DRIVER_SET = radioUnit.coli().db().driverSetGet();
- 149 private final boolean MR299_SUPPORTED = ((DRIVER_SET >= 500) && (DRIVER_SET <= 599) && (DRIVER_SET != 519)) ? false
- 150 : true;
- 151
- 152 /**
- 153 * Check if radio has sbpsCapable.
- 154 * Also skip if sbps command is not available.
- 155 */
- 156 @Setup
- 157 public void sbpsSetup() {
- 158 if (!SystemTestPlantImpl.getInstance().defaultRadioUnit().coli().txm().sbps().isAvailable()) {
- 159 ElvisAssert.skip("Skipping since sbps command is not available.");
- 160 }
- 161 helper = TxModuleHelper.getInstance();
- 162
- 163 Carrier carrier = null;
- 164 List<RatType> supportedRatTypes = StaticInfo.getInstance().getRuInfo().getRu().getSupportedStandards();
- 165 if (supportedRatTypes.contains(RatType.LTE_FDD)) {
- 166 carrier = connectSetupActivatedLteTxCarrier(RatType.LTE_FDD);
- 167 } else if (supportedRatTypes.contains(RatType.LTE_TDD)) {
- 168 carrier = connectSetupActivatedLteTxCarrier(RatType.LTE_TDD);
- 169 } else if (supportedRatTypes.contains(RatType.GSM)) {
- 170 carrier = connectSetupActivatedGsmTxCarrier();
- 171 } else {
- 172 ElvisAssert.skip("Skipping since radio does not support LTE or GSM");
- 173 }
- 174
- 175 /*
- 176 * Even if the radio has sbpsCapable in the database still the radio has to
- 177 * check if the PA really can handle SBPS feature. The check is done when
- 178 * the first carrier is activated.
- 179 */
- 180 skipIfSlowPa(carrier);
- 181
- 182 // Release the carrier.
- 183 logger.addLogStep("Release the " + carrier.getRatType().toString() + " carrier");
- 184 msiCarrierManager.releaseCarrier(carrier);
- 185 logger.endLogStep();
- 186 sleepSeconds(5);
- 187
- 188 // Initialize GSM variables based on whether SBPS supports GSM or not
- 189
- 190 /*
- 191 * This part of the code is to prevent handling of SBPS for PL5 radios
- 192 * other than "519" because of the missing implementation that is
- 193 * delivered only on the MAIN track (R70)
- 194 */
- 195 if (!MR299_SUPPORTED)
- 196 {
- 197 RADIO_SBPS_CAPABLE_GSM = false;
- 198 }
- 199
- 200 SBPS_STATE_GSM = RADIO_SBPS_CAPABLE_GSM ? SBPSState.ENABLED : SBPSState.DISABLED;
- 201 SBPS_STATUS_GSM = RADIO_SBPS_CAPABLE_GSM ? helper.SBPS_STATUS_ENABLED
- 202 : helper.SBPS_STATUS_DISABLED;
- 203 SBPS_TEXT_GSM = RADIO_SBPS_CAPABLE_GSM ? SBPS_ENABLED_TEXT : SBPS_DISABLED_TEXT;
- 204
- 205 }
- 206
- 207 /**
- 208 * A method annotated with @BeforeMethod will execute before every @Test annotated method in the
- 209 * class.
- 210 */
- 211 @BeforeMethod
- 212 public void sbpsBeforeMethod() {
- 213 msiClient = stp.defaultDigitalUnit().getMsiClient();
- 214 ConnSetupUtils.open(msiClient);
- 215 msiCarrierManager = CarrierManagementFactory.getCarrierManagement(msiClient);
- 216 }
- 217
- 218 /**
- 219 * After method executes after every test case
- 220 */
- 221 @AfterMethod
- 222 public void sbpsAfterMethod() {
- 223 stp.defaultDigitalUnit().closeClients();
- 224 }
- 225
- 226 /**
- 227 * To verify SbpsSrv logic L+G.
- 228 * Details:
- 229 * -Setup LTE carrier (Branch A)
- 230 * -Send subscription request and check that report indication is received
- 231 * -Activate LTE carrier (Branch A),verify SbpsSrv state
- 232 * -Verify SbpsSrv state and carrier configuration, verify report indication
- 233 * -Setup GSM carrier (Branch B)
- 234 * -Send subscription request and check that report indication is received
- 235 * -Activate GSM carrier (Branch B),verify SbpsSrv state
- 236 * -Check that report indication is received (if SBPS supports GSM)
- 237 * -Release GSM carrier (Branch B),verify SbpsSrv state
- 238 * -Setup GSM carrier (Branch A)
- 239 * -Send subscription request and check that report indication is received
- 240 * -Activate GSM carrier (Branch A),verify SbpsSrv state
- 241 * -Check that report indications are received (if SBPS does not support GSM)
- 242 * -Deactivate GSM carrier, verify SbpsSrv state
- 243 * -Check that report indications are received (if SBPS does not support GSM)
- 244 * -Send subscription request and check that report indication is received
- 245 * -Reactivate GSM carrier, verify SbpsSrv state
- 246 * -Check that report indications are received (if SBPS does not support GSM)
- 247 * -Deactivate GSM carrier, verify SbpsSrv state
- 248 * -Check that report indications are received (if SBPS does not support GSM)
- 249 * -Release GSM carrier, verify SbpsSrv state
- 250 * -Release LTE carrier, verify SbpsSrv state
- 251 * Branch B carrier tests are only done if radio supports multiple TX branches.
- 252 * Migrated Mira TC:
- 253 * "TX_MOD C3, TC3: L+G, Verify SbpsSrv logic when starting and ending with an LTE carrier, prio 1"
- 254 */
- 255 @Test(enabled = true)
- 256 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC3:L+G",
- 257 testTitle = "Verify SbpsSrv logic when starting and ending with an LTE carrier.",
- 258 testReqRef = " ",
- 259 testPriority = "A")
- 260 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_50 })
- 261 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD, RatType.GSM },
- 262 numTxBranchesMoreThan = 0,
- 263 supportSBPS = Bool.TRUE))
- 264 public void sbpsC3_TC3_LG() {
- 265 setTestCase("SBPS-TC3:L+G",
- 266 "Verify SbpsSrv logic when starting and ending with an LTE carrier, prio A");
- 267 /*
- 268 * Setup and activate an LTE carrier.
- 269 * carrierId = 0, port = A, axcId = 1
- 270 */
- 271 logger.addLogStep("Setup LTE carrier on branch" + AntennaBranchId.A);
- 272 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 273 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 274 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 275 logger.endLogStep();
- 276
- 277 logger.addLogStep("Send subscription request and check that report indication is received");
- 278 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 279 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 280 logger.endLogStep();
- 281
- 282 logger.addLogStep("Activate LTE carrier on branch" + AntennaBranchId.A);
- 283 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 284 logger.endLogStep();
- 285
- 286 /*
- 287 * Check if SBPS is enabled.
- 288 */
- 289 logger.addLogStep(SBPS_ENABLED_TEXT + "A");
- 290 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 291 logger.endLogStep();
- 292
- 293 logger.addLogStep("Verify that report indication is received");
- 294 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 295 logger.endLogStep();
- 296
- 297 /*
- 298 * If radio has more than 1 TX branch we will also setup GSM on
- 299 * branch B, therefore branch B is added to the branchList
- 300 * Also reverse the branch list since we want to add GSM on B and see that
- 301 * branch A is not affected when setting up GSM on branch B.
- 302 */
- 303 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 304 if (StaticInfo.getInstance().getRuInfo().getRu().getTxBranches() > 1) {
- 305 branchList.add(AntennaBranchId.B);
- 306 }
- 307 branchList.add(AntennaBranchId.A);
- 308 dlGsmCarrier = null;
- 309
- 310 for (AntennaBranchId currBranch : branchList) {
- 311 /*
- 312 * carrierId = x, port = x, axcId = 2
- 313 */
- 314 dlGsmCarrier = (currBranch == AntennaBranchId.A) ? createGsmTxCarrier(1, RF_PORT_ID_A, 2) :
- 315 createGsmTxCarrier(2, RF_PORT_ID_B, 2);
- 316
- 317 logger.addLogStep("Setup GSM carrier on branch" + currBranch);
- 318 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 319 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 320
- 321 logger.addLogStep("Send subscription requests for GSM carrier");
- 322 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 323 logger.endLogStep();
- 324
- 325 if (currBranch == AntennaBranchId.B) {
- 326
- 327 logger.addLogStep("Verify that report indication is received");
- 328 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 329 logger.endLogStep();
- 330
- 331 logger.addLogStep("Activate GSMcarrier on branch" + currBranch);
- 332 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 333 logger.endLogStep();
- 334
- 335 logger.addLogStep("Verify SBPS state on branch" + currBranch);
- 336 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 337 logger.endLogStep();
- 338
- 339 if (RADIO_SBPS_CAPABLE_GSM) {
- 340 logger.addLogStep("Verify that report indication is received");
- 341 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 342 logger.endLogStep();
- 343 }
- 344
- 345 /* Verify that activation on branch B hasn't affected state on branch A */
- 346 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 347 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 348 logger.endLogStep();
- 349
- 350 logger.addLogStep("Releasing GSM carrier for branch " + currBranch);
- 351 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 352 logger.endLogStep();
- 353
- 354 logger.addLogStep("Verify SBPS state on branch" + currBranch);
- 355 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 356 logger.endLogStep();
- 357
- 358 } else {
- 359
- 360 if (!RADIO_SBPS_CAPABLE_GSM) {
- 361 logger.addLogStep("Verify that report indication is received");
- 362 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 363 logger.endLogStep();
- 364 }
- 365
- 366 logger.addLogStep("Activate GSM carrier on branch" + currBranch);
- 367 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 368 logger.endLogStep();
- 369
- 370 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 371 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 372 logger.endLogStep();
- 373
- 374 if (!RADIO_SBPS_CAPABLE_GSM) {
- 375 logger.addLogStep("Verify that report indications are received");
- 376 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 377 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 378 logger.endLogStep();
- 379 }
- 380
- 381 logger.addLogStep("Deactivate GSM carrier on branch " + currBranch);
- 382 Assert.assertTrue(msiCarrierManager.deActivateCarrier(dlGsmCarrier));
- 383 logger.endLogStep();
- 384
- 385 if (!RADIO_SBPS_CAPABLE_GSM) {
- 386 logger.addLogStep("Verify that report indications are received");
- 387 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 388 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 389 logger.endLogStep();
- 390 }
- 391
- 392 logger.addLogStep(SBPS_ENABLED_TEXT + currBranch);
- 393 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 394 logger.endLogStep();
- 395
- 396 logger.addLogStep("Send subscription request and check that report indication is received");
- 397 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 398 helper.verifyReportIndication(dlGsmCarrier, msiClient, SBPS_STATUS_GSM);
- 399 logger.endLogStep();
- 400
- 401 logger.addLogStep("Activate GSM carrier on branch " + currBranch);
- 402 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 403 logger.endLogStep();
- 404
- 405 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 406 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 407 logger.endLogStep();
- 408
- 409 if (!RADIO_SBPS_CAPABLE_GSM) {
- 410 logger.addLogStep("Verify that report indications are received");
- 411 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 412 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 413 logger.endLogStep();
- 414 }
- 415
- 416 logger.addLogStep("Deactivate GSM carrier on branch " + currBranch);
- 417 Assert.assertTrue(msiCarrierManager.deActivateCarrier(dlGsmCarrier));
- 418 logger.endLogStep();
- 419
- 420 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 421 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 422 logger.endLogStep();
- 423
- 424 if (!RADIO_SBPS_CAPABLE_GSM) {
- 425 logger.addLogStep("Verify that report indications are received");
- 426 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 427 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 428 logger.endLogStep();
- 429 }
- 430
- 431 logger.addLogStep("Releasing GSM carrier for branch" + currBranch);
- 432 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 433 logger.endLogStep();
- 434
- 435 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 436 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 437 logger.endLogStep();
- 438
- 439 logger.addLogStep("Releasing LTE carrier for branch " + currBranch);
- 440 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 441 logger.endLogStep();
- 442
- 443 if (RADIO_SBPS_CAPABLE_GSM) {
- 444 logger.addLogStep("Verify that report indication is received");
- 445 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 446 logger.endLogStep();
- 447 }
- 448
- 449 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 450 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 451 logger.endLogStep();
- 452 }
- 453 }
- 454
- 455 }
- 456
- 457 /**
- 458 * To verify SbpsSrv logic L+G.
- 459 * Details:
- 460 * -Setup GSM carrier (Branch A)
- 461 * -Send subscription request and check that report indication is received
- 462 * -Activate GSM carrier (Branch A),verify SbpsSrv state
- 463 * -Check that report indication is received (if SBPS supports GSM)
- 464 * -Setup LTE carrier (Branch B)
- 465 * -Send subscription request and check that report indication is received
- 466 * -Activate LTE carrier (Branch B),verify SbpsSrv state
- 467 * -Release LTE carrier (Branch B),verify SbpsSrv state
- 468 * -Setup LTE carrier (Branch A)
- 469 * -Send subscription request and check that report indication is received
- 470 * -Activate LTE carrier (Branch A),verify SbpsSrv state
- 471 * -Deactivate LTE carrier, verify SbpsSrv state
- 472 * -Send subscription request and check that report indication is received
- 473 * -Reactivate LTE carrier, verify SbpsSrv state
- 474 * -Deactivate+release LTE carrier, verify SbpsSrv state
- 475 * -Release GSM carrier, verify SbpsSrv state
- 476 * -Check that report indication is received (if SBPS supports GSM)
- 477 * Branch B carrier tests are only done if radio supports multiple TX branches.
- 478 * Migrated Mira TC:
- 479 * "TX_MOD C3, TC4: L+G, Verify SbpsSrv logic when starting and ending with an GSM carrier, prio 1"
- 480 */
- 481 @Test(enabled = true)
- 482 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC4:L+G",
- 483 testTitle = "Verify SbpsSrv logic when starting and ending with a GSM carrier.",
- 484 testReqRef = " ",
- 485 testPriority = "A")
- 486 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 487 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD, RatType.GSM },
- 488 numTxBranchesMoreThan = 0,
- 489 supportSBPS = Bool.TRUE))
- 490 public void sbpsC3_TC4_LG() {
- 491 setTestCase("SBPS-TC4:L+G",
- 492 "Verify SbpsSrv logic when starting and ending with a GSM carrier, prio A");
- 493
- 494 logger.addLogStep("Setup GSM carrier on branch " + AntennaBranchId.A);
- 495 // carrierId = 0, port = A, axcId = 1
- 496 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 497 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 498 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 499 /*
- 500 * Carrier frequency for GSM is calculated from ARFCN number which needs to be adjusted
- 501 * accordingly. Minimum ARFCN number used to setup carrier in the low edge of the frequency
- 502 * band thus needs to be increased in order to setup carrier 2.5 MHz away from the band low
- 503 * edge as stated above.
- 504 * Offset used (12) translated into frequency will give 12*200kHz(carrier BW)= 2.4 MHz
- 505 */
- 506 dlGsmCarrier.setArfcnMin(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 507 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 508 dlGsmCarrier.setArfcnMax(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 509 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 510 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 511 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 512 logger.endLogStep();
- 513
- 514 logger.addLogStep("Send subscription request and check that report indication is received");
- 515 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 516 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 517 logger.endLogStep();
- 518
- 519 logger.addLogStep("Activate GSM carrier on branch " + AntennaBranchId.A);
- 520 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 521 logger.endLogStep();
- 522
- 523 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 524 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 525 logger.endLogStep();
- 526
- 527 if (RADIO_SBPS_CAPABLE_GSM) {
- 528 logger.addLogStep("Verify that report indication is received");
- 529 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 530 logger.endLogStep();
- 531 }
- 532 /*
- 533 * If radio has more than 1 TX branch we will also setup LTE on
- 534 * Branch B, therefore Branch B is added to the branchList
- 535 * Also reverse the branch list since we want to add LTE on B and see that
- 536 * branch A is not affected when setting up LTE on Branch B.
- 537 */
- 538 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 539 if (StaticInfo.getInstance().getRuInfo().getRu().getTxBranches() > 1) {
- 540 branchList.add(AntennaBranchId.B);
- 541 }
- 542 branchList.add(AntennaBranchId.A);
- 543 Carrier dlLteCarrier = null;
- 544
- 545 for (AntennaBranchId currBranch : branchList) {
- 546
- 547 logger.addLogStep("Setup LTE carrier on branch " + currBranch);
- 548 dlLteCarrier = (currBranch == AntennaBranchId.A) ? createGsmTxCarrier(1, RF_PORT_ID_A, 2) :
- 549 createGsmTxCarrier(2, RF_PORT_ID_B, 2);
- 550 dlLteCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.LTE_FDD)
- 551 .get(0)
- 552 .getTxOperationBandLowEdge()
- 553 + Carrier.CarrierConstants.CARRIER_BANDWIDTH_10000.getValue());
- 554 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 555 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 556 logger.endLogStep();
- 557
- 558 logger.addLogStep("Send subscription request for LTE carrier");
- 559 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 560 logger.endLogStep();
- 561
- 562 if (currBranch == AntennaBranchId.B) {
- 563
- 564 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 565 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 566 logger.endLogStep();
- 567
- 568 logger.addLogStep("Verify that report indication is received");
- 569 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 570 logger.endLogStep();
- 571
- 572 logger.addLogStep("Activate LTE carrier on branch " + currBranch);
- 573 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 574 logger.endLogStep();
- 575
- 576 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 577 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 578 logger.endLogStep();
- 579
- 580 /* Verify that activation on Branch B hasn't affected state on Branch A */
- 581 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 582 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 583 logger.endLogStep();
- 584
- 585 logger.addLogStep("Releasing LTE carrier for branch " + currBranch);
- 586 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 587 logger.endLogStep();
- 588
- 589 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 590 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 591 logger.endLogStep();
- 592
- 593 } else {
- 594
- 595 logger.addLogStep("Verify that report indication is received");
- 596 helper.verifyReportIndication(dlLteCarrier, msiClient, SBPS_STATUS_GSM);
- 597 logger.endLogStep();
- 598
- 599 logger.addLogStep("Activate LTE carrier on branch " + currBranch);
- 600 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 601 logger.endLogStep();
- 602
- 603 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 604 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 605 logger.endLogStep();
- 606
- 607 logger.addLogStep("Deactivate LTE carrier for branch " + currBranch);
- 608 Assert.assertTrue(msiCarrierManager.deActivateCarrier(dlLteCarrier));
- 609 logger.endLogStep();
- 610
- 611 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 612 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 613 logger.endLogStep();
- 614
- 615 logger.addLogStep("Send subscription request and check that report indication is received");
- 616 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 617 helper.verifyReportIndication(dlLteCarrier, msiClient, SBPS_STATUS_GSM);
- 618 logger.endLogStep();
- 619
- 620 logger.addLogStep("Reactivate LTE carrier for branch " + currBranch);
- 621 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 622 logger.endLogStep();
- 623
- 624 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 625 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 626 logger.endLogStep();
- 627
- 628 logger.addLogStep("Deactivate LTE carrier on branch " + currBranch);
- 629 Assert.assertTrue(msiCarrierManager.deActivateCarrier(dlLteCarrier));
- 630 logger.endLogStep();
- 631
- 632 logger.addLogStep("Releasing LTE carrier for branch " + currBranch);
- 633 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 634 logger.endLogStep();
- 635
- 636 logger.addLogStep("Verify sbps state on branch" + currBranch);
- 637 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 638 logger.endLogStep();
- 639
- 640 logger.addLogStep("Releasing GSM carrier for branch " + currBranch);
- 641 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 642 logger.endLogStep();
- 643
- 644 if (RADIO_SBPS_CAPABLE_GSM) {
- 645 logger.addLogStep("Verify that report indication is received");
- 646 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 647 logger.endLogStep();
- 648 }
- 649
- 650 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 651 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 652 logger.endLogStep();
- 653 }
- 654 }
- 655 }
- 656
- 657 /**
- 658 * To verify SbpsSrv logic L+G.
- 659 * Details:
- 660 * -Setup LTE carrier
- 661 * -Send subscription request and check that report indication is received
- 662 * -Activate LTE carrier, verify SbpsSrv state
- 663 * -Check that report indication is received
- 664 * -Setup GSM carrier
- 665 * -Send subscription request and check that report indication is received
- 666 * -Activate GSM carrier, verify SbpsSrv staten
- 667 * -Check that report indications are received (if SBPS does not support GSM)
- 668 * -Release LTE carrier, verify SbpsSrv state
- 669 * -Release GSM carrier, verify SbpsSrv state
- 670 * Migrated Mira TC:
- 671 * "TX_MOD C3, TC5: L+G, Verify SbpsSrv logic when starting with an LTE carrier and ending with a GSM carrier, prio 1"
- 672 */
- 673 @Test(enabled = true)
- 674 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC5:L+G",
- 675 testTitle = "To verify SbpsSrv logic when starting with an LTE carrier and ending with a GSM carrier.",
- 676 testReqRef = " ",
- 677 testPriority = "A")
- 678 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 679 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD, RatType.GSM },
- 680 numTxBranchesMoreThan = 0,
- 681 supportSBPS = Bool.TRUE))
- 682 public void sbpsC3_TC5_LG() {
- 683 setTestCase("SBPS-TC5:L+G",
- 684 "To verify SbpsSrv logic when starting with an LTE carrier and ending with a GSM carrier.");
- 685
- 686 /*
- 687 * Setup and activate an LTE carrier.
- 688 * carrierId = 0, port = A, axcId = 1
- 689 */
- 690 logger.addLogStep("Setup LTE carrier on branch" + AntennaBranchId.A);
- 691 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 692 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 693 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 694 logger.endLogStep();
- 695
- 696 logger.addLogStep("Send subscription request and check that report indication is received");
- 697 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 698 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 699 logger.endLogStep();
- 700
- 701 logger.addLogStep("Activate LTE carrier on branch" + AntennaBranchId.A);
- 702 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 703 logger.endLogStep();
- 704
- 705 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 706 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 707 logger.endLogStep();
- 708
- 709 logger.addLogStep("Verify that report indication is received");
- 710 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 711 logger.endLogStep();
- 712
- 713 /*
- 714 * Setup and activate an GSM carrier.
- 715 * carrierId = 1, port = A, axcId = 1
- 716 */
- 717 logger.addLogStep("Setup GSM carrier on branch" + AntennaBranchId.A);
- 718 Carrier dlGsmCarrier = createGsmTxCarrier(1, RF_PORT_ID_A, 1);
- 719 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 720 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 721 logger.endLogStep();
- 722
- 723 logger.addLogStep("Send subscription request and check that report indication is received");
- 724 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 725 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 726 logger.endLogStep();
- 727
- 728 logger.addLogStep("Activate GSM carrier on branch " + AntennaBranchId.A);
- 729 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 730 logger.endLogStep();
- 731
- 732 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 733 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 734 logger.endLogStep();
- 735
- 736 if (!RADIO_SBPS_CAPABLE_GSM) {
- 737 logger.addLogStep("Verify that report indications are received");
- 738 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 739 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 740 logger.endLogStep();
- 741 }
- 742
- 743 logger.addLogStep("Releasing LTE carrier for branch" + AntennaBranchId.A);
- 744 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 745 logger.endLogStep();
- 746
- 747 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 748 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 749 logger.endLogStep();
- 750
- 751 logger.addLogStep("Releasing GSM carrier for branch" + AntennaBranchId.A);
- 752 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 753 logger.endLogStep();
- 754
- 755 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 756 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 757 logger.endLogStep();
- 758
- 759 }
- 760
- 761 /**
- 762 * To verify SbpsSrv logic L+G.
- 763 * Details:
- 764 * -Setup GSM carrier
- 765 * -Send subscription request and check that report indication is received
- 766 * -Activate GSM carrier,verify SbpsSrv state
- 767 * -Check that report indication is received (if SBPS supports GSM)
- 768 * -Setup LTE carrier
- 769 * -Send subscription request and check that report indication is received
- 770 * -Activate LTE carrier,verify SbpsSrv state
- 771 * -Check that report indication is received (if SBPS supports GSM),verify SbpsSrv state
- 772 * -Release GSM carrier
- 773 * -Check that report indication is received (if SBPS does not support GSM),verify SbpsSrv state
- 774 * -Release LTE carrier,verify SbpsSrv state
- 775 * Migrated Mira TC:
- 776 * "TX_MOD C3, TC6: L+G, Verify SbpsSrv logic when starting with a GSM carrier and ending with an LTE carrier, prio 1"
- 777 */
- 778 @Test(enabled = true)
- 779 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC6:L+G",
- 780 testTitle = "Verify SbpsSrv logic when starting with a GSM carrier and ending with an LTE carrier.",
- 781 testReqRef = " ",
- 782 testPriority = "A")
- 783 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 784 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD, RatType.GSM },
- 785 numTxBranchesMoreThan = 0,
- 786 supportSBPS = Bool.TRUE))
- 787 public void sbpsC3_TC6_LG() {
- 788 setTestCase("SBPS-TC6:L+G",
- 789 "Verify SbpsSrv logic when starting with a GSM carrier and ending with an LTE carrier, prio A");
- 790
- 791 logger.addLogStep("Setup GSM carrier on branch " + AntennaBranchId.A);
- 792 /*
- 793 * carrierId = 0, port = A, axcId = 1
- 794 */
- 795 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 796 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 797 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 798 /*
- 799 * Carrier frequency for GSM is calculated from ARFCN number which needs to be adjusted
- 800 * accordingly. Minimum ARFCN number used to setup carrier in the low edge of the frequency
- 801 * band thus needs to be increased in order to setup carrier 2.5 MHz away from the band low
- 802 * edge as stated above.
- 803 * Offset used (12) translated into frequency will give 12*200kHz(carrier BW)= 2.4 MHz
- 804 */
- 805 dlGsmCarrier.setArfcnMin(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 806 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 807 dlGsmCarrier.setArfcnMax(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 808 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 809 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 810 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 811 logger.endLogStep();
- 812
- 813 logger.addLogStep("Send subscription request and check that report indication is received");
- 814 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 815 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 816 logger.endLogStep();
- 817
- 818 logger.addLogStep("Activate GSM carrier on branch " + AntennaBranchId.A);
- 819 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 820 logger.endLogStep();
- 821
- 822 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 823 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 824 logger.endLogStep();
- 825
- 826 if (RADIO_SBPS_CAPABLE_GSM) {
- 827 logger.addLogStep("Verify that report indication is received");
- 828 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 829 logger.endLogStep();
- 830 }
- 831
- 832 /*
- 833 * carrierId = 1, port = A, axcId = 1
- 834 */
- 835 logger.addLogStep("Setup LTE carrier on branch " + AntennaBranchId.A);
- 836 dlLteCarrier = createLteTxCarrier(1, RF_PORT_ID_A, 1);
- 837 dlLteCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.LTE_FDD)
- 838 .get(0)
- 839 .getTxOperationBandLowEdge()
- 840 + Carrier.CarrierConstants.CARRIER_BANDWIDTH_10000.getValue());
- 841 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 842 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 843 logger.endLogStep();
- 844
- 845 logger.addLogStep("Send subscription request");
- 846 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 847 helper.verifyReportIndication(dlLteCarrier, msiClient, SBPS_STATUS_GSM);
- 848 logger.endLogStep();
- 849
- 850 logger.addLogStep("Activate LTE carrier on branch " + AntennaBranchId.A);
- 851 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 852 logger.endLogStep();
- 853
- 854 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 855 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 856 logger.endLogStep();
- 857
- 858 logger.addLogStep("Releasing GSM carrier for branch " + AntennaBranchId.A);
- 859 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 860 logger.endLogStep();
- 861
- 862 if (!RADIO_SBPS_CAPABLE_GSM) {
- 863 logger.addLogStep("Verify that report indication is received");
- 864 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 865 logger.endLogStep();
- 866 }
- 867
- 868 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 869 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 870 logger.endLogStep();
- 871
- 872 logger.addLogStep("Releasing LTE carrier for branch " + AntennaBranchId.A);
- 873 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 874 logger.endLogStep();
- 875 sleepSeconds(5);
- 876
- 877 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 878 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 879 logger.endLogStep();
- 880
- 881 }
- 882
- 883 /**
- 884 * Verify RU does not restart SBPS after fault is raised from TXL if the current carrier
- 885 * configuration is at mixed mode
- 886 * Details:
- 887 * -Setup LTE carrier
- 888 * -Send subscription request and check that report indication is received
- 889 * -Activate LTE carrier,verify SbpsSrv state
- 890 * -Check that report indication is received
- 891 * -Setup GSM carrier
- 892 * -Send subscription request and check that report indication is received
- 893 * -Activate GSM carrier,verify SbpsSrv state
- 894 * -Check that report indications are received (if SBPS does not support GSM)
- 895 * -Raise SBPS failed event using the injection tool (if SBPS supports GSM)
- 896 * -Verify SbpsSrv state
- 897 * -Deactivate GSM carrier,verify SbpsSrv state
- 898 * -Check that report indications are received
- 899 * -Release carriers, verify SbpsSrv state
- 900 * Migrated Mira TC:
- 901 * "TX_MOD C2, TC6: L+G, Verify RU does not restart SBPS after fault is raised
- 902 * from TXL if the current carrier configuration is at mixed mode, prio 2"
- 903 */
- 904 @Test(enabled = true)
- 905 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC6:L+G",
- 906 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL if the current carrier configuration is at mixed mode",
- 907 testReqRef = " ",
- 908 testPriority = "B")
- 909 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 910 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD, RatType.GSM },
- 911 numTxBranchesMoreThan = 0,
- 912 supportSBPS = Bool.TRUE))
- 913 public void sbpsC2_TC6_LG() {
- 914 setTestCase(
- 915 "SBPS-C2-TC6:L+G",
- 916 "Verify RU does not restart SBPS after fault is raised from TXL if the current carrier configuration is at mixed mode, prio B");
- 917
- 918 /*
- 919 * Setup and activate an LTE carrier.
- 920 * carrierId = 0, port = A, axcId = 1
- 921 */
- 922 logger.addLogStep("Setup LTE carrier on branch" + AntennaBranchId.A);
- 923 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 924 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 925 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 926 logger.endLogStep();
- 927
- 928 logger.addLogStep("Send subscription request and check that report indication is received");
- 929 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 930 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 931 logger.endLogStep();
- 932
- 933 logger.addLogStep("Activate LTE carrier on branch " + AntennaBranchId.A);
- 934 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 935 logger.endLogStep();
- 936
- 937 /*
- 938 * Check if SBPS is enabled
- 939 */
- 940 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 941 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 942 logger.endLogStep();
- 943
- 944 logger.addLogStep("Verify that report indication is received");
- 945 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 946 logger.endLogStep();
- 947
- 948 /*
- 949 * Setup and activate GSM carrier
- 950 * carrierId = 1, port = A, axcId = 1
- 951 */
- 952 logger.addLogStep("Setup GSM carrier on branch" + AntennaBranchId.A);
- 953 Carrier dlGsmCarrier = createGsmTxCarrier(1, RF_PORT_ID_A, 1);
- 954 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 955 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 956 logger.endLogStep();
- 957
- 958 logger.addLogStep("Send subscription request and check that report indication is received");
- 959 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 960 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 961 logger.endLogStep();
- 962
- 963 logger.addLogStep("Activate GSM carrier on branch " + AntennaBranchId.A);
- 964 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 965 logger.endLogStep();
- 966 sleepSeconds(1);
- 967
- 968 /*
- 969 * Check SBPS state.
- 970 */
- 971 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 972 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 973 logger.endLogStep();
- 974
- 975 if (!RADIO_SBPS_CAPABLE_GSM) {
- 976 logger.addLogStep("Verify that report indications are received");
- 977 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 978 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 979 logger.endLogStep();
- 980 }
- 981 else
- 982 {
- 983 /*
- 984 * Inject fault only when GSM carrier is supported for SBPS
- 985 * Raise the fault is enabled.
- 986 */
- 987 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 988 sleepSeconds(1);
- 989
- 990 /*
- 991 * Check SBPS state.
- 992 */
- 993 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 994 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 995 logger.endLogStep();
- 996
- 997 logger.addLogStep("Verify that report indications are received");
- 998 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 999 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 1000 logger.endLogStep();
- 1001 }
- 1002
- 1003 /*
- 1004 * Deactivate+release GSM carrier and release LTE carrier.
- 1005 */
- 1006 logger.addLogStep("Deactivate GSM carrier for branch" + AntennaBranchId.A);
- 1007 Assert.assertTrue(msiCarrierManager.deActivateCarrier(dlGsmCarrier));
- 1008 logger.endLogStep();
- 1009
- 1010 logger.addLogStep("Verify sbps state on branch" + AntennaBranchId.A);
- 1011 if (RADIO_SBPS_CAPABLE_GSM) {
- 1012 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 1013 } else {
- 1014 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 1015 logger.addLogStep("Verify that report indications are received");
- 1016 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 1017 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 1018 logger.endLogStep();
- 1019 }
- 1020 logger.endLogStep();
- 1021
- 1022 logger.addLogStep("Releasing GSM carrier for branch" + AntennaBranchId.A);
- 1023 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 1024 logger.endLogStep();
- 1025
- 1026 logger.addLogStep("Releasing LTE carrier for branch" + AntennaBranchId.A);
- 1027 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 1028 logger.endLogStep();
- 1029
- 1030 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 1031 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1032 logger.endLogStep();
- 1033
- 1034 /*
- 1035 * Restart the radio:
- 1036 * After the coli command 'txm brc a sbps-not-supported' (fault injection), parameter
- 1037 * isSbpsCapable remains in the state False. It is not possible to return to
- 1038 * the initial state (isSbpsCapable=True) with a coli command.
- 1039 * Therefore, it is necessary to restart the radio.
- 1040 */
- 1041 ColiCommandsUtils.restartToDefaultSlotAndWaitUntilRuUp(radioUnit.coli());
- 1042 }
- 1043
- 1044 /**
- 1045 * To verify SbpsSrv logic L+W.
- 1046 * Details:
- 1047 * -Setup+activate LTE carrier (Branch A), verify SbpsSrv state and carrier configuration
- 1048 * -Setup+activate WCDMA carrier (Branch B), verify SbpsSrv state and carrier configuration
- 1049 * -Release WCDMA carrier (Branch B)
- 1050 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 1051 * -Deactivate WCDMA carrier, verify SbpsSrv state
- 1052 * -Reactivate WCDMA carrier, verify SbpsSrv state
- 1053 * -Deactivate+Release WCDMA carrier, verify SbpsSrv state
- 1054 * -Release LTE carrier, verify SbpsSrv state
- 1055 * Branch B carrier tests are only done if radio supports multiple TX branches.
- 1056 * Migrated Mira TC:
- 1057 * "TX_MOD C3, TC7: L+W, Verify SbpsSrv logic when starting and ending with an LTE carrier, prio 1"
- 1058 */
- 1059 @Test(enabled = true)
- 1060 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC7:L+W",
- 1061 testTitle = "Verify SbpsSrv logic when starting and ending with an LTE carrier.",
- 1062 testReqRef = " ",
- 1063 testPriority = "A")
- 1064 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_50 })
- 1065 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD, RatType.WCDMA },
- 1066 supportsRatAllOf = { RatType.WCDMA, RatType.LTE_FDD },
- 1067 numTxBranchesMoreThan = 0,
- 1068 supportSBPS = Bool.TRUE))
- 1069 public void sbpsC3_TC7_LW() {
- 1070 setTestCase("SBPS-TC7:L+W",
- 1071 "Verify SbpsSrv logic when starting and ending with an LTE carrier, prio A");
- 1072
- 1073 /*
- 1074 * Setup and activate an LTE carrier.
- 1075 * carrierId = 0, port = A, axcId = 1
- 1076 */
- 1077 logger.addLogStep("Setup, create and activate LTE carrier");
- 1078 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 1079 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 1080 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 1081 Assert.assertTrue(msiCarrierManager.activateCarrier(dlLteCarrier));
- 1082 logger.endLogStep();
- 1083
- 1084 /*
- 1085 * Get WCDMA CM and connect to the RADIO
- 1086 */
- 1087 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 1088 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory
- 1089 .getCarrierManagement(wcdmaClient);
- 1090
- 1091 ConnSetupUtils.open(wcdmaClient);
- 1092 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 1093
- 1094 /*
- 1095 * Verify that TPA Settable Power is supported.
- 1096 */
- 1097 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 1098
- 1099 /*
- 1100 * Since an LTE carrier is already activated, therefore we can start to check if
- 1101 * SBPS is enabled.
- 1102 */
- 1103 logger.addLogStep(SBPS_ENABLED_TEXT + "A");
- 1104 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 1105 logger.endLogStep();
- 1106
- 1107 /*
- 1108 * If radio has more than 1 TX branch we will also setup WCDMA on
- 1109 * branch B, therefore branch B is added to the branchList
- 1110 * Also reverse the branch list since we want to add WCDMA on B and see that
- 1111 * branch A is not affected when setting up WCDMA on branch B.
- 1112 */
- 1113 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 1114 if (StaticInfo.getInstance().getRuInfo().getRu().getTxBranches() > 1) {
- 1115 branchList.add(AntennaBranchId.B);
- 1116 }
- 1117 branchList.add(AntennaBranchId.A);
- 1118 WcdmaCarrier dlWcdmaCarrier = null;
- 1119
- 1120 for (AntennaBranchId currBranch : branchList) {
- 1121
- 1122 int currTpaId = 0;
- 1123 int currCarrierId = 0;
- 1124 int currRfPort = 0;
- 1125 int currAxcId = 0;
- 1126
- 1127 /*
- 1128 * Used rfPort B for branch B and rfPort A for branch A
- 1129 * carrierId = x, rfPort = x
- 1130 */
- 1131 if (currBranch == AntennaBranchId.B) {
- 1132 currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_B;
- 1133 currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 2;
- 1134 currRfPort = RF_PORT_ID_B;
- 1135 currAxcId = 2;
- 1136 } else {
- 1137 currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 1138 currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 1139 currRfPort = RF_PORT_ID_A;
- 1140 currAxcId = 3;
- 1141 }
- 1142
- 1143 logger.addLogStep("Modify power on branch " + currBranch);
- 1144 Assert.assertTrue(setWcdmaTpaModifyPower(currBranch, currTpaId));
- 1145 logger.endLogStep();
- 1146
- 1147 logger.addLogStep("Setup and activate WCDMA carriers on branch " + currBranch);
- 1148 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1149 Assert.assertNotNull(dlWcdmaCarrier, "WCDMA carrier couldn't be created");
- 1150 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1151 logger.endLogStep();
- 1152
- 1153 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 1154 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 1155 logger.endLogStep();
- 1156
- 1157 if (currBranch == AntennaBranchId.B) {
- 1158 /* Verify that activation on branch B hasn't affected state on branch A */
- 1159 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1160 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 1161 logger.endLogStep();
- 1162
- 1163 logger.addLogStep("Releasing WCDMA carrier for branch " + currBranch);
- 1164 Assert.assertTrue(releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1165 logger.endLogStep();
- 1166
- 1167 } else {
- 1168 logger.addLogStep("Deactivate WCDMA carrier for branch " + currBranch);
- 1169 Assert.assertTrue(wcdmaCarrierManager.deActivateCarrier(dlWcdmaCarrier));
- 1170 logger.endLogStep();
- 1171 sleepSeconds(5);
- 1172
- 1173 logger.addLogStep(SBPS_ENABLED_TEXT + currBranch);
- 1174 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 1175 logger.endLogStep();
- 1176
- 1177 logger.addLogStep("Activate WCDMA carrier for branch " + currBranch);
- 1178 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1179 logger.endLogStep();
- 1180 sleepSeconds(5);
- 1181
- 1182 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 1183 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 1184 logger.endLogStep();
- 1185
- 1186 logger.addLogStep("Releasing WCDMA carrier for branch " + currBranch);
- 1187 Assert.assertTrue(releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1188 logger.endLogStep();
- 1189 sleepSeconds(5);
- 1190
- 1191 logger.addLogStep(SBPS_ENABLED_TEXT + currBranch);
- 1192 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 1193 logger.endLogStep();
- 1194
- 1195 logger.addLogStep("Releasing LTE carrier for branch " + currBranch);
- 1196 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 1197 logger.endLogStep();
- 1198 sleepSeconds(5);
- 1199
- 1200 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 1201 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 1202 logger.endLogStep();
- 1203 }
- 1204 }
- 1205 logger.addLogStep(" clear baseband configurations ");
- 1206 ColiCommandsUtils.restartToDefaultSlotAndWaitUntilRuUp(radioUnit.coli());
- 1207 logger.endLogStep();
- 1208
- 1209 }
- 1210
- 1211 /**
- 1212 * To verify SbpsSrv logic L+W TC8.
- 1213 * Purpose:
- 1214 * To verify SbpsSrv logic when starting with a WCDMA carrier and ending with a WCDMA carrier.
- 1215 * Details:
- 1216 * -Setup+activate WCDMA carrier (Branch A), verify SbpsSrv state and carrier configuration
- 1217 * -Setup+activate LTE carrier (branch B), verify SbpsSrv state and carrier configuration
- 1218 * -Release LTE carrier (branch B)
- 1219 * -Setup+activate LTE carrier (Branch A), verify SbpsSrv state and carrier configuration
- 1220 * -Deactivate LTE carrier, verify SbpsSrv state
- 1221 * -Reactivate LTE carrier, verify SbpsSrv state
- 1222 * -Deactivate+release LTE carrier, verify SbpsSrv state
- 1223 * -Release WCDMA carrier
- 1224 * Branch B carrier tests are only done if radio supports multiple tx branches.
- 1225 * Migrated Mira TC:
- 1226 * "TX_MOD C3, TC8: L+W, Verify SbpsSrv logic when starting and ending with an WCDMA carrier, prio 1"
- 1227 * Testcase: tx_sbps_logic_lte_wcdma_c3_tc8
- 1228 */
- 1229 @Test(enabled = true)
- 1230 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC8:L+W",
- 1231 testTitle = "Verify SbpsSrv logic when starting and ending with a WCDMA carrier.",
- 1232 testReqRef = " ",
- 1233 testPriority = "A")
- 1234 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 1235 @Run(@If(ratTypeConnection1OneOf = { RatType.LTE_FDD, RatType.WCDMA },
- 1236 supportsRatAllOf = { RatType.WCDMA, RatType.LTE_FDD },
- 1237 numTxBranchesMoreThan = 0,
- 1238 supportSBPS = Bool.TRUE))
- 1239 public void sbpsC3_TC8_LW() {
- 1240 setTestCase("SBPS-TC8:L+W",
- 1241 "Verify SbpsSrv logic when starting and ending with a WCDMA carrier, prio A");
- 1242
- 1243 // Get WCDMA CM and connect to the RADIO
- 1244 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 1245 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory.getCarrierManagement(wcdmaClient);
- 1246
- 1247 ConnSetupUtils.open(wcdmaClient);
- 1248 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 1249
- 1250 // Verify that TPA Settable Power is supported.
- 1251 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 1252
- 1253 // Create TPA device
- 1254 int currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 1255 int currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 1256 int currRfPort = RF_PORT_ID_A;
- 1257 int currAxcId = 2;
- 1258 WcdmaCarrier dlWcdmaCarrier = null;
- 1259 AntennaBranchId wcdmaBranch = AntennaBranchId.A;
- 1260
- 1261 logger.addLogStep("Modify power on branch " + wcdmaBranch + "wcdmaCurrierId = " + currCarrierId);
- 1262 ElvisAssert.saveAssertTrue("Modify power on wcdmaBranch", setWcdmaTpaModifyPower(wcdmaBranch, currTpaId));
- 1263 logger.endLogStep();
- 1264
- 1265 // Setup+activate WCDMA carrier on branch A
- 1266 logger.addLogStep("Setup and activate WCDMA carriers on branch " + wcdmaBranch);
- 1267 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1268 ElvisAssert.saveAssertNotNull("WCDMA carrier couldn't be created", dlWcdmaCarrier);
- 1269 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1270 logger.endLogStep();
- 1271
- 1272 logger.addLogStep(SBPS_DISABLED_TEXT + wcdmaBranch);
- 1273 VerifySbps.verifySpbsState(wcdmaBranch, SBPSState.DISABLED);
- 1274 logger.endLogStep();
- 1275
- 1276 // If radio has more than 1 TX branch we will also setup LTE on branch B,
- 1277 // therefore branch B is added to the branchList
- 1278 // Also reverse the branch list since we want to add LTE on B and see that
- 1279 // branch A is not affected when setting up LTE on branch B.
- 1280 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 1281 if (StaticInfo.getInstance().getRuInfo().getRu().getTxBranches() > 1) {
- 1282 branchList.add(AntennaBranchId.B);
- 1283 }
- 1284 branchList.add(AntennaBranchId.A);
- 1285
- 1286 // Reverse to perform branch B test first (if radio supports multiple tx)
- 1287 for (AntennaBranchId currBranch : branchList) {
- 1288
- 1289 currAxcId = 1;
- 1290 if (currBranch == AntennaBranchId.B) {
- 1291 currRfPort = RF_PORT_ID_B;
- 1292 currCarrierId = 2;
- 1293 } else {
- 1294 currRfPort = RF_PORT_ID_A;
- 1295 currCarrierId = 3;
- 1296 }
- 1297
- 1298 // Setup+activate LTE carrier
- 1299 logger.addLogStep("Setup, create and activate LTE carrier");
- 1300 dlLteCarrier = createLteTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1301 dlLteCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.LTE_FDD)
- 1302 .get(0)
- 1303 .getTxOperationBandLowEdge()
- 1304 + Carrier.CarrierConstants.CARRIER_BANDWIDTH_10000.getValue());
- 1305 ElvisAssert.saveAssertNotNull("LTE carrier couldn't be created", dlLteCarrier);
- 1306 ElvisAssert.saveAssertTrue("Setup LTE carrier", msiCarrierManager.setupCarrier(dlLteCarrier));
- 1307 ElvisAssert.saveAssertTrue("Activate LTE carrier", msiCarrierManager.activateCarrier(dlLteCarrier));
- 1308 logger.endLogStep();
- 1309
- 1310 if (currBranch == AntennaBranchId.B) {
- 1311 logger.addLogStep(SBPS_ENABLED_TEXT + currBranch);
- 1312 VerifySbps.verifySpbsState(AntennaBranchId.B, SBPSState.ENABLED);
- 1313 logger.endLogStep();
- 1314
- 1315 // Verify that activation on branch B hasn't affected state on branch A
- 1316 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1317 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1318 logger.endLogStep();
- 1319
- 1320 // Release LTE carrier on branch B
- 1321 logger.addLogStep("Releasing LTE carrier for branch " + currBranch);
- 1322 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 1323 logger.endLogStep();
- 1324 sleepSeconds(5);
- 1325
- 1326 } else {
- 1327 // Deactivate LTE carrier
- 1328 logger.addLogStep("Deactivate LTE carrier for branch " + currBranch);
- 1329 msiCarrierManager.deActivateCarrier(dlLteCarrier);
- 1330 logger.endLogStep();
- 1331
- 1332 sleepSeconds(5);
- 1333 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1334 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1335 logger.endLogStep();
- 1336
- 1337 // Reactivate LTE carrier
- 1338 logger.addLogStep("Reactivate LTE carrier for branch " + currBranch);
- 1339 ElvisAssert.saveAssertTrue("Reactive LTE carrier", msiCarrierManager.activateCarrier(dlLteCarrier));
- 1340 logger.endLogStep();
- 1341
- 1342 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1343 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1344 logger.endLogStep();
- 1345
- 1346 // Deactivate+release LTE carrier
- 1347 logger.addLogStep("Deactivate LTE carrier for branch " + currBranch);
- 1348 msiCarrierManager.deActivateCarrier(dlLteCarrier);
- 1349 logger.endLogStep();
- 1350
- 1351 logger.addLogStep("Releasing LTE carrier for branch " + currBranch);
- 1352 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 1353 logger.endLogStep();
- 1354
- 1355 sleepSeconds(5);
- 1356 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1357 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1358 logger.endLogStep();
- 1359
- 1360 // Release WCDMA carrier
- 1361 logger.addLogStep("Releasing WCDMA carrier for branch " + currBranch);
- 1362 ElvisAssert.saveAssertTrue("Releasing WCDMA carrier", releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1363 logger.endLogStep();
- 1364 }
- 1365 }
- 1366
- 1367 logger.addLogStep(" clear baseband configurations ");
- 1368 ColiCommandsUtils.restartToDefaultSlotAndWaitUntilRuUp(radioUnit.coli());
- 1369 logger.endLogStep();
- 1370 }
- 1371
- 1372 /**
- 1373 * To verify SbpsSrv logic L+W TC9.
- 1374 * Details:
- 1375 * -Setup+activate LTE carrier (branch A), verify SbpsSrv state and carrier configuration
- 1376 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 1377 * -Release LTE carrier, verify SbpsSrv state
- 1378 * -Release WCDMA carrier
- 1379 * Migrated Mira TC:
- 1380 * "TX_MOD C3, TC9: L+W, Verify SbpsSrv logic when starting with an LTE carrier and ending with a WCDMA carrier, prio 1"
- 1381 */
- 1382 @Test(enabled = true)
- 1383 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC9:L+W",
- 1384 testTitle = "Verify SbpsSrv logic when starting with an LTE carrier and ending with a WCDMA carrier.",
- 1385 testReqRef = " ",
- 1386 testPriority = "A")
- 1387 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 1388 @Run(@If(ratTypeConnection1OneOf = { RatType.LTE_FDD, RatType.WCDMA },
- 1389 supportsRatAllOf = { RatType.WCDMA, RatType.LTE_FDD },
- 1390 numTxBranchesMoreThan = 0,
- 1391 supportSBPS = Bool.TRUE))
- 1392 public void sbpsC3_TC9_LW() {
- 1393 setTestCase("SBPS-TC9:L+W",
- 1394 "Verify SbpsSrv logic when starting with an LTE carrier and ending with a WCDMA carrier, prio A");
- 1395
- 1396 /*
- 1397 * Setup and activate an LTE carrier.
- 1398 * carrierId = 0, port = A, axcId = 1
- 1399 */
- 1400 logger.addLogStep("Setup, create and activate LTE carrier");
- 1401 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 1402 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 1403 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 1404 Assert.assertTrue(msiCarrierManager.activateCarrier(dlLteCarrier));
- 1405 logger.endLogStep();
- 1406
- 1407 // Get WCDMA CM and connect to the RADIO
- 1408 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 1409 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory
- 1410 .getCarrierManagement(wcdmaClient);
- 1411
- 1412 ConnSetupUtils.open(wcdmaClient);
- 1413 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 1414
- 1415 // Verify that TPA Settable Power is supported.
- 1416 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 1417
- 1418 // Since an LTE carrier is already activated, therefore we can start to check if
- 1419 // SBPS is enabled.
- 1420 logger.addLogStep(SBPS_ENABLED_TEXT + "A");
- 1421 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 1422 logger.endLogStep();
- 1423
- 1424 // Create TPA device
- 1425 int currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 1426 int currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 1427 int currRfPort = RF_PORT_ID_A;
- 1428 int currAxcId = 2;
- 1429 WcdmaCarrier dlWcdmaCarrier = null;
- 1430
- 1431 logger.addLogStep("Modify power on branchA wcdmaCurrierId = " + currCarrierId);
- 1432 ElvisAssert.saveAssertTrue("Modify power on Branch A", setWcdmaTpaModifyPower(AntennaBranchId.A, currTpaId));
- 1433 logger.endLogStep();
- 1434
- 1435 // Setup+activate WCDMA carrier on branch A
- 1436 logger.addLogStep("Setup and activate WCDMA carriers on branch A");
- 1437 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1438 ElvisAssert.saveAssertNotNull("WCDMA carrier couldn't be created", dlWcdmaCarrier);
- 1439 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1440 logger.endLogStep();
- 1441
- 1442 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 1443 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1444 logger.endLogStep();
- 1445
- 1446 logger.addLogStep("Releasing LTE carrier for branch A");
- 1447 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 1448 logger.endLogStep();
- 1449 sleepSeconds(3);
- 1450
- 1451 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 1452 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1453 logger.endLogStep();
- 1454
- 1455 // Release WCDMA carrier
- 1456 logger.addLogStep("Releasing WCDMA carrier");
- 1457 ElvisAssert.saveAssertTrue("Releasing WCDMA carrier", releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1458 logger.endLogStep();
- 1459 sleepSeconds(3);
- 1460
- 1461 logger.addLogStep(" clear baseband configurations ");
- 1462 ColiCommandsUtils.restartToDefaultSlotAndWaitUntilRuUp(radioUnit.coli());
- 1463 logger.endLogStep();
- 1464 }
- 1465
- 1466 /**
- 1467 * To verify SbpsSrv logic L+W TC10.
- 1468 * Details:
- 1469 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 1470 * -Setup+activate LTE carrier (branch A), verify SbpsSrv state and carrier configuration
- 1471 * -Release WCDMA carrier, verify SbpsSrv state
- 1472 * -Release LTE carrier
- 1473 * Migrated Mira TC:
- 1474 * "TX_MOD C3, TC10: L+W, Verify SbpsSrv logic when starting with a WCDMA carrier and ending with an LTE carrier, prio 1"
- 1475 */
- 1476 @Test(enabled = true)
- 1477 @JcatMethod(testTag = "TX_MOD-C3,SBPS-TC10:L+W",
- 1478 testTitle = "Verify SbpsSrv logic when starting with a WCDMA carrier and ending with an LTE carrier.",
- 1479 testReqRef = " ",
- 1480 testPriority = "A")
- 1481 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 1482 @Run(@If(ratTypeConnection1OneOf = { RatType.LTE_FDD, RatType.WCDMA },
- 1483 supportsRatAllOf = { RatType.WCDMA, RatType.LTE_FDD },
- 1484 numTxBranchesMoreThan = 0,
- 1485 supportSBPS = Bool.TRUE))
- 1486 public void sbpsC3_TC10_LW() {
- 1487 setTestCase("SBPS-TC10:L+W",
- 1488 "Verify SbpsSrv logic when starting with a WCDMA carrier and ending with an LTE carrier, prio A");
- 1489
- 1490 // Get WCDMA CM and connect to the RADIO
- 1491 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 1492 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory
- 1493 .getCarrierManagement(wcdmaClient);
- 1494
- 1495 ConnSetupUtils.open(wcdmaClient);
- 1496 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 1497
- 1498 // Verify that TPA Settable Power is supported.
- 1499 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 1500
- 1501 // Create TPA device
- 1502 int currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 1503 int currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 1504 int currRfPort = RF_PORT_ID_A;
- 1505 int currAxcId = 2;
- 1506 WcdmaCarrier dlWcdmaCarrier = null;
- 1507
- 1508 logger.addLogStep("Modify power on branchA wcdmaCurrierId = " + currCarrierId);
- 1509 ElvisAssert.saveAssertTrue("Modify power on Branch A", setWcdmaTpaModifyPower(AntennaBranchId.A, currTpaId));
- 1510 logger.endLogStep();
- 1511
- 1512 // Setup+activate WCDMA carrier on branch A
- 1513 logger.addLogStep("Setup and activate WCDMA carriers on branch A");
- 1514 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1515 ElvisAssert.saveAssertNotNull("WCDMA carrier couldn't be created", dlWcdmaCarrier);
- 1516 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1517 logger.endLogStep();
- 1518
- 1519 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 1520 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1521 logger.endLogStep();
- 1522
- 1523 // Setup+activate LTE carrier
- 1524 logger.addLogStep("Setup, create and activate LTE carrier");
- 1525 currCarrierId = 2;
- 1526 currAxcId = 1;
- 1527 dlLteCarrier = createLteTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1528 dlLteCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.LTE_FDD)
- 1529 .get(0)
- 1530 .getTxOperationBandLowEdge()
- 1531 + Carrier.CarrierConstants.CARRIER_BANDWIDTH_10000.getValue());
- 1532 ElvisAssert.saveAssertNotNull("LTE carrier couldn't be created", dlLteCarrier);
- 1533 ElvisAssert.saveAssertTrue("Setup LTE carrier", msiCarrierManager.setupCarrier(dlLteCarrier));
- 1534 ElvisAssert.saveAssertTrue("Activate LTE carrier", msiCarrierManager.activateCarrier(dlLteCarrier));
- 1535 logger.endLogStep();
- 1536
- 1537 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 1538 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1539 logger.endLogStep();
- 1540
- 1541 // Release WCDMA carrier
- 1542 logger.addLogStep("Releasing WCDMA carrier");
- 1543 ElvisAssert.saveAssertTrue("Releasing WCDMA carrier", releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1544 logger.endLogStep();
- 1545 sleepSeconds(3);
- 1546
- 1547 // An LTE carrier is activated, therefore we can start to check if SBPS is enabled.
- 1548 logger.addLogStep(SBPS_ENABLED_TEXT + "A");
- 1549 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 1550 logger.endLogStep();
- 1551
- 1552 logger.addLogStep("Releasing LTE carrier for branch A");
- 1553 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 1554 logger.endLogStep();
- 1555 sleepSeconds(3);
- 1556
- 1557 logger.addLogStep(" clear baseband configurations ");
- 1558 ColiCommandsUtils.restartToDefaultSlotAndWaitUntilRuUp(radioUnit.coli());
- 1559 logger.endLogStep();
- 1560 }
- 1561
- 1562 /**
- 1563 * To verify SbpsSrv logic W+G.
- 1564 * Details:
- 1565 * -Setup GSM carrier (branch A)
- 1566 * -Send subscription request and check that report indication is received
- 1567 * -Activate GSM carrier (branch A)
- 1568 * -Check that report indication is received (if SBPS supports GSM)
- 1569 * -Verify SbpsSrv state
- 1570 * -Setup+activate WCDMA carrier (branch B), verify SbpsSrv state and carrier configuration
- 1571 * -Release WCDMA carrier (branch B)
- 1572 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 1573 * -Check that report indication is received (if SBPS supports GSM)
- 1574 * -Deactivate WCDMA carrier (branch A), verify SbpsSrv state
- 1575 * -Check that report indication is received (if SBPS supports GSM)
- 1576 * -Reactivate WCDMA carrier (branch A), verify SbpsSrv state
- 1577 * -Check that report indication is received (if SBPS supports GSM)
- 1578 * -Deactivate+Release WCDMA carrier (branch A), verify SbpsSrv state
- 1579 * -Check that report indication is received (if SBPS supports GSM)
- 1580 * -Release GSM carrier (branch A), verify SbpsSrv state
- 1581 * Branch B carrier tests are only done if radio supports multiple TX branches.
- 1582 */
- 1583 @Test(enabled = true)
- 1584 @JcatMethod(testTag = "TX_MOD-C5,SBPS-TC1:W+G",
- 1585 testTitle = "Verify SbpsSrv logic when starting and ending with an GSM carrier.",
- 1586 testReqRef = " ",
- 1587 testPriority = "A")
- 1588 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_50 })
- 1589 @Run(@If(ratTypeAllOf = { RatType.GSM, RatType.WCDMA },
- 1590 supportsRatAllOf = { RatType.WCDMA, RatType.GSM },
- 1591 numTxBranchesMoreThan = 0,
- 1592 supportSBPS = Bool.TRUE))
- 1593 public void sbpsC5_TC1_WG() {
- 1594 setTestCase("SBPS-C5-TC1:W+G",
- 1595 "Verify SbpsSrv logic when starting and ending with an GSM carrier, prio A");
- 1596
- 1597 /*
- 1598 * Setup and activate an GSM carrier.
- 1599 * carrierId = 0, port = A, axcId = 1
- 1600 */
- 1601 logger.addLogStep("Setup and create GSM carrier");
- 1602 Carrier dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 1603 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 1604 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 1605 /*
- 1606 * Carrier frequency for GSM is calculated from ARFCN number which needs to be adjusted
- 1607 * accordingly. Minimum ARFCN number used to setup carrier in the low edge of the frequency
- 1608 * band thus needs to be increased in order to setup carrier 2.5 MHz away from the band low
- 1609 * edge as stated above.
- 1610 * Offset used (12) translated into frequency will give 12*200kHz(carrier BW)= 2.4 MHz
- 1611 */
- 1612 dlGsmCarrier.setArfcnMin(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 1613 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 1614 dlGsmCarrier.setArfcnMax(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 1615 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 1616 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 1617 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 1618 logger.endLogStep();
- 1619
- 1620 logger.addLogStep("Send subscription request and check that report indication is received");
- 1621 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 1622 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 1623 logger.endLogStep();
- 1624
- 1625 logger.addLogStep("Activate GSM carrier");
- 1626 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 1627 logger.endLogStep();
- 1628
- 1629 logger.addLogStep(SBPS_TEXT_GSM + "A");
- 1630 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 1631 logger.endLogStep();
- 1632
- 1633 if (RADIO_SBPS_CAPABLE_GSM) {
- 1634 logger.addLogStep("Check that report indication is received");
- 1635 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 1636 logger.endLogStep();
- 1637 }
- 1638
- 1639 /*
- 1640 * Get WCDMA CM and connect to the RADIO
- 1641 */
- 1642 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 1643 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory
- 1644 .getCarrierManagement(wcdmaClient);
- 1645
- 1646 ConnSetupUtils.open(wcdmaClient);
- 1647 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 1648
- 1649 /*
- 1650 * Verify that TPA Settable Power is supported
- 1651 */
- 1652 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 1653
- 1654 /*
- 1655 * If radio has more than 1 TX branch we will also setup WCDMA on
- 1656 * branch B, therefore branch B is added to the branchList
- 1657 * Also reverse the branch list since we want to add WCDMA on B and see that
- 1658 * branch A is not affected when setting up WCDMA on branch B.
- 1659 */
- 1660 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 1661 if (StaticInfo.getInstance().getRuInfo().getRu().getTxBranches() > 1) {
- 1662 branchList.add(AntennaBranchId.B);
- 1663 }
- 1664 branchList.add(AntennaBranchId.A);
- 1665 WcdmaCarrier dlWcdmaCarrier = null;
- 1666
- 1667 for (AntennaBranchId currBranch : branchList) {
- 1668
- 1669 int currTpaId = 0;
- 1670 int currCarrierId = 0;
- 1671 int currRfPort = 0;
- 1672 int currAxcId = 0;
- 1673
- 1674 /*
- 1675 * Used rfPort B for branch B and rfPort A for branch A
- 1676 * carrierId = x, rfPort = x
- 1677 */
- 1678 if (currBranch == AntennaBranchId.B) {
- 1679 currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_B;
- 1680 currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 2;
- 1681 currRfPort = RF_PORT_ID_B;
- 1682 currAxcId = 2;
- 1683 } else {
- 1684 currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 1685 currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 1686 currRfPort = RF_PORT_ID_A;
- 1687 currAxcId = 3;
- 1688 }
- 1689
- 1690 logger.addLogStep("Modify power on branch " + currBranch);
- 1691 Assert.assertTrue(setWcdmaTpaModifyPower(currBranch, currTpaId));
- 1692 logger.endLogStep();
- 1693
- 1694 logger.addLogStep("Setup and activate WCDMA carriers on branch " + currBranch);
- 1695 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1696 Assert.assertNotNull(dlWcdmaCarrier, "WCDMA carrier couldn't be created");
- 1697 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1698 logger.endLogStep();
- 1699
- 1700 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 1701 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 1702 logger.endLogStep();
- 1703
- 1704 if (currBranch == AntennaBranchId.B) {
- 1705 /* Verify that activation on branch B hasn't affected state on branch A */
- 1706 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1707 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 1708 logger.endLogStep();
- 1709
- 1710 logger.addLogStep("Releasing WCDMA carrier for branch " + currBranch);
- 1711 Assert.assertTrue(releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1712 logger.endLogStep();
- 1713
- 1714 } else {
- 1715
- 1716 if (RADIO_SBPS_CAPABLE_GSM) {
- 1717 logger.addLogStep("Check that report indication is received");
- 1718 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 1719 logger.endLogStep();
- 1720 }
- 1721
- 1722 logger.addLogStep("Deactivate WCDMA carrier for branch " + currBranch);
- 1723 Assert.assertTrue(wcdmaCarrierManager.deActivateCarrier(dlWcdmaCarrier));
- 1724 logger.endLogStep();
- 1725
- 1726 logger.addLogStep(SBPS_TEXT_GSM + currBranch);
- 1727 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 1728 logger.endLogStep();
- 1729
- 1730 if (RADIO_SBPS_CAPABLE_GSM) {
- 1731 logger.addLogStep("Check that report indication is received");
- 1732 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 1733 logger.endLogStep();
- 1734 }
- 1735
- 1736 logger.addLogStep("Activate WCDMA carrier for branch " + currBranch);
- 1737 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1738 logger.endLogStep();
- 1739
- 1740 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 1741 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 1742 logger.endLogStep();
- 1743
- 1744 if (RADIO_SBPS_CAPABLE_GSM) {
- 1745 logger.addLogStep("Check that report indication is received");
- 1746 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 1747 logger.endLogStep();
- 1748 }
- 1749
- 1750 logger.addLogStep("Releasing WCDMA carrier for branch " + currBranch);
- 1751 Assert.assertTrue(releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1752 logger.endLogStep();
- 1753
- 1754 logger.addLogStep(SBPS_TEXT_GSM + currBranch);
- 1755 VerifySbps.verifySpbsState(currBranch, SBPS_STATE_GSM);
- 1756 logger.endLogStep();
- 1757
- 1758 if (RADIO_SBPS_CAPABLE_GSM) {
- 1759 logger.addLogStep("Check that report indication is received");
- 1760 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 1761 logger.endLogStep();
- 1762 }
- 1763
- 1764 logger.addLogStep("Releasing GSM carrier for branch " + currBranch);
- 1765 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 1766 logger.endLogStep();
- 1767
- 1768 logger.addLogStep(SBPS_DISABLED_TEXT + currBranch);
- 1769 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 1770 logger.endLogStep();
- 1771 }
- 1772 }
- 1773 logger.addLogStep("Clear baseband configurations");
- 1774 WcdmaBasebandConfigurationUtils.getInstance().clearBasebandData(wcdmaClient, dlWcdmaCarrier);
- 1775 logger.endLogStep();
- 1776
- 1777 }
- 1778
- 1779 /**
- 1780 * To verify SbpsSrv logic W+G TC2.
- 1781 * Purpose:
- 1782 * To verify SbpsSrv logic when starting with a WCDMA carrier and ending with a WCDMA carrier.
- 1783 * Details:
- 1784 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 1785 * -Setup GSM carrier (branch B)
- 1786 * -Send subscription request and check that report indication is received
- 1787 * -Activate GSM carrier (branch B)
- 1788 * -Check that report indication is received (if SBPS supports GSM)
- 1789 * -Verify SbpsSrv state
- 1790 * -Release GSM carrier (branch B)
- 1791 * -Setup GSM carrier (branch A)
- 1792 * -Send subscription request and check that report indication is received
- 1793 * -Activate GSM carrier (branch A)
- 1794 * -Deactivate GSM carrier (branch A), verify SbpsSrv state
- 1795 * -Send subscription request and check that report indication is received
- 1796 * -Reactivate GSM carrier (branch A), verify SbpsSrv state
- 1797 * -Deactivate+release GSM carrier (branch A), verify SbpsSrv state
- 1798 * -Release WCDMA carrier
- 1799 * Branch B carrier tests are only done if radio supports multiple tx branches.
- 1800 */
- 1801 @Test(enabled = true)
- 1802 @JcatMethod(testTag = "TX_MOD-C5,SBPS-TC2:W+G",
- 1803 testTitle = "Verify SbpsSrv logic when starting and ending with a WCDMA carrier.",
- 1804 testReqRef = " ",
- 1805 testPriority = "A")
- 1806 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 1807 @Run(@If(ratTypeConnection1OneOf = { RatType.GSM, RatType.WCDMA },
- 1808 supportsRatAllOf = { RatType.WCDMA, RatType.GSM },
- 1809 numTxBranchesMoreThan = 0,
- 1810 supportSBPS = Bool.TRUE))
- 1811 public void sbpsC5_TC2_WG() {
- 1812 setTestCase("SBPS-C5-TC2:W+G",
- 1813 "Verify SbpsSrv logic when starting and ending with a WCDMA carrier, prio A");
- 1814
- 1815 // Get WCDMA CM and connect to the RADIO
- 1816 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 1817 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory.getCarrierManagement(wcdmaClient);
- 1818
- 1819 ConnSetupUtils.open(wcdmaClient);
- 1820 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 1821
- 1822 // Verify that TPA Settable Power is supported.
- 1823 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 1824
- 1825 // Create TPA device
- 1826 int currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 1827 int currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 1828 int currRfPort = RF_PORT_ID_A;
- 1829 int currAxcId = 2;
- 1830 WcdmaCarrier dlWcdmaCarrier = null;
- 1831 AntennaBranchId wcdmaBranch = AntennaBranchId.A;
- 1832
- 1833 logger.addLogStep("Modify power on branch " + wcdmaBranch + "wcdmaCurrierId = " + currCarrierId);
- 1834 ElvisAssert.saveAssertTrue("Modify power on wcdmaBranch", setWcdmaTpaModifyPower(wcdmaBranch, currTpaId));
- 1835 logger.endLogStep();
- 1836
- 1837 // Setup+activate WCDMA carrier on branch A
- 1838 logger.addLogStep("Setup and activate WCDMA carriers on branch " + wcdmaBranch);
- 1839 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1840 ElvisAssert.saveAssertNotNull("WCDMA carrier couldn't be created", dlWcdmaCarrier);
- 1841 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 1842 logger.endLogStep();
- 1843
- 1844 logger.addLogStep(SBPS_DISABLED_TEXT + wcdmaBranch);
- 1845 VerifySbps.verifySpbsState(wcdmaBranch, SBPSState.DISABLED);
- 1846 logger.endLogStep();
- 1847
- 1848 // If radio has more than 1 TX branch we will also setup GSM on branch B,
- 1849 // therefore branch B is added to the branchList
- 1850 // Also reverse the branch list since we want to add GSM on B and see that
- 1851 // branch A is not affected when setting up GSM on branch B.
- 1852 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 1853 if (StaticInfo.getInstance().getRuInfo().getRu().getTxBranches() > 1) {
- 1854 branchList.add(AntennaBranchId.B);
- 1855 }
- 1856 branchList.add(AntennaBranchId.A);
- 1857
- 1858 // Reverse to perform branch B test first (if radio supports multiple tx)
- 1859 for (AntennaBranchId currBranch : branchList) {
- 1860
- 1861 currAxcId = 1;
- 1862 if (currBranch == AntennaBranchId.B) {
- 1863 currRfPort = RF_PORT_ID_B;
- 1864 currCarrierId = 2;
- 1865 } else {
- 1866 currRfPort = RF_PORT_ID_A;
- 1867 currCarrierId = 3;
- 1868 }
- 1869
- 1870 // Setup+activate GSM carrier
- 1871 logger.addLogStep("Setup and create GSM carrier");
- 1872 Carrier dlGsmCarrier = createGsmTxCarrier(currCarrierId, currRfPort, currAxcId);
- 1873 ElvisAssert.saveAssertNotNull("GSM carrier couldn't be created", dlGsmCarrier);
- 1874 ElvisAssert.saveAssertTrue("Setup GSM carrier", msiCarrierManager.setupCarrier(dlGsmCarrier));
- 1875 logger.endLogStep();
- 1876
- 1877 logger.addLogStep("Send subscription request and check that report indication is received");
- 1878 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 1879 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 1880 logger.endLogStep();
- 1881
- 1882 logger.addLogStep("Activate GSM carrier");
- 1883 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 1884 logger.endLogStep();
- 1885
- 1886 if (currBranch == AntennaBranchId.B) {
- 1887
- 1888 logger.addLogStep(SBPS_TEXT_GSM + currBranch);
- 1889 VerifySbps.verifySpbsState(AntennaBranchId.B, SBPS_STATE_GSM);
- 1890 logger.endLogStep();
- 1891
- 1892 if (RADIO_SBPS_CAPABLE_GSM) {
- 1893 logger.addLogStep("Check that report indication is received");
- 1894 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 1895 logger.endLogStep();
- 1896 }
- 1897
- 1898 // Verify that activation on branch B hasn't affected state on branch A
- 1899 logger.addLogStep(SBPS_AFFECTED_TEXT);
- 1900 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1901 logger.endLogStep();
- 1902
- 1903 // Release GSM carrier on branch B
- 1904 logger.addLogStep("Releasing GSM carrier for branch " + currBranch);
- 1905 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 1906 logger.endLogStep();
- 1907
- 1908 logger.addLogStep(SBPS_DISABLED_TEXT + "B");
- 1909 VerifySbps.verifySpbsState(AntennaBranchId.B, SBPSState.DISABLED);
- 1910 logger.endLogStep();
- 1911
- 1912 } else {
- 1913
- 1914 logger.addLogStep(SBPS_DISABLED_TEXT + "A");
- 1915 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1916 logger.endLogStep();
- 1917
- 1918 // Deactivate GSM carrier
- 1919 logger.addLogStep("Deactivate GSM carrier for branch " + currBranch);
- 1920 msiCarrierManager.deActivateCarrier(dlGsmCarrier);
- 1921 logger.endLogStep();
- 1922
- 1923 logger.addLogStep(SBPS_DISABLED_TEXT + "A");
- 1924 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1925 logger.endLogStep();
- 1926
- 1927 logger.addLogStep("Send subscription request and check that report indication is received");
- 1928 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 1929 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 1930 logger.endLogStep();
- 1931
- 1932 // Reactivate GSM carrier
- 1933 logger.addLogStep("Reactivate GSM carrier for branch " + currBranch);
- 1934 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 1935 logger.endLogStep();
- 1936
- 1937 logger.addLogStep(SBPS_DISABLED_TEXT + "A");
- 1938 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1939 logger.endLogStep();
- 1940
- 1941 // Deactivate+release GSM carrier
- 1942 logger.addLogStep("Deactivate GSM carrier for branch " + currBranch);
- 1943 msiCarrierManager.deActivateCarrier(dlGsmCarrier);
- 1944 logger.endLogStep();
- 1945
- 1946 logger.addLogStep("Releasing GSM carrier for branch " + currBranch);
- 1947 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 1948 logger.endLogStep();
- 1949 sleepSeconds(5);
- 1950
- 1951 logger.addLogStep(SBPS_DISABLED_TEXT + "A");
- 1952 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1953 logger.endLogStep();
- 1954
- 1955 // Release WCDMA carrier
- 1956 logger.addLogStep("Releasing WCDMA carrier for branch " + currBranch);
- 1957 ElvisAssert.saveAssertTrue("Releasing WCDMA carrier", releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 1958 logger.endLogStep();
- 1959
- 1960 logger.addLogStep(SBPS_DISABLED_TEXT + "A");
- 1961 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 1962 logger.endLogStep();
- 1963
- 1964 }
- 1965 }
- 1966
- 1967 logger.addLogStep("Clear baseband configurations");
- 1968 WcdmaBasebandConfigurationUtils.getInstance().clearBasebandData(wcdmaClient, dlWcdmaCarrier);
- 1969 logger.endLogStep();
- 1970 }
- 1971
- 1972 /**
- 1973 * To verify SbpsSrv logic W+G TC3.
- 1974 * Details:
- 1975 * -Setup GSM carrier (branch A)
- 1976 * -Send subscription request and check that report indication is received
- 1977 * -Activate GSM carrier (branch A)
- 1978 * -Check that report indication is received (if SBPS supports GSM)
- 1979 * -Verify SbpsSrv state
- 1980 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 1981 * -Check that report indication is received (if SBPS supports GSM)
- 1982 * -Release GSM carrier, verify SbpsSrv state
- 1983 * -Release WCDMA carrier
- 1984 */
- 1985 @Test(enabled = true)
- 1986 @JcatMethod(testTag = "TX_MOD-C5,SBPS-TC3:W+G",
- 1987 testTitle = "Verify SbpsSrv logic when starting with an GSM carrier and ending with a WCDMA carrier.",
- 1988 testReqRef = " ",
- 1989 testPriority = "A")
- 1990 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 1991 @Run(@If(ratTypeConnection1OneOf = { RatType.GSM, RatType.WCDMA },
- 1992 supportsRatAllOf = { RatType.WCDMA, RatType.GSM },
- 1993 numTxBranchesMoreThan = 0,
- 1994 supportSBPS = Bool.TRUE))
- 1995 public void sbpsC5_TC3_WG() {
- 1996 setTestCase("SBPS-C5-TC3:W+G",
- 1997 "Verify SbpsSrv logic when starting with an GSM carrier and ending with a WCDMA carrier, prio A");
- 1998
- 1999 /*
- 2000 * Setup and activate an GSM carrier.
- 2001 * carrierId = 0, port = A, axcId = 1
- 2002 */
- 2003 logger.addLogStep("Setup and create GSM carrier");
- 2004 Carrier dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 2005 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 2006 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 2007 /*
- 2008 * Carrier frequency for GSM is calculated from ARFCN number which needs to be adjusted
- 2009 * accordingly. Minimum ARFCN number used to setup carrier in the low edge of the frequency
- 2010 * band thus needs to be increased in order to setup carrier 2.5 MHz away from the band low
- 2011 * edge as stated above.
- 2012 * Offset used (12) translated into frequency will give 12*200kHz(carrier BW)= 2.4 MHz
- 2013 */
- 2014 dlGsmCarrier.setArfcnMin(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 2015 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 2016 dlGsmCarrier.setArfcnMax(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 2017 .getArfcnRanges().get(0).getArfcnMin() + 12);
- 2018 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 2019 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 2020 logger.endLogStep();
- 2021
- 2022 logger.addLogStep("Send subscription request and check that report indication is received");
- 2023 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 2024 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2025 logger.endLogStep();
- 2026
- 2027 logger.addLogStep("Activate GSM carrier");
- 2028 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 2029 logger.endLogStep();
- 2030
- 2031 logger.addLogStep(SBPS_TEXT_GSM + "A");
- 2032 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 2033 logger.endLogStep();
- 2034
- 2035 if (RADIO_SBPS_CAPABLE_GSM) {
- 2036 logger.addLogStep("Check that report indication is received");
- 2037 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2038 logger.endLogStep();
- 2039 }
- 2040
- 2041 // Get WCDMA CM and connect to the RADIO
- 2042 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 2043 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory
- 2044 .getCarrierManagement(wcdmaClient);
- 2045
- 2046 ConnSetupUtils.open(wcdmaClient);
- 2047 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 2048
- 2049 // Verify that TPA Settable Power is supported.
- 2050 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 2051
- 2052 // Create TPA device
- 2053 int currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 2054 int currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 2055 int currRfPort = RF_PORT_ID_A;
- 2056 int currAxcId = 2;
- 2057 WcdmaCarrier dlWcdmaCarrier = null;
- 2058
- 2059 logger.addLogStep("Modify power on branchA wcdmaCurrierId = " + currCarrierId);
- 2060 ElvisAssert.saveAssertTrue("Modify power on Branch A", setWcdmaTpaModifyPower(AntennaBranchId.A, currTpaId));
- 2061 logger.endLogStep();
- 2062
- 2063 // Setup+activate WCDMA carrier on branch A
- 2064 logger.addLogStep("Setup and activate WCDMA carriers on branch A");
- 2065 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 2066 ElvisAssert.saveAssertNotNull("WCDMA carrier couldn't be created", dlWcdmaCarrier);
- 2067 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 2068 logger.endLogStep();
- 2069
- 2070 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2071 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2072 logger.endLogStep();
- 2073
- 2074 if (RADIO_SBPS_CAPABLE_GSM) {
- 2075 logger.addLogStep("Check that report indication is received");
- 2076 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2077 logger.endLogStep();
- 2078 }
- 2079
- 2080 logger.addLogStep("Releasing GSM carrier for branch A");
- 2081 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 2082 logger.endLogStep();
- 2083
- 2084 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2085 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2086 logger.endLogStep();
- 2087
- 2088 // Release WCDMA carrier
- 2089 logger.addLogStep("Releasing WCDMA carrier");
- 2090 ElvisAssert.saveAssertTrue("Releasing WCDMA carrier", releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 2091 logger.endLogStep();
- 2092
- 2093 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2094 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2095 logger.endLogStep();
- 2096
- 2097 logger.addLogStep("Clear baseband configurations");
- 2098 WcdmaBasebandConfigurationUtils.getInstance().clearBasebandData(wcdmaClient, dlWcdmaCarrier);
- 2099 logger.endLogStep();
- 2100 }
- 2101
- 2102 /**
- 2103 * To verify SbpsSrv logic W+G TC4.
- 2104 * Details:
- 2105 * -Setup+activate WCDMA carrier (branch A), verify SbpsSrv state and carrier configuration
- 2106 * -Setup GSM carrier (branch A)
- 2107 * -Send subscription request and check that report indication is received
- 2108 * -Activate GSM carrier (branch A)
- 2109 * -Verify SbpsSrv state
- 2110 * -Release WCDMA carrier, verify SbpsSrv state
- 2111 * -Check that report indication is received (if SBPS supports GSM)
- 2112 * -Release GSM carrier
- 2113 */
- 2114 @Test(enabled = true)
- 2115 @JcatMethod(testTag = "TX_MOD-C5,SBPS-TC4:W+G",
- 2116 testTitle = "Verify SbpsSrv logic when starting with a WCDMA carrier and ending with an GSM carrier.",
- 2117 testReqRef = " ",
- 2118 testPriority = "A")
- 2119 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2120 @Run(@If(ratTypeConnection1OneOf = { RatType.GSM, RatType.WCDMA },
- 2121 supportsRatAllOf = { RatType.WCDMA, RatType.GSM },
- 2122 numTxBranchesMoreThan = 0,
- 2123 supportSBPS = Bool.TRUE))
- 2124 public void sbpsC5_TC4_WG() {
- 2125 setTestCase("SBPS-C5-TC4:W+G",
- 2126 "Verify SbpsSrv logic when starting with a WCDMA carrier and ending with an GSM carrier, prio A");
- 2127
- 2128 // Get WCDMA CM and connect to the RADIO
- 2129 wcdmaClient = stp.defaultDigitalUnit().getWcdmaClient();
- 2130 wcdmaCarrierManager = (WcdmaCarrierManagement) CarrierManagementFactory
- 2131 .getCarrierManagement(wcdmaClient);
- 2132
- 2133 ConnSetupUtils.open(wcdmaClient);
- 2134 ConnSetupUtils.openTpa(wcdmaClient, new UserOptions());
- 2135
- 2136 // Verify that TPA Settable Power is supported.
- 2137 VerifyTxModule.verifyTpaSettablePowerSupportedInAllBranches(wcdmaClient);
- 2138
- 2139 // Create TPA device
- 2140 int currTpaId = WcdmaDuClient.IdOffset.TPA_ID_OFFSET.getValue() + TPA_ID_ADD_FOR_BRANCH_A;
- 2141 int currCarrierId = WcdmaDuClient.IdOffset.TR_ID_OFFSET.getValue() + 1;
- 2142 int currRfPort = RF_PORT_ID_A;
- 2143 int currAxcId = 2;
- 2144 WcdmaCarrier dlWcdmaCarrier = null;
- 2145
- 2146 logger.addLogStep("Modify power on branchA wcdmaCurrierId = " + currCarrierId);
- 2147 ElvisAssert.saveAssertTrue("Modify power on Branch A", setWcdmaTpaModifyPower(AntennaBranchId.A, currTpaId));
- 2148 logger.endLogStep();
- 2149
- 2150 // Setup+activate WCDMA carrier on branch A
- 2151 logger.addLogStep("Setup and activate WCDMA carriers on branch A");
- 2152 dlWcdmaCarrier = createAndSetupWcdmaTxCarrier(currCarrierId, currRfPort, currAxcId);
- 2153 ElvisAssert.saveAssertNotNull("WCDMA carrier couldn't be created", dlWcdmaCarrier);
- 2154 VerifyCarrierControl.verifyActivateAndActivated(dlWcdmaCarrier, wcdmaCarrierManager);
- 2155 logger.endLogStep();
- 2156
- 2157 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2158 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2159 logger.endLogStep();
- 2160
- 2161 // Setup GSM carrier
- 2162 logger.addLogStep("Setup and create GSM carrier");
- 2163 currCarrierId = 2;
- 2164 currAxcId = 1;
- 2165 Carrier dlGsmCarrier = createGsmTxCarrier(currCarrierId, currRfPort, currAxcId);
- 2166 ElvisAssert.saveAssertNotNull("GSM carrier couldn't be created", dlGsmCarrier);
- 2167 ElvisAssert.saveAssertTrue("Setup GSM carrier", msiCarrierManager.setupCarrier(dlGsmCarrier));
- 2168 logger.endLogStep();
- 2169
- 2170 logger.addLogStep("Send subscription request and check that report indication is received");
- 2171 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 2172 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2173 logger.endLogStep();
- 2174
- 2175 logger.addLogStep("Activate GSM carrier");
- 2176 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 2177 logger.endLogStep();
- 2178
- 2179 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2180 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2181 logger.endLogStep();
- 2182
- 2183 // Release WCDMA carrier
- 2184 logger.addLogStep("Releasing WCDMA carrier");
- 2185 ElvisAssert.saveAssertTrue("Releasing WCDMA carrier", releaseWcdmaCarrier(dlWcdmaCarrier, currTpaId));
- 2186 logger.endLogStep();
- 2187
- 2188 // Since a GSM carrier is activated we can check SBPS state
- 2189 logger.addLogStep(SBPS_TEXT_GSM + "A");
- 2190 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 2191 logger.endLogStep();
- 2192
- 2193 if (RADIO_SBPS_CAPABLE_GSM) {
- 2194 logger.addLogStep("Check that report indication is received");
- 2195 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2196 logger.endLogStep();
- 2197 }
- 2198
- 2199 logger.addLogStep("Releasing GSM carrier for branch A");
- 2200 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 2201 logger.endLogStep();
- 2202
- 2203 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2204 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2205 logger.endLogStep();
- 2206
- 2207 logger.addLogStep("Clear baseband configurations");
- 2208 WcdmaBasebandConfigurationUtils.getInstance().clearBasebandData(wcdmaClient, dlWcdmaCarrier);
- 2209 logger.endLogStep();
- 2210 }
- 2211
- 2212 /**
- 2213 * To Verify RU does not restart SBPS after fault is raised from TXL before the minimum timer
- 2214 * expires
- 2215 * Details:
- 2216 * - Change minimum timer value (through db or cmd) 3s
- 2217 * - Setup + activate LTE carrier (branch A), verify SbpsSrv state and carrier configuration
- 2218 * - Raise SBPS failed event using the injection tool after minimum timer expires
- 2219 * - Check SBPS is disabled for the period set (3s)
- 2220 * - SBPS should be restarted after minimum timer expires (SBPS enabled)
- 2221 * - Disable and release the carrier
- 2222 * - Reset timers and limits to default
- 2223 * Migrated Mira TC:
- 2224 * "TX_MOD C2, TC1: LTE, RU does not restart SBPS after fault is raised from TXL before the minimum timer expires, prio 2"
- 2225 */
- 2226 @Test(enabled = true)
- 2227 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC1:L",
- 2228 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL before the minimum timer expires",
- 2229 testReqRef = " ",
- 2230 testPriority = "B")
- 2231 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2232 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 2233 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD },
- 2234 supportsRatAllOf = { RatType.LTE_FDD },
- 2235 numTxBranchesMoreThan = 0,
- 2236 supportSBPS = Bool.TRUE))
- 2237 public void sbpsC2_TC1_L() {
- 2238 setTestCase(
- 2239 "SBPS-C2-TC1:L",
- 2240 "Verify RU does not restart SBPS after fault is raised from TXL before the minimum timer expires, prio B");
- 2241
- 2242 final int highTrafficLevel = 200;
- 2243
- 2244 // Change counter values (recovery time 3s)
- 2245 logger.addLogStep("Step 1: Change the counter values");
- 2246 radioUnit.coli().txm().sbps().modifyDelay(
- 2247 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2248 logger.endLogStep();
- 2249
- 2250 radioUnit.coli().elog().clear();
- 2251
- 2252 // Setup LTE carrier
- 2253 logger.addLogStep("Step 2: Setup and create LTE carrier");
- 2254 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 2255 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 2256 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 2257 logger.endLogStep();
- 2258
- 2259 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 2260 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 2261 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2262 logger.endLogStep();
- 2263
- 2264 logger.addLogStep("Step 4: Activate LTE carrier");
- 2265 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 2266 logger.endLogStep();
- 2267
- 2268 // Check if SBPS is enabled
- 2269 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2270 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2271 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2272 logger.endLogStep();
- 2273
- 2274 // Raise SBPS failed event
- 2275 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 2276 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2277 logger.endLogStep();
- 2278
- 2279 // SBPS is disabled
- 2280 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2281
- 2282 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2283 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2284
- 2285 ElvisAssert.assertEquals(true,
- 2286 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_DISABLED_TXL_TEXT));
- 2287 logger.endLogStep();
- 2288
- 2289 // Wait until recovery time expires
- 2290 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 2291
- 2292 // SBPS is enabled after recovery time expired
- 2293 logger.addLogStep("Step 8: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2294 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2295 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2296 ElvisAssert.assertEquals(true,
- 2297 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_RECOVERED_TEXT));
- 2298 logger.endLogStep();
- 2299
- 2300 // Release the LTE carrier.
- 2301 logger.addLogStep("Step 9: Release the LTE carrier");
- 2302 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 2303 logger.endLogStep();
- 2304
- 2305 sleepSeconds(2);
- 2306
- 2307 // Reset counter values
- 2308 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 2309 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 2310 }
- 2311
- 2312 /**
- 2313 * To Verify RU does not restart SBPS after fault is raised from TXL if the maximum
- 2314 * daily restart count has been reached within daily sliding window
- 2315 * Details:
- 2316 * - Change counter values (2 restarts and 3s)
- 2317 * - Setup + activate LTE carrier (branch A), verify SbpsSrv state and carrier configuration
- 2318 * 1- Raise SBPS failed event using the injection tool after minimum timer expires
- 2319 * 2- Check SBPS is disabled for the period set (3s)
- 2320 * 3- SBPS should be restarted after minimum timer expires (SBPS enabled)
- 2321 * - Do steps 1-3 until maximum daily restart count (2) has been reached within daily sliding
- 2322 * window
- 2323 * - Raise SBPS failed event using the injection tool
- 2324 * - Wait 3s
- 2325 * - SBPS should not be restarted (Disabled)
- 2326 * - Disable and release the carrier
- 2327 * - Reset timers and limits to default
- 2328 * Migrated Mira TC:
- 2329 * "TX_MOD C2, TC2: LTE, Verify RU does not restart SBPS after fault is raised from TXL if the
- 2330 * maximum daily restart count has been reached within daily sliding window, prio 2"
- 2331 */
- 2332 @Test(enabled = true)
- 2333 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC2:L",
- 2334 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL if the maximum daily restart count has been reached within daily sliding window",
- 2335 testReqRef = " ",
- 2336 testPriority = "B")
- 2337 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2338 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 2339 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD },
- 2340 supportsRatAllOf = { RatType.LTE_FDD },
- 2341 numTxBranchesMoreThan = 0,
- 2342 supportSBPS = Bool.TRUE))
- 2343 public void sbpsC2_TC2_L() {
- 2344 setTestCase(
- 2345 "SBPS-C2-TC2:L",
- 2346 "Verify RU does not restart SBPS after fault is raised from TXL if the maximum daily restart count has been reached within daily sliding window, prio B");
- 2347
- 2348 final int highTrafficLevel = 200;
- 2349 final int weeklyRestartCount = 3;
- 2350 final int weeklyWindowSize = DAILY_WINDOW_SIZE * 8; // 128 s
- 2351 final int dailyRestartCount = 2;
- 2352 final int dailyWindowSize = DAILY_WINDOW_SIZE * 4; // 64 s
- 2353
- 2354 // Change counter values (2 restarts and 3s)
- 2355 logger.addLogStep("Step 1: Change the counter values");
- 2356 radioUnit.coli().txm().sbps().modifyDelay(
- 2357 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2358 radioUnit.coli().txm().sbps().modifySlidingWindowLimits(
- 2359 AntennaBranchId.A, weeklyRestartCount, weeklyWindowSize, dailyRestartCount, dailyWindowSize);
- 2360 logger.endLogStep();
- 2361
- 2362 radioUnit.coli().elog().clear();
- 2363
- 2364 // Setup LTE carrier
- 2365 logger.addLogStep("Step 2: Setup and create LTE carrier");
- 2366 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 2367 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 2368 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 2369 logger.endLogStep();
- 2370
- 2371 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 2372 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 2373 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2374 logger.endLogStep();
- 2375
- 2376 logger.addLogStep("Step 4: Activate LTE carrier");
- 2377 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 2378 logger.endLogStep();
- 2379
- 2380 // Check if SBPS is enabled
- 2381 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2382 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2383 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2384 logger.endLogStep();
- 2385
- 2386 for (int dailyCount = 0; dailyCount < dailyRestartCount; ++dailyCount) {
- 2387 radioUnit.coli().elog().clear();
- 2388
- 2389 // Raise SBPS failed event
- 2390 logger.addLogStep("Raise SBPS failed event using the injection tool");
- 2391 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2392 logger.endLogStep();
- 2393
- 2394 sleepMilliseconds(SLEEP_TIME);
- 2395
- 2396 // SBPS is disabled
- 2397 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2398 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2399 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2400 ElvisAssert.assertEquals(true,
- 2401 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_DISABLED_TXL_TEXT));
- 2402 logger.endLogStep();
- 2403
- 2404 // Wait until recovery time expires
- 2405 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 2406
- 2407 // SBPS is enabled after recovery time expired
- 2408 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2409 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2410 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2411 ElvisAssert.assertEquals(true,
- 2412 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_RECOVERED_TEXT));
- 2413 logger.endLogStep();
- 2414 }
- 2415
- 2416 radioUnit.coli().elog().clear();
- 2417
- 2418 // Raise SBPS failed event
- 2419 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 2420 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2421 logger.endLogStep();
- 2422
- 2423 sleepMilliseconds(SLEEP_TIME);
- 2424
- 2425 // SBPS is disabled
- 2426 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2427 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2428 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2429 ElvisAssert.assertEquals(true,
- 2430 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_DISABLED_TXL_TEXT));
- 2431 logger.endLogStep();
- 2432
- 2433 radioUnit.coli().elog().clear();
- 2434
- 2435 // Wait until recovery time expires
- 2436 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 2437
- 2438 // RU does not restart because of daily count = 3 and Sbps is still in temporarily disabled state
- 2439 logger.addLogStep("Step 8:" + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2440 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2441 logger.endLogStep();
- 2442
- 2443 // Release the LTE carrier.
- 2444 logger.addLogStep("Step 9: Release the LTE carrier");
- 2445 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 2446 logger.endLogStep();
- 2447
- 2448 // Reset counter values
- 2449 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 2450 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 2451 }
- 2452
- 2453 /**
- 2454 * To Verify RU does not restart SBPS after fault is raised from TXL if the total
- 2455 * maximum restart count has been reached within weekly sliding window
- 2456 * Details:
- 2457 * - Change counter values (through db or cmd) (1 daily, 2 Weekly, 10s, 20s (daily),
- 2458 * 30s(weekly))
- 2459 * - Setup + activate LTE carrier (branch A), verify SbpsSrv state and carrier configuration
- 2460 * 1- Raise SBPS failed event using the injection tool after minimum timer expires
- 2461 * 2- Check SBPS is disabled for the period set (3s)
- 2462 * 3- SBPS should be restarted after minimum timer expires (SBPS enabled)
- 2463 * - Do steps 1-3 until maximum daily restart count (2) has been reached within daily sliding
- 2464 * window
- 2465 * - Check SBPS is re-enabled
- 2466 * - Raise SBPS failed event using the injection tool
- 2467 * - Wait 1 day passes (21s)
- 2468 * - SBPS should be restarted (Enabled)
- 2469 * - Raise SBPS failed event using the injection tool
- 2470 * - Check SBPS is disabled
- 2471 * - Wait 11s
- 2472 * - SBPS should not be restarted (disabled)
- 2473 * - Wait 1 week passes (31s)
- 2474 * - Check SBPS is re-enabled
- 2475 * - Disable and release the carrier
- 2476 * - Reset timers and limits to default
- 2477 * Migrated Mira TC:
- 2478 * "TX_MOD C2, TC3: LTE, Verify RU does not restart SBPS with TXL sbps fault if the maximum restart count has been reached within weekly sliding window, prio 2"
- 2479 */
- 2480 @Test(enabled = true)
- 2481 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC3:L",
- 2482 testTitle = "Verify RU does not restart SBPS with TXL sbps fault if the maximum restart count has been reached within weekly sliding window",
- 2483 testReqRef = " ",
- 2484 testPriority = "B")
- 2485 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2486 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 2487 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD },
- 2488 supportsRatAllOf = { RatType.LTE_FDD },
- 2489 numTxBranchesMoreThan = 0,
- 2490 supportSBPS = Bool.TRUE))
- 2491 public void sbpsC2_TC3_L() {
- 2492 setTestCase(
- 2493 "SBPS-C2-TC3:L",
- 2494 "Verify RU does not restart SBPS with TXL sbps fault if the maximum restart count has been reached within weekly sliding window, prio B");
- 2495
- 2496 final int highTrafficLevel = 200;
- 2497 final int weeklyRestartCount = 2;
- 2498 final int weeklyWindowSize = 20; // 20 s
- 2499 final int dailyRestartCount = 1;
- 2500 final int dailyWindowSize = 10; // 10 s
- 2501
- 2502 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2503
- 2504 // Change counter values (2 weekly restarts and 20s; 1 daily restart and 10s)
- 2505 logger.addLogStep("Step 1: Change the counter values");
- 2506 radioUnit.coli().txm().sbps().modifyDelay(
- 2507 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2508 radioUnit.coli().txm().sbps().modifySlidingWindowLimits(
- 2509 AntennaBranchId.A, weeklyRestartCount, weeklyWindowSize, dailyRestartCount, dailyWindowSize);
- 2510 logger.endLogStep();
- 2511
- 2512 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2513
- 2514 radioUnit.coli().elog().clear();
- 2515
- 2516 // Setup LTE carrier
- 2517 logger.addLogStep("Step 2: Setup and create LTE carrier");
- 2518 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 2519 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 2520 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 2521 logger.endLogStep();
- 2522
- 2523 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 2524 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 2525 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2526 logger.endLogStep();
- 2527
- 2528 logger.addLogStep("Step 4: Activate LTE carrier");
- 2529 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 2530 logger.endLogStep();
- 2531
- 2532 // Check if SBPS is enabled
- 2533 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2534 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2535 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2536 logger.endLogStep();
- 2537
- 2538 // Verify daily recovery
- 2539 for (int dailyCount = 0; dailyCount < dailyRestartCount; ++dailyCount) {
- 2540
- 2541 // Raise SBPS failed event
- 2542 logger.addLogStep("Raise SBPS failed event using the injection tool");
- 2543 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2544 logger.endLogStep();
- 2545
- 2546 sleepMilliseconds(SLEEP_TIME);
- 2547
- 2548 // SBPS is disabled
- 2549 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2550 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2551 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2552 logger.endLogStep();
- 2553
- 2554 // Wait until recovery time expires
- 2555 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 2556
- 2557 // SBPS is enabled after recovery time expired
- 2558 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2559 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2560 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2561 logger.endLogStep();
- 2562 }
- 2563
- 2564 // Raise SBPS failed event
- 2565 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 2566 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2567 logger.endLogStep();
- 2568
- 2569 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2570 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2571 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2572 logger.endLogStep();
- 2573
- 2574 sleepSeconds(dailyWindowSize + 2);
- 2575
- 2576 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2577
- 2578 // SBPS is enabled, reached the maximum weekly restart count
- 2579 logger.addLogStep("Step 7: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2580 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2581 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2582 logger.endLogStep();
- 2583
- 2584 // Raise SBPS failed event
- 2585 logger.addLogStep("Step 8: Raise SBPS failed event using the injection tool");
- 2586 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2587 logger.endLogStep();
- 2588
- 2589 sleepMilliseconds(SLEEP_TIME);
- 2590
- 2591 // SBPS is disabled, exceeds the maximum weekly restart count
- 2592 logger.addLogStep("Step 9: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2593 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2594 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2595 logger.endLogStep();
- 2596
- 2597 // Verify additional weekly recovery sleep for an additional weekly size
- 2598 sleepSeconds(dailyWindowSize + 2);
- 2599
- 2600 // SBPS is enabled, additional weekly recovery
- 2601 logger.addLogStep("Step 10: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2602 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2603 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2604 logger.endLogStep();
- 2605
- 2606 // Release the LTE carrier.
- 2607 logger.addLogStep("Step 11: Release the LTE carrier");
- 2608 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 2609 logger.endLogStep();
- 2610
- 2611 sleepSeconds(2);
- 2612
- 2613 radioUnit.coli().elog().clear();
- 2614
- 2615 // Reset counter values
- 2616 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 2617 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 2618 }
- 2619
- 2620 /**
- 2621 * To verify Sbps restart logic for multiple LTE-TDD carriers
- 2622 * Details:
- 2623 * -Setup+activate 1st LTE-TDD carrier(branch A), verify SbpsSrv state: enabled(branch A)
- 2624 * -Setup+activate 2nd LTE-TDD carrier(branch B), verify SbpsSrv state: enabled(branch B)
- 2625 * -Raise SBPS failed event using the injection tool for both carriers
- 2626 * -Check SBPS is temporarily disabled for the period set (10s) before minimum timer expires
- 2627 * -SBPS should be restarted after minimum timer expires (SBPS enabled)
- 2628 * -Release 1st LTE-TDD carrier(branch A), verify SbpsSrv state: disabled(branch A)
- 2629 * -Release 2nd LTE-TDD carrier(branch B), verify SbpsSrv state: disabled(branch B)
- 2630 * Migrated Mira TC:
- 2631 * "TX_MOD C2, TC4: TDD, Verify Sbps restart logic for multiple LTE-TDD carriers, prio 1"
- 2632 */
- 2633 @Test(enabled = true)
- 2634 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC4:T",
- 2635 testTitle = "Verify Sbps restart logic for multiple LTE-TDD carriers",
- 2636 testReqRef = " ",
- 2637 testPriority = "A")
- 2638 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2639 @Exclude({ @If(platformIs = RadioPlatform.PL4), @If(analogBeamFormingSupported = Bool.TRUE) })
- 2640 @Run(@If(ratTypeAllOf = { RatType.LTE_TDD },
- 2641 supportsRatAllOf = { RatType.LTE_TDD },
- 2642 numTxBranchesMoreThan = 1,
- 2643 supportSBPS = Bool.TRUE))
- 2644 public void sbpsC2_TC4_T() {
- 2645 setTestCase(
- 2646 "SBPS-C2-TC4:T",
- 2647 "Verify Sbps restart logic for multiple LTE-TDD carriers, prio 1");
- 2648
- 2649 ArrayList<Carrier> carriers = new ArrayList<Carrier>();
- 2650 final int highTrafficLevel = 200;
- 2651 int carrierId = 1;
- 2652
- 2653 List<AntennaBranchId> branchList = new ArrayList<AntennaBranchId>();
- 2654 branchList.add(AntennaBranchId.A);
- 2655 branchList.add(AntennaBranchId.B);
- 2656
- 2657 radioUnit.coli().elog().clear();
- 2658
- 2659 for (AntennaBranchId currBranch : branchList) {
- 2660
- 2661 logger.addLogStep("Step 1: Adjust the counter values");
- 2662 radioUnit.coli().txm().sbps().modifyDelay(
- 2663 currBranch, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2664 logger.endLogStep();
- 2665
- 2666 /*
- 2667 * Setup LTE carrier.
- 2668 * carrierId = 1, port = A, axcId = 1
- 2669 * carrierId = 2, port = B, axcId = 1
- 2670 */
- 2671 logger.addLogStep("Step 2: Setup LTE carrier on branch " + currBranch);
- 2672 dlLteCarrier = createLteTxCarrier(carrierId, currBranch.ordinal(), 1, RatType.LTE_TDD);
- 2673 carriers.add(dlLteCarrier);
- 2674 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 2675 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 2676 logger.endLogStep();
- 2677
- 2678 logger.addLogStep("Step 3: Send subscription request and check that report indication is received");
- 2679 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 2680 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2681 logger.endLogStep();
- 2682
- 2683 logger.addLogStep("Step 4: Activate LTE carrier on branch " + currBranch);
- 2684 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 2685 logger.endLogStep();
- 2686
- 2687 // Check if SBPS is enabled
- 2688 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + currBranch);
- 2689 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 2690 logger.endLogStep();
- 2691
- 2692 logger.addLogStep("Step 6: Verify that report indication is received");
- 2693 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2694 logger.endLogStep();
- 2695
- 2696 carrierId++;
- 2697 }
- 2698
- 2699 for (AntennaBranchId currBranch : branchList) {
- 2700
- 2701 // Raise SBPS failed event
- 2702 logger.addLogStep("Step 7: Raise SBPS failed event using the injection tool");
- 2703 radioUnit.coli().txm().sbps().injectFault(currBranch, SBPSEvent.TXL_SBPS_FAILED);
- 2704 logger.endLogStep();
- 2705
- 2706 sleepMilliseconds(SLEEP_TIME);
- 2707
- 2708 // SBPS is disabled
- 2709 logger.addLogStep("Step 8:" + SBPS_DISABLED_TEXT + currBranch);
- 2710 VerifySbps.verifySpbsState(currBranch, SBPSState.TEMPORARILY_DISABLED);
- 2711 logger.endLogStep();
- 2712
- 2713 logger.addLogStep("Step 9: Verify that report indication is received");
- 2714 helper.verifyReportIndication(carriers.get(currBranch.ordinal()), msiClient, helper.SBPS_STATUS_DISABLED);
- 2715 logger.endLogStep();
- 2716
- 2717 // Wait until recovery time expires
- 2718 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 2719
- 2720 logger.addLogStep("Step 10: " + SBPS_ENABLED_TEXT + currBranch);
- 2721 VerifySbps.verifySpbsState(currBranch, SBPSState.ENABLED);
- 2722 logger.endLogStep();
- 2723
- 2724 logger.addLogStep("Step 11: Verify that report indication is received");
- 2725 helper.verifyReportIndication(carriers.get(currBranch.ordinal()), msiClient, helper.SBPS_STATUS_ENABLED);
- 2726 logger.endLogStep();
- 2727 }
- 2728
- 2729 for (AntennaBranchId currBranch : branchList) {
- 2730
- 2731 logger.addLogStep("Step 12: Release the LTE carrier");
- 2732 msiCarrierManager.releaseCarrier(carriers.get(currBranch.ordinal()));
- 2733 logger.endLogStep();
- 2734
- 2735 logger.addLogStep("Step 13: " + SBPS_DISABLED_TEXT + currBranch);
- 2736 VerifySbps.verifySpbsState(currBranch, SBPSState.DISABLED);
- 2737 logger.endLogStep();
- 2738
- 2739 // Reset counter values
- 2740 radioUnit.coli().txm().sbps().resetLimits(currBranch);
- 2741 radioUnit.coli().txm().sbps().resetDelay(currBranch);
- 2742 radioUnit.coli().txm().sbps().dumpDelay(currBranch);
- 2743 }
- 2744
- 2745 carriers.clear();
- 2746 branchList.clear();
- 2747 }
- 2748
- 2749 /**
- 2750 * To Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is
- 2751 * high and restarts if traffic is low
- 2752 * Details:
- 2753 * - Change counter values (set to high traffic)
- 2754 * - Setup + activate LTE carrier (branch A), verify SbpsSrv state and carrier
- 2755 * configuration
- 2756 * - Raise SBPS failed event using the injection tool after minimum timer expires
- 2757 * - Check SBPS is not enabled for the recovery period
- 2758 * - SBPS should not be restarted after minimum timer expires (SBPS disabled)
- 2759 * - Change counter values (set to high traffic)
- 2760 * - SBPS should be restarted after minimum timer expires (SBPS enabled)
- 2761 * - Disable and release the carrier
- 2762 * - Reset timers and limits to default
- 2763 * Migrated Mira TC:
- 2764 * "TX_MOD C2, TC4: LTE, Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is high and restarts if traffic is low, prio 2"
- 2765 */
- 2766 @Test(enabled = true)
- 2767 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC4:L",
- 2768 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is high and restarts if traffic is low",
- 2769 testReqRef = " ",
- 2770 testPriority = "B")
- 2771 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2772 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 2773 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD },
- 2774 supportsRatAllOf = { RatType.LTE_FDD },
- 2775 numTxBranchesMoreThan = 0,
- 2776 supportSBPS = Bool.TRUE))
- 2777 public void sbpsC2_TC4_L() {
- 2778 setTestCase(
- 2779 "SBPS-C2-TC4:L",
- 2780 "Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is high and restarts if traffic is low, prio B");
- 2781
- 2782 int highTrafficLevel = 0;
- 2783
- 2784 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2785
- 2786 // Change counter values (always high traffic case)
- 2787 logger.addLogStep("Step 1: Change the counter values to high traffic");
- 2788 radioUnit.coli().txm().sbps().modifyDelay(
- 2789 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2790 logger.endLogStep();
- 2791
- 2792 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2793
- 2794 // Setup LTE carrier
- 2795 logger.addLogStep("Step 2: Setup and create LTE carrier");
- 2796 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 2797 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 2798 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 2799 logger.endLogStep();
- 2800
- 2801 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 2802 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 2803 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2804 logger.endLogStep();
- 2805
- 2806 logger.addLogStep("Step 4: Activate LTE carrier");
- 2807 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 2808 logger.endLogStep();
- 2809
- 2810 // Check if SBPS is enabled
- 2811 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2812 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2813 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2814
- 2815 logger.endLogStep();
- 2816
- 2817 // Raise SBPS failed event
- 2818 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 2819 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 2820 logger.endLogStep();
- 2821
- 2822 sleepMilliseconds(SLEEP_TIME);
- 2823
- 2824 // SBPS is disabled
- 2825 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2826 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2827 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2828
- 2829 logger.endLogStep();
- 2830
- 2831 // Wait until recovery time expires
- 2832 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 2833
- 2834 // SBPS should not be restarted after minimum timer expires (SBPS is still disabled)
- 2835 logger.addLogStep("Step 8: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2836 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 2837 logger.endLogStep();
- 2838
- 2839 // Change counter values (always low traffic case)
- 2840 logger.addLogStep("Step 9: Change the counter values to low traffic");
- 2841 highTrafficLevel = 200;
- 2842 radioUnit.coli().txm().sbps().modifyDelay(
- 2843 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2844 logger.endLogStep();
- 2845
- 2846 sleepMilliseconds(HIGH_TRAFFIC_RESTART_DELAY + 500); // ms
- 2847
- 2848 // SBPS is enabled after recovery time expired
- 2849 logger.addLogStep("Step 10: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2850 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2851 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2852 logger.endLogStep();
- 2853
- 2854 // Release the LTE carrier.
- 2855 logger.addLogStep("Step 11: Release the LTE carrier");
- 2856 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 2857 logger.endLogStep();
- 2858
- 2859 sleepSeconds(2);
- 2860
- 2861 radioUnit.coli().elog().clear();
- 2862
- 2863 // Reset counter values
- 2864 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 2865 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 2866 }
- 2867
- 2868 /**
- 2869 * To Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL
- 2870 * Details:
- 2871 * - Change counter values
- 2872 * - Setup + activate LTE carrier (branch A), verify SbpsSrv state and carrier configuration
- 2873 * - Raise SBPS failed event using the injection tool (sbps-not-supported)
- 2874 * - Check SBPS is not enabled for the recovery period
- 2875 * - SBPS should not be restarted after minimum timer expires (SBPS disabled)
- 2876 * - Disable and release the carrier
- 2877 * - Reset timers and limits to default
- 2878 * Migrated Mira TC:
- 2879 * "TX_MOD C2, TC5: LTE, Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL, prio 2"
- 2880 */
- 2881 @Test(enabled = true)
- 2882 @JcatMethod(testTag = "TX_MOD-C2,SBPS-TC5:L",
- 2883 testTitle = "Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL",
- 2884 testReqRef = " ",
- 2885 testPriority = "B")
- 2886 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 2887 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 2888 @Run(@If(ratTypeAllOf = { RatType.LTE_FDD },
- 2889 supportsRatAllOf = { RatType.LTE_FDD },
- 2890 numTxBranchesMoreThan = 0,
- 2891 supportSBPS = Bool.TRUE))
- 2892 public void sbpsC2_TC5_L() {
- 2893 setTestCase(
- 2894 "SBPS-C2-TC5:L",
- 2895 "Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL, prio B");
- 2896
- 2897 final int highTrafficLevel = 200;
- 2898
- 2899 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2900
- 2901 // Change counter values (recovery time 3s)
- 2902 logger.addLogStep("Step 1: Change the counter values to high traffic");
- 2903 radioUnit.coli().txm().sbps().modifyDelay(
- 2904 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 2905 logger.endLogStep();
- 2906
- 2907 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 2908
- 2909 // Setup LTE carrier
- 2910 logger.addLogStep("Step 2: Setup and create LTE carrier");
- 2911 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 2912 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 2913 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 2914 logger.endLogStep();
- 2915
- 2916 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 2917 helper.sendReportSubscriptionRequest(dlLteCarrier, msiClient);
- 2918 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2919 logger.endLogStep();
- 2920
- 2921 logger.addLogStep("Step 4: Activate LTE carrier");
- 2922 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 2923 logger.endLogStep();
- 2924
- 2925 radioUnit.coli().elog().clear();
- 2926
- 2927 // SBPS is enabled
- 2928 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 2929 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 2930 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 2931 logger.endLogStep();
- 2932
- 2933 // Raise SBPS failed event
- 2934 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 2935 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_NOT_SUPPORTED);
- 2936 logger.endLogStep();
- 2937
- 2938 sleepMilliseconds(SLEEP_TIME);
- 2939
- 2940 // SBPS is disabled
- 2941 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2942 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2943 helper.verifyReportIndication(dlLteCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 2944
- 2945 ElvisAssert.assertEquals(true,
- 2946 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_PERMANENTLY_DISABLED_TXL_TEXT));
- 2947 logger.endLogStep();
- 2948
- 2949 sleepSeconds((DAILY_RECOVERY_SLEEP_TIME));
- 2950
- 2951 // SBPS is always in disabled state and RU is not restarted
- 2952 logger.addLogStep("Step 8: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 2953 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 2954 ElvisAssert.assertEquals(true,
- 2955 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_PERMANENTLY_DISABLED_TXL_TEXT));
- 2956 logger.endLogStep();
- 2957
- 2958 // Release the LTE carrier.
- 2959 logger.addLogStep("Step 9: Release the LTE carrier");
- 2960 msiCarrierManager.releaseCarrier(dlLteCarrier);
- 2961 logger.endLogStep();
- 2962
- 2963 sleepSeconds(2);
- 2964
- 2965 radioUnit.coli().elog().clear();
- 2966
- 2967 // Reset counter values
- 2968 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 2969 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 2970
- 2971 /*
- 2972 * Restart the radio:
- 2973 * After the coli command 'txm brc a sbps-not-supported' (fault injection), parameter
- 2974 * isSbpsCapable remains in the state False. It is not possible to return to
- 2975 * the initial state (isSbpsCapable=True) with a coli command.
- 2976 * Therefore, it is necessary to restart the radio.
- 2977 */
- 2978 ColiCommandsUtils.restartToDefaultSlotAndWaitUntilRuUp(radioUnit.coli());
- 2979 }
- 2980
- 2981 /**
- 2982 * To Verify RU does not restart SBPS after fault is raised from TXL before the minimum timer
- 2983 * expires for active GSM carrier
- 2984 * Details:
- 2985 * - Change minimum timer value (through db or cmd) 10s
- 2986 * - Setup + activate GSM carrier (branch A), verify SbpsSrv state and carrier configuration
- 2987 * - Raise SBPS failed event using the injection tool after minimum timer expires
- 2988 * - Check SBPS is disabled for the period set (10s)
- 2989 * - SBPS should be restarted after minimum timer expires (SBPS enabled)
- 2990 * - Disable and release the carrier
- 2991 * - Reset timers and limits to default
- 2992 * "TX_MOD C4, TC1: GSM, RU does not restart SBPS after fault is raised from TXL before the minimum timer expires, prio 2"
- 2993 */
- 2994 @Test(enabled = true)
- 2995 @JcatMethod(testTag = "TX_MOD-C4,SBPS-TC1:G",
- 2996 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL before the minimum timer expires",
- 2997 testReqRef = " ",
- 2998 testPriority = "B")
- 2999 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 3000 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 3001 @Run(@If(ratTypeAllOf = { RatType.GSM },
- 3002 supportsRatAllOf = { RatType.GSM },
- 3003 numTxBranchesMoreThan = 0,
- 3004 supportSBPS = Bool.TRUE,
- 3005 sbpsSupportedRatGsm = Bool.TRUE,
- 3006 supportMR299 = Bool.TRUE))
- 3007 public void sbpsC4_TC1_G() {
- 3008 setTestCase(
- 3009 "SBPS-C4-TC1:G",
- 3010 "Verify RU does not restart SBPS after fault is raised from TXL before the minimum timer expires for GSM carrier, prio B");
- 3011
- 3012 final int highTrafficLevel = 200;
- 3013
- 3014 // Change counter values (recovery time 3s)
- 3015 logger.addLogStep("Change the counter values");
- 3016 radioUnit.coli().txm().sbps().modifyDelay(
- 3017 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 3018 logger.endLogStep();
- 3019
- 3020 radioUnit.coli().elog().clear();
- 3021
- 3022 // Create and setup GSM carrier on branch A
- 3023 logger.addLogStep("Step 1: Setup GSM carrier on branch " + AntennaBranchId.A);
- 3024 // carrierId = 0, port = A, axcId = 1
- 3025 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 3026 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3027 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 3028 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 3029 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 3030 logger.endLogStep();
- 3031
- 3032 logger.addLogStep("Step 2: Send report subscription request and check that report indications are received");
- 3033 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 3034 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3035 logger.endLogStep();
- 3036
- 3037 logger.addLogStep("Step 3: Activate GSM carrier");
- 3038 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 3039 logger.endLogStep();
- 3040
- 3041 // Check if SBPS is enabled
- 3042 logger.addLogStep("Step 4: Verify sbps state");
- 3043 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 3044 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3045 logger.endLogStep();
- 3046
- 3047 // Raise SBPS failed event
- 3048 logger.addLogStep("Step 5: Raise SBPS failed event using the injection tool");
- 3049 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3050 logger.endLogStep();
- 3051
- 3052 sleepMilliseconds(SLEEP_TIME);
- 3053
- 3054 // SBPS is disabled
- 3055 logger.addLogStep("Step 6:" + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3056 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3057 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3058 ElvisAssert.assertEquals(true,
- 3059 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_DISABLED_TXL_TEXT));
- 3060 logger.endLogStep();
- 3061
- 3062 // Wait until recovery time expires
- 3063 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 3064
- 3065 // SBPS is enabled after recovery time expired
- 3066 logger.addLogStep("Step 7: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3067 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3068 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3069 ElvisAssert.assertEquals(true, radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_RECOVERED_TEXT));
- 3070 logger.endLogStep();
- 3071
- 3072 // Release the GSM carrier.
- 3073 logger.addLogStep("Step 8: Release the GSM carrier");
- 3074 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 3075 logger.endLogStep();
- 3076 sleepSeconds(5);
- 3077
- 3078 // Reset counter values
- 3079 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 3080 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 3081 }
- 3082
- 3083 /**
- 3084 * To Verify RU does not restart SBPS after fault is raised from TXL if the maximum
- 3085 * daily restart count has been reached within daily sliding window
- 3086 * Details:
- 3087 * - Change counter values (2 restarts and 3s)
- 3088 * - Setup + activate GSM carrier (branch A), verify SbpsSrv state and carrier configuration
- 3089 * 1- Raise SBPS failed event using the injection tool after minimum timer expires
- 3090 * 2- Check SBPS is disabled for the period set (10s)
- 3091 * 3- SBPS should be restarted after minimum timer expires (SBPS enabled)
- 3092 * - Do steps 1-3 until maximum daily restart count (2) has been reached within daily sliding
- 3093 * window
- 3094 * - Raise SBPS failed event using the injection tool
- 3095 * - Wait 11s
- 3096 * - SBPS should not be restarted (Disabled)
- 3097 * - Disable and release the carrier
- 3098 * - Reset timers and limits to default
- 3099 * "TX_MOD C4, TC2: GSM, Verify RU does not restart SBPS after fault is raised from TXL if the
- 3100 * maximum daily restart count has been reached within daily sliding window, prio 2"
- 3101 */
- 3102 @Test(enabled = true)
- 3103 @JcatMethod(testTag = "TX_MOD-C4,SBPS-TC2:G",
- 3104 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL if the maximum daily restart count has been reached within daily sliding window",
- 3105 testReqRef = " ",
- 3106 testPriority = "B")
- 3107 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 3108 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 3109 @Run(@If(ratTypeAllOf = { RatType.GSM },
- 3110 supportsRatAllOf = { RatType.GSM },
- 3111 numTxBranchesMoreThan = 0,
- 3112 supportSBPS = Bool.TRUE,
- 3113 sbpsSupportedRatGsm = Bool.TRUE,
- 3114 supportMR299 = Bool.TRUE))
- 3115 public void sbpsC4_TC2_G() {
- 3116 setTestCase(
- 3117 "SBPS-C4-TC2:G",
- 3118 "Verify RU does not restart SBPS after fault is raised from TXL if the maximum daily restart count has been reached within daily sliding window for GSM carrier, prio B");
- 3119
- 3120 final int highTrafficLevel = 200;
- 3121 final int weeklyRestartCount = 3;
- 3122 final int weeklyWindowSize = DAILY_WINDOW_SIZE * 8; // 128 s
- 3123 final int dailyRestartCount = 2;
- 3124 final int dailyWindowSize = DAILY_WINDOW_SIZE * 4; // 64 s
- 3125
- 3126 // Change counter values (2 restarts and 3s)
- 3127 logger.addLogStep("Step 1: Change the counter values");
- 3128 radioUnit.coli().txm().sbps().modifyDelay(
- 3129 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 3130 radioUnit.coli().txm().sbps().modifySlidingWindowLimits(
- 3131 AntennaBranchId.A, weeklyRestartCount, weeklyWindowSize, dailyRestartCount, dailyWindowSize);
- 3132 logger.endLogStep();
- 3133
- 3134 radioUnit.coli().elog().clear();
- 3135
- 3136 // Create and setup GSM carrier on branch A
- 3137 logger.addLogStep("Step 2: Setup GSM carrier on branch " + AntennaBranchId.A);
- 3138 // carrierId = 0, port = A, axcId = 1
- 3139 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 3140 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3141 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 3142 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 3143 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 3144 logger.endLogStep();
- 3145
- 3146 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 3147 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 3148 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3149 logger.endLogStep();
- 3150
- 3151 logger.addLogStep("Step 4: Activate GSM carrier");
- 3152 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 3153 logger.endLogStep();
- 3154
- 3155 // Check if SBPS is enabled
- 3156 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3157 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3158 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3159 logger.endLogStep();
- 3160
- 3161 for (int dailyCount = 0; dailyCount < dailyRestartCount; ++dailyCount) {
- 3162 radioUnit.coli().elog().clear();
- 3163
- 3164 // Raise SBPS failed event
- 3165 logger.addLogStep("Raise SBPS failed event using the injection tool");
- 3166 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3167 logger.endLogStep();
- 3168
- 3169 sleepMilliseconds(SLEEP_TIME);
- 3170
- 3171 // SBPS is disabled, temporarily
- 3172 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3173 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3174 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3175 ElvisAssert.assertEquals(true,
- 3176 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_DISABLED_TXL_TEXT));
- 3177 logger.endLogStep();
- 3178
- 3179 // Wait until recovery time expires
- 3180 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 3181
- 3182 // SBPS is enabled after recovery time expired and if sbps was supported before
- 3183 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3184 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3185 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3186 ElvisAssert.assertEquals(true,
- 3187 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_RECOVERED_TEXT));
- 3188 logger.endLogStep();
- 3189 }
- 3190
- 3191 radioUnit.coli().elog().clear();
- 3192
- 3193 // Raise SBPS failed event
- 3194 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 3195 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3196 logger.endLogStep();
- 3197
- 3198 sleepMilliseconds(SLEEP_TIME);
- 3199
- 3200 // SBPS is disabled
- 3201 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3202 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3203 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3204 ElvisAssert.assertEquals(true,
- 3205 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_DISABLED_TXL_TEXT));
- 3206 logger.endLogStep();
- 3207
- 3208 radioUnit.coli().elog().clear();
- 3209
- 3210 // Wait until recovery time expires
- 3211 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 3212
- 3213 // RU does not restart because of daily count = 3 and Sbps is still in temporarily disabled state
- 3214 logger.addLogStep("Step 8: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3215 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3216 logger.endLogStep();
- 3217
- 3218 // Release the GSM carrier.
- 3219 logger.addLogStep("Step 9: Release the GSM carrier");
- 3220 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 3221 logger.endLogStep();
- 3222
- 3223 // Reset counter values
- 3224 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 3225 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 3226 }
- 3227
- 3228 /**
- 3229 * To Verify RU does not restart SBPS after fault is raised from TXL if the total
- 3230 * maximum restart count has been reached within weekly sliding window
- 3231 * Details:
- 3232 * - Change counter values (through db or cmd) (1 daily, 2 Weekly, 10s, 20s (daily),
- 3233 * 30s(weekly))
- 3234 * - Setup + activate GSM carrier (branch A), verify SbpsSrv state and carrier configuration
- 3235 * 1- Raise SBPS failed event using the injection tool after minimum timer expires
- 3236 * 2- Check SBPS is disabled for the period set (3s)
- 3237 * 3- SBPS should be restarted after minimum timer expires (SBPS enabled)
- 3238 * - Do steps 1-3 until maximum daily restart count (2) has been reached within daily sliding
- 3239 * window
- 3240 * - Check SBPS is re-enabled
- 3241 * - Raise SBPS failed event using the injection tool
- 3242 * - Wait 1 day passes (21s)
- 3243 * - SBPS should be restarted (Enabled)
- 3244 * - Raise SBPS failed event using the injection tool
- 3245 * - Check SBPS is disabled
- 3246 * - Wait 11s
- 3247 * - SBPS should not be restarted (disabled)
- 3248 * - Wait 1 week passes (31s)
- 3249 * - Check SBPS is re-enabled
- 3250 * - Disable and release the carrier
- 3251 * - Reset timers and limits to default
- 3252 * "TX_MOD C4, TC3: GSM, Verify RU does not restart SBPS with TXL sbps fault if the maximum restart count has been reached within weekly sliding window, prio 2"
- 3253 */
- 3254 @Test(enabled = true)
- 3255 @JcatMethod(testTag = "TX_MOD-C4,SBPS-TC3:G",
- 3256 testTitle = "Verify RU does not restart SBPS with TXL sbps fault if the maximum restart count has been reached within weekly sliding window",
- 3257 testReqRef = " ",
- 3258 testPriority = "B")
- 3259 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 3260 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 3261 @Run(@If(ratTypeAllOf = { RatType.GSM },
- 3262 supportsRatAllOf = { RatType.GSM },
- 3263 numTxBranchesMoreThan = 0,
- 3264 supportSBPS = Bool.TRUE,
- 3265 sbpsSupportedRatGsm = Bool.TRUE,
- 3266 supportMR299 = Bool.TRUE))
- 3267 public void sbpsC4_TC3_G() {
- 3268 setTestCase(
- 3269 "SBPS-C4-TC3:G",
- 3270 "Verify RU does not restart SBPS with TXL sbps fault if the maximum restart count has been reached within weekly sliding window, prio B");
- 3271
- 3272 final int highTrafficLevel = 200;
- 3273 final int weeklyRestartCount = 2;
- 3274 final int weeklyWindowSize = 20; // 20 s
- 3275 final int dailyRestartCount = 1;
- 3276 final int dailyWindowSize = 10; // 10 s
- 3277
- 3278 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3279
- 3280 // Change counter values (2 weekly restarts and 20s; 1 daily restart and 10s)
- 3281 logger.addLogStep("Step 1: Change the counter values");
- 3282 radioUnit.coli().txm().sbps().modifyDelay(
- 3283 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 3284 radioUnit.coli().txm().sbps().modifySlidingWindowLimits(
- 3285 AntennaBranchId.A, weeklyRestartCount, weeklyWindowSize, dailyRestartCount, dailyWindowSize);
- 3286 logger.endLogStep();
- 3287
- 3288 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3289
- 3290 radioUnit.coli().elog().clear();
- 3291
- 3292 // Create and setup GSM carrier on branch A
- 3293 logger.addLogStep("Step 2: Setup GSM carrier on branch " + AntennaBranchId.A);
- 3294 // carrierId = 0, port = A, axcId = 1
- 3295 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 3296 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3297 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 3298 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 3299 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 3300 logger.endLogStep();
- 3301
- 3302 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 3303 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 3304 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3305 logger.endLogStep();
- 3306
- 3307 logger.addLogStep("Step 4: Activate GSM carrier");
- 3308 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 3309 logger.endLogStep();
- 3310
- 3311 // Check if SBPS is enabled
- 3312 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3313 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 3314 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3315 logger.endLogStep();
- 3316
- 3317 // Verify daily recovery
- 3318 for (int dailyCount = 0; dailyCount < dailyRestartCount; ++dailyCount) {
- 3319
- 3320 // Raise SBPS failed event
- 3321 logger.addLogStep("Raise SBPS failed event using the injection tool");
- 3322 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3323 logger.endLogStep();
- 3324
- 3325 sleepMilliseconds(SLEEP_TIME);
- 3326
- 3327 // SBPS is disabled
- 3328 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3329 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3330 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3331 logger.endLogStep();
- 3332
- 3333 // Wait until recovery time expires
- 3334 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 3335
- 3336 // SBPS is enabled after recovery time expired
- 3337 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3338 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3339 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3340 logger.endLogStep();
- 3341 }
- 3342
- 3343 // Raise SBPS failed event
- 3344 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 3345 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3346 logger.endLogStep();
- 3347
- 3348 logger.addLogStep(SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3349 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3350 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3351 logger.endLogStep();
- 3352
- 3353 sleepSeconds(dailyWindowSize + 2);
- 3354
- 3355 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3356
- 3357 // SBPS is enabled, reached the maximum weekly restart count
- 3358 logger.addLogStep("Step 7: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3359 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3360 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3361 logger.endLogStep();
- 3362
- 3363 // Raise SBPS failed event
- 3364 logger.addLogStep("Step 8: Raise SBPS failed event using the injection tool");
- 3365 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3366 logger.endLogStep();
- 3367
- 3368 sleepMilliseconds(SLEEP_TIME);
- 3369
- 3370 // SBPS is disabled, exceeds the maximum weekly restart count
- 3371 logger.addLogStep("Step 9: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3372 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3373 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3374 logger.endLogStep();
- 3375
- 3376 // Verify additional weekly recovery sleep for an additional weekly size
- 3377 sleepSeconds(dailyWindowSize + 2);
- 3378
- 3379 // SBPS is enabled if gsm sbps is supported, additional weekly recovery
- 3380 logger.addLogStep("Step 10: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3381 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPS_STATE_GSM);
- 3382 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3383 logger.endLogStep();
- 3384
- 3385 // Release the GSM carrier.
- 3386 logger.addLogStep("Step 11: Release the GSM carrier");
- 3387 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 3388 logger.endLogStep();
- 3389 sleepSeconds(5);
- 3390
- 3391 radioUnit.coli().elog().clear();
- 3392
- 3393 // Reset counter values
- 3394 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 3395 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 3396 }
- 3397
- 3398 /**
- 3399 * To Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is
- 3400 * high and restarts if traffic is low
- 3401 * Details:
- 3402 * - Change counter values (set to high traffic)
- 3403 * - Setup + activate GSM carrier (branch A), verify SbpsSrv state and carrier configuration
- 3404 * - Raise SBPS failed event using the injection tool after minimum timer expires
- 3405 * - Check SBPS is not enabled for the recovery period
- 3406 * - SBPS should not be restarted after minimum timer expires (SBPS disabled)
- 3407 * - Change counter values (set to high traffic)
- 3408 * - SBPS should be restarted after minimum timer expires (SBPS enabled)
- 3409 * - Disable and release the carrier
- 3410 * - Reset timers and limits to default
- 3411 * "TX_MOD C4, TC4: GSM, Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is high and restarts if traffic is low, prio 2"
- 3412 */
- 3413 @Test(enabled = true)
- 3414 @JcatMethod(testTag = "TX_MOD-C4,SBPS-TC4:G",
- 3415 testTitle = "Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is high and restarts if traffic is low",
- 3416 testReqRef = " ",
- 3417 testPriority = "B")
- 3418 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 3419 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 3420 @Run(@If(ratTypeAllOf = { RatType.GSM },
- 3421 supportsRatAllOf = { RatType.GSM },
- 3422 numTxBranchesMoreThan = 0,
- 3423 supportSBPS = Bool.TRUE,
- 3424 sbpsSupportedRatGsm = Bool.TRUE,
- 3425 supportMR299 = Bool.TRUE))
- 3426 public void sbpsC4_TC4_G() {
- 3427 setTestCase(
- 3428 "SBPS-C4-TC4:G",
- 3429 "Verify RU does not restart SBPS after fault is raised from TXL if the traffic level is high and restarts if traffic is low, prio B");
- 3430
- 3431 int highTrafficLevel = 0;
- 3432
- 3433 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3434
- 3435 // Change counter values (always high traffic case)
- 3436 logger.addLogStep("Step 1: Change the counter values to high traffic");
- 3437 radioUnit.coli().txm().sbps().modifyDelay(
- 3438 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 3439 logger.endLogStep();
- 3440
- 3441 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3442
- 3443 // Create and setup GSM carrier on branch A
- 3444 logger.addLogStep("Step 2: Setup GSM carrier on branch " + AntennaBranchId.A);
- 3445 // carrierId = 0, port = A, axcId = 1
- 3446 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 3447 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3448 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 3449 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 3450 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 3451 logger.endLogStep();
- 3452
- 3453 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 3454 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 3455 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3456 logger.endLogStep();
- 3457
- 3458 logger.addLogStep("Step 4: Activate GSM carrier");
- 3459 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 3460 logger.endLogStep();
- 3461
- 3462 // Check if SBPS is enabled
- 3463 logger.addLogStep("Step 5: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3464 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3465 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3466 logger.endLogStep();
- 3467
- 3468 // Raise SBPS failed event
- 3469 logger.addLogStep("Step 6: Raise SBPS failed event using the injection tool");
- 3470 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_FAILED);
- 3471 logger.endLogStep();
- 3472
- 3473 sleepMilliseconds(SLEEP_TIME);
- 3474
- 3475 // SBPS is disabled
- 3476 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3477 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3478 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3479 logger.endLogStep();
- 3480
- 3481 // Wait until recovery time expires
- 3482 sleepSeconds(DAILY_RECOVERY_SLEEP_TIME);
- 3483
- 3484 // SBPS should not be restarted after minimum timer expires (SBPS is still disabled)
- 3485 logger.addLogStep("Step 8: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3486 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.TEMPORARILY_DISABLED);
- 3487 logger.endLogStep();
- 3488
- 3489 // Change counter values (always low traffic case)
- 3490 logger.addLogStep("Step 9: Change the counter values to low traffic");
- 3491 highTrafficLevel = 200;
- 3492 radioUnit.coli().txm().sbps().modifyDelay(
- 3493 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 3494 logger.endLogStep();
- 3495
- 3496 sleepMilliseconds(HIGH_TRAFFIC_RESTART_DELAY + 500); // ms
- 3497
- 3498 // SBPS is enabled after recovery time expired
- 3499 logger.addLogStep("Step 10: " + SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3500 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3501 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3502 logger.endLogStep();
- 3503
- 3504 // Release the GSM carrier.
- 3505 logger.addLogStep("Step 11: Release the GSM carrier");
- 3506 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 3507 logger.endLogStep();
- 3508 sleepSeconds(5);
- 3509
- 3510 radioUnit.coli().elog().clear();
- 3511
- 3512 // Reset counter values
- 3513 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 3514 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 3515 }
- 3516
- 3517 /**
- 3518 * To Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL
- 3519 * Details:
- 3520 * - Change counter values
- 3521 * - Setup + activate GSM carrier (branch A), verify SbpsSrv state and carrier configuration
- 3522 * - Raise SBPS failed event using the injection tool (sbps-not-supported)
- 3523 * - Check SBPS is not enabled for the recovery period
- 3524 * - SBPS should not be restarted after minimum timer expires (SBPS disabled)
- 3525 * - Disable and release the carrier
- 3526 * - Reset timers and limits to default
- 3527 * "TX_MOD C4, TC5: GSM, Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL, prio 2"
- 3528 */
- 3529 @Test(enabled = true)
- 3530 @JcatMethod(testTag = "TX_MOD-C4,SBPS-TC5:G",
- 3531 testTitle = "Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL",
- 3532 testReqRef = " ",
- 3533 testPriority = "B")
- 3534 @Groups({ TestGroup.ACTIVATES_TX, TestGroup.LOOP_60 })
- 3535 @Exclude(@If(platformIs = RadioPlatform.PL4))
- 3536 @Run(@If(ratTypeAllOf = { RatType.GSM },
- 3537 supportsRatAllOf = { RatType.GSM },
- 3538 numTxBranchesMoreThan = 0,
- 3539 supportSBPS = Bool.TRUE,
- 3540 sbpsSupportedRatGsm = Bool.TRUE,
- 3541 supportMR299 = Bool.TRUE
- 3542 ))
- 3543 public void sbpsC4_TC5_G() {
- 3544 setTestCase(
- 3545 "SBPS-C4-TC5:G",
- 3546 "Verify RU does not restart SBPS after sbps-not-supported fault is raised from TXL, prio B");
- 3547
- 3548 final int highTrafficLevel = 200;
- 3549
- 3550 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3551
- 3552 int startingSlot = radioUnit.coli().xp().lmclist().getRunningLoadModule().getSlotNumber();
- 3553
- 3554 // Change counter values (recovery time 3s)
- 3555 logger.addLogStep("Step 1: Change the counter values to high traffic");
- 3556 radioUnit.coli().txm().sbps().modifyDelay(
- 3557 AntennaBranchId.A, RECOVERY_TIME, highTrafficLevel, HIGH_TRAFFIC_RESTART_DELAY, BRANCH_BUSY_DELAY);
- 3558 logger.endLogStep();
- 3559
- 3560 radioUnit.coli().txm().sbps().dumpLimits(AntennaBranchId.A);
- 3561
- 3562 // Create and setup GSM carrier on branch A
- 3563 logger.addLogStep("Step 2: Setup GSM carrier on branch " + AntennaBranchId.A);
- 3564 // carrierId = 0, port = A, axcId = 1
- 3565 dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 3566 dlGsmCarrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3567 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 3568 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 3569 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 3570 logger.endLogStep();
- 3571
- 3572 logger.addLogStep("Step 3: Send report subscription request and check that report indications are received");
- 3573 helper.sendReportSubscriptionRequest(dlGsmCarrier, msiClient);
- 3574 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3575 logger.endLogStep();
- 3576
- 3577 logger.addLogStep("Step 4: Activate GSM carrier");
- 3578 VerifyCarrierControl.verifyActivateAndActivated(dlGsmCarrier, msiCarrierManager);
- 3579 logger.endLogStep();
- 3580
- 3581 // Check if SBPS is enabled
- 3582 logger.addLogStep(SBPS_ENABLED_TEXT + AntennaBranchId.A);
- 3583 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.ENABLED);
- 3584 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_ENABLED);
- 3585 logger.endLogStep();
- 3586
- 3587 radioUnit.coli().elog().clear();
- 3588
- 3589 // Raise SBPS failed event
- 3590 logger.addLogStep("Step 5: Raise SBPS failed event using the injection tool");
- 3591 radioUnit.coli().txm().sbps().injectFault(AntennaBranchId.A, SBPSEvent.TXL_SBPS_NOT_SUPPORTED);
- 3592 logger.endLogStep();
- 3593
- 3594 sleepMilliseconds(SLEEP_TIME);
- 3595
- 3596 // SBPS is disabled
- 3597 logger.addLogStep("Step 6: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3598 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 3599 helper.verifyReportIndication(dlGsmCarrier, msiClient, helper.SBPS_STATUS_DISABLED);
- 3600 ElvisAssert.assertEquals(true,
- 3601 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_PERMANENTLY_DISABLED_TXL_TEXT));
- 3602 logger.endLogStep();
- 3603
- 3604 sleepSeconds((DAILY_RECOVERY_SLEEP_TIME));
- 3605
- 3606 // SBPS is always in disabled state and RU is not restarted
- 3607 logger.addLogStep("Step 7: " + SBPS_DISABLED_TEXT + AntennaBranchId.A);
- 3608 VerifySbps.verifySpbsState(AntennaBranchId.A, SBPSState.DISABLED);
- 3609 ElvisAssert.assertEquals(true,
- 3610 radioUnit.coli().elog().readRawOutput().contains(ELOG_SBPS_PERMANENTLY_DISABLED_TXL_TEXT));
- 3611 logger.endLogStep();
- 3612
- 3613 // Release the GSM carrier.
- 3614 logger.addLogStep("Step 8: Release the GSM carrier");
- 3615 msiCarrierManager.releaseCarrier(dlGsmCarrier);
- 3616 logger.endLogStep();
- 3617 sleepSeconds(5);
- 3618
- 3619 radioUnit.coli().elog().clear();
- 3620
- 3621 // Reset counter values
- 3622 radioUnit.coli().txm().sbps().resetLimits(AntennaBranchId.A);
- 3623 radioUnit.coli().txm().sbps().resetDelay(AntennaBranchId.A);
- 3624
- 3625 //Set back the radio to the same slot as when the testcase started
- 3626 ColiCommandsUtils.restartBySlotNbrAndWaitUntilRuUp(radioUnit.coli(), startingSlot);
- 3627 }
- 3628
- 3629 /**
- 3630 * Purpose:
- 3631 * To verify G2 SBPS configuration register.
- 3632 * Details:
- 3633 * Setup+activate
- 3634 * LTE carrier (branch A), verify evc_sbps_conf_register register when sbps enable
- 3635 *
- 3636 * @custom.references
- 3637 * "TX_MOD C5, TC16: L, Verify evc_sbps_conf_register when sbps enable, prio 1"
- 3638 */
- 3639 @Test(enabled = true)
- 3640 @JcatMethod(testTag = "TX_MOD-C5,SBPS-TC16:L",
- 3641 testTitle = "Verify evc_sbps_conf_register when sbps enable",
- 3642 testReqRef = " ",
- 3643 testPriority = "A")
- 3644 @Groups({ TestGroup.ACTIVATES_TX,
- 3645 TestGroup.LOOP_60 })
- 3646 @Run(@If(ratTypeConnection1OneOf = { RatType.LTE_FDD },
- 3647 platformIs = RadioPlatform.NGR_G2,
- 3648 numTxBranchesMoreThan = 0,
- 3649 supportSBPS = Bool.TRUE))
- 3650 public void sbpsC5_TC16_L() {
- 3651 setTestCase("SBPS-C5-TC16:L",
- 3652 "Verify evc_sbps_conf_register when sbps enable, prio A");
- 3653
- 3654 /*
- 3655 * Setup and activate an LTE carrier.
- 3656 * carrierId = 0, port = A, axcId = 1
- 3657 */
- 3658 logger.addLogStep("Setup LTE carrier on branch " + AntennaBranchId.A);
- 3659 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1);
- 3660 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 3661 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 3662 logger.endLogStep();
- 3663
- 3664 logger.addLogStep("Activate LTE carrier on branch " + AntennaBranchId.A);
- 3665 VerifyCarrierControl.verifyActivateAndActivated(dlLteCarrier, msiCarrierManager);
- 3666 logger.endLogStep();
- 3667
- 3668 logger.addLogStep("Verify EVC SBPS state");
- 3669 MemMappedCommand xenon = radioUnit.coli().memMapped().xenon();
- 3670 TxmSbpsDumpInfo txmSbpsDump = radioUnit.coli().txm().sbps().dump(AntennaBranchId.A);
- 3671 if (txmSbpsDump.isSbpsCapable()) {
- 3672 if (txmSbpsDump.getCurrentState().equals(SBPSState.ENABLED)) {
- 3673 VerifySbps.verifyEvcSbpsConfRegister(PWR_SYNC_A_MSG_TO_0, xenon);
- 3674 } else {
- 3675
- 3676 logger.info("failed to enable sbps, can't verify G2 SBPS config register.");
- 3677 }
- 3678 } else {
- 3679 logger.info("not sbps capable radio, no need to verify G2 SBPS config register.");
- 3680 }
- 3681 logger.endLogStep();
- 3682
- 3683 logger.addLogStep("Deactivate and releasing LTE carrier for branch " + AntennaBranchId.A);
- 3684 VerifyCarrierControl.verifyDeactivateAndReleaseCarrier(dlLteCarrier, msiCarrierManager);
- 3685 logger.endLogStep();
- 3686
- 3687 }
- 3688
- 3689 /**
- 3690 * SBPS helper to establish an connection, setup and activate an LTE carrier.
- 3691 *
- 3692 * @Param ratType LTE-TDD or LTE-FDD ratType is used.
- 3693 * @Return carrier if success else null.
- 3694 */
- 3695 private Carrier connectSetupActivatedLteTxCarrier(RatType ratType) {
- 3696
- 3697 msiClient = stp.defaultDigitalUnit().getMsiClient();
- 3698 ConnSetupUtils.open(msiClient);
- 3699 msiCarrierManager = CarrierManagementFactory.getCarrierManagement(msiClient);
- 3700
- 3701 /*
- 3702 * carrierId = 0, port = A, axcId = 1
- 3703 */
- 3704 logger.addLogStep("Setup, create and activate LTE carrier");
- 3705 dlLteCarrier = createLteTxCarrier(0, RF_PORT_ID_A, 1, ratType);
- 3706 Assert.assertNotNull(dlLteCarrier, "LTE carrier couldn't be created");
- 3707 Assert.assertTrue(msiCarrierManager.setupCarrier(dlLteCarrier));
- 3708 Assert.assertTrue(msiCarrierManager.activateCarrier(dlLteCarrier));
- 3709 logger.endLogStep();
- 3710 return dlLteCarrier;
- 3711 }
- 3712
- 3713 /**
- 3714 * SBPS helper to establish an connection, setup and activate an GSM carrier.
- 3715 */
- 3716 private Carrier connectSetupActivatedGsmTxCarrier() {
- 3717
- 3718 msiClient = stp.defaultDigitalUnit().getMsiClient();
- 3719 ConnSetupUtils.open(msiClient);
- 3720 msiCarrierManager = CarrierManagementFactory.getCarrierManagement(msiClient);
- 3721
- 3722 /*
- 3723 * carrierId = 0, port = A, axcId = 1
- 3724 */
- 3725 logger.addLogStep("Setup, create and activate GSM carrier");
- 3726 Carrier dlGsmCarrier = createGsmTxCarrier(0, RF_PORT_ID_A, 1);
- 3727 Assert.assertNotNull(dlGsmCarrier, "GSM carrier couldn't be created");
- 3728 Assert.assertTrue(msiCarrierManager.setupCarrier(dlGsmCarrier));
- 3729 Assert.assertTrue(msiCarrierManager.activateCarrier(dlGsmCarrier));
- 3730 logger.endLogStep();
- 3731 return dlGsmCarrier;
- 3732 }
- 3733
- 3734 /**
- 3735 * SBPS helper method to create a LTE Tx carrier.
- 3736 *
- 3737 * @Param carrierId The selected carrier id.
- 3738 * @Param rfPortId The selected rfPort.
- 3739 * @Param axcId The selected axcId.
- 3740 * @Param RatType LTE-TDD or LTE-FDD ratType is used
- 3741 * @Return carrier if success else null.
- 3742 */
- 3743 private Carrier createLteTxCarrier(int carrierId, int rfPortId, int axcId, RatType ratType) {
- 3744
- 3745 if (rfPortId > msiClient.getRadioResources().getRuRfPortHandler().getNumberOfRfPorts()) {
- 3746 info("selected rfPort is not supported");
- 3747 return null;
- 3748 }
- 3749
- 3750 RfPort rfPort = msiClient.getRadioResources().getRuRfPortHandler().getRfPort(rfPortId);
- 3751
- 3752 Carrier carrier = CarrierUtils.createCarrier(
- 3753 msiClient,
- 3754 rfPort,
- 3755 LinkDirection.DL,
- 3756 ratType);
- 3757
- 3758 /*
- 3759 * Update the LTE carrier with specific information needed by SBPS tests
- 3760 */
- 3761 carrier.setCarrierID(carrierId);
- 3762 carrier.setSampleRate(CarrierType.getSampleRate(ratType,
- 3763 CarrierConstants.CARRIER_BANDWIDTH_5000.getValue(), LinkDirection.DL).inKhz());
- 3764
- 3765 // this is the case in TC C2,TC4 when LTE-TDD carrier is supported
- 3766 if ((RatType.LTE_TDD == ratType) && (RF_PORT_ID_B == rfPortId)) {
- 3767 carrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(ratType).get(0)
- 3768 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_10000.getValue());
- 3769
- 3770 } else {
- 3771 carrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(ratType).get(0)
- 3772 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue() / 2);
- 3773 }
- 3774 carrier.setBandwidth(Carrier.CarrierConstants.CARRIER_BANDWIDTH_5000.getValue());
- 3775 carrier.setTxCarrierGainSetting(Carrier.CarrierConstants.TX_CARRIER_GAIN_SETTING_QUARTER_POWER.getValue());
- 3776 carrier.setTxCarrierPowerAllocation(Carrier.CarrierConstants.TX_CARRIER_GAIN_SETTING_QUARTER_POWER.getValue());
- 3777 carrier.setSubBandFunction(Const_dc_tr.DC_TR_SUB_BAND_FUNCTION_OFF);
- 3778 carrier.setAxcId(axcId);
- 3779
- 3780 return carrier;
- 3781
- 3782 }
- 3783
- 3784 private Carrier createLteTxCarrier(int carrierId, int rfPortId, int axcId) {
- 3785 Carrier carrier = createLteTxCarrier(carrierId, rfPortId, axcId, RatType.LTE_FDD);
- 3786 return carrier;
- 3787 }
- 3788
- 3789 /**
- 3790 * SBPS helper method to create a GSM Tx carrier.
- 3791 *
- 3792 * @Param carrierId The selected carrier id.
- 3793 * @Param rfPortId The selected rfPort.
- 3794 * @Param axcId The selected axcId.
- 3795 * @Return carrier if success else null.
- 3796 */
- 3797 private Carrier createGsmTxCarrier(int carrierId, int rfPortId, int axcId) {
- 3798
- 3799 if (rfPortId > msiClient.getRadioResources().getRuRfPortHandler().getNumberOfRfPorts()) {
- 3800 info("selected rfPort is not supported");
- 3801 return null;
- 3802 }
- 3803
- 3804 RfPort rfPort = msiClient.getRadioResources().getRuRfPortHandler().getRfPort(rfPortId);
- 3805 Carrier carrier = CarrierUtils.createCarrier(
- 3806 msiClient,
- 3807 rfPort,
- 3808 LinkDirection.DL,
- 3809 RatType.GSM);
- 3810
- 3811 /*
- 3812 * Update the GSM carrier with specific information needed by SBPS tests
- 3813 */
- 3814 carrier.setCarrierID(carrierId);
- 3815 carrier.setSampleRate(CarrierType.getSampleRate(RatType.GSM,
- 3816 CarrierConstants.DEFAULT_CARRIER_BANDWIDTH_GSM.getValue(), LinkDirection.DL).inKhz());
- 3817 carrier.setFrequency(StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3818 .getTxOperationBandLowEdge() + Carrier.CarrierConstants.CARRIER_BANDWIDTH_10000.getValue());
- 3819 carrier.setBandwidth(Carrier.CarrierConstants.DEFAULT_CARRIER_BANDWIDTH_GSM.getValue());
- 3820 carrier.setTxCarrierGainSetting(Carrier.CarrierConstants.TX_CARRIER_GAIN_SETTING_QUARTER_POWER.getValue());
- 3821 carrier.setTxCarrierPowerAllocation(Carrier.CarrierConstants.TX_CARRIER_GAIN_SETTING_QUARTER_POWER.getValue());
- 3822 carrier.setSubBandFunction(Const_dc_tr.DC_TR_SUB_BAND_FUNCTION_OFF);
- 3823 ArfcnRange arfcnRange0 = StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.GSM).get(0)
- 3824 .getArfcnRanges().get(0);
- 3825 /*
- 3826 * Carrier frequency for GSM is calculated from ARFCN number which needs to be adjusted
- 3827 * accordingly. Minimum ARFCN number used to setup carrier in the low edge of the frequency
- 3828 * band thus needs to be increased in order to setup carrier 10 MHz away from the band low
- 3829 * edge as stated above.
- 3830 * Offset used (50) translated into frequency will give 50*200kHz(carrier BW)= 10 MHz
- 3831 */
- 3832 carrier.setArfcnMin(arfcnRange0.getArfcnMin() + 50);
- 3833 carrier.setArfcnMax(arfcnRange0.getArfcnMin() + 50);
- 3834 carrier.setAxcId(axcId);
- 3835
- 3836 return carrier;
- 3837
- 3838 }
- 3839
- 3840 /**
- 3841 * SBPS helper method to create and setup a Tx WcdmaCarrier.
- 3842 *
- 3843 * @Param carrierId The selected carrier id.
- 3844 * @Param rfPortId The selected rfPort.
- 3845 * @Param axcId The selected axcId.
- 3846 * @Return WcdmaCarrier if success else null.
- 3847 */
- 3848 private WcdmaCarrier createAndSetupWcdmaTxCarrier(int carrierId, int rfPortId, int axcId) {
- 3849
- 3850 if (rfPortId > wcdmaClient.getRadioResources().getRuRfPortHandler().getNumberOfRfPorts()) {
- 3851 info("selected rfPort is not supported");
- 3852 return null;
- 3853 }
- 3854
- 3855 RfPort rfPort = wcdmaClient.getRadioResources().getRuRfPortHandler().getRfPort(rfPortId);
- 3856 WcdmaCarrier carrier = (WcdmaCarrier) CarrierUtils.createCarrier(wcdmaClient,
- 3857 carrierId, rfPort, LinkDirection.DL, RatType.WCDMA);
- 3858
- 3859 /*
- 3860 * Configure the BaseBand data, more details about allocation of
- 3861 * PortId and CellCarrierBranchIdcan be found in
- 3862 * 42/102 62-CNH 160 6510 and 1/1551-HRB 105 102/1
- 3863 */
- 3864 if (rfPortId == RF_PORT_ID_B) {
- 3865 /* branch B was created on RF_PORT B */
- 3866 carrier.getBasebandConfig().setSlotIdDl(2);
- 3867 carrier.getBasebandConfig().setPortIdDl(5);
- 3868 carrier.getBasebandConfig().setDlCellCarrierBranchId(2);
- 3869 carrier.getBasebandConfig().setAxcIdDl(axcId);
- 3870 } else {
- 3871 /* branch A was created on RF_PORT A */
- 3872 carrier.getBasebandConfig().setSlotIdDl(1);
- 3873 carrier.getBasebandConfig().setPortIdDl(1);
- 3874 carrier.getBasebandConfig().setDlCellCarrierBranchId(1);
- 3875 carrier.getBasebandConfig().setAxcIdDl(axcId);
- 3876 }
- 3877
- 3878 Assert.assertTrue(WcdmaBasebandConfigurationUtils.getInstance().configureBasebandData(wcdmaClient, carrier));
- 3879 Assert.assertTrue(wcdmaCarrierManager.setupCarrier(carrier));
- 3880
- 3881 return carrier;
- 3882 }
- 3883
- 3884 /**
- 3885 * SBPS helper method to release a WCDMA carrier.
- 3886 *
- 3887 * @Param WcdmaCarrier The carrier to be released.
- 3888 * @Param tpaId The selected TpaId to turn off.
- 3889 * @Return true if success, else false.
- 3890 */
- 3891 private boolean releaseWcdmaCarrier(WcdmaCarrier carrier, int tpaId) {
- 3892
- 3893 if (!wcdmaCarrierManager.releaseCarrier(carrier)) {
- 3894 return false;
- 3895 }
- 3896
- 3897 ProcedureResult tpaResult = wcdmaClient.tpa().getDevice(tpaId).off();
- 3898 if (tpaResult.getVerdict() != Verdict.PASS) {
- 3899 return false;
- 3900 }
- 3901
- 3902 Assert.assertTrue(WcdmaBasebandConfigurationUtils.getInstance().clearBasebandData(wcdmaClient, carrier));
- 3903
- 3904 return true;
- 3905 }
- 3906
- 3907 /**
- 3908 * SBPS helper method to set the TPA power to it's lowest supported level.
- 3909 *
- 3910 * @Param branch The selected branch to get power class.
- 3911 * @Param tpaId The selected tpaId.
- 3912 * @Return true if success, else false.
- 3913 */
- 3914 private boolean setWcdmaTpaModifyPower(AntennaBranchId branch, int tpaId) {
- 3915 /*
- 3916 * Get low and high frequency and convert to 5kHz unit
- 3917 */
- 3918 int highFreqBandEdge = StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.WCDMA).get(0)
- 3919 .getTxOperationBandHighEdge() * 5 / 1000;
- 3920 int lowFreqBandEdge = StaticInfo.getInstance().getRuInfo().getRu().getConfiguredBands(RatType.WCDMA).get(0)
- 3921 .getTxOperationBandLowEdge() * 5 / 1000;
- 3922 int lastPowerClass = radioUnit.coli().txm().pa().getSupportedPowerClasses(branch).size();
- 3923
- 3924 /*
- 3925 * Make sure we have at least one supported power class
- 3926 */
- 3927 if (lastPowerClass < 1) {
- 3928 return false;
- 3929 }
- 3930
- 3931 /*
- 3932 * Get the lowest power class level corresponding to the last supported
- 3933 * power class and set it in the TPA device.
- 3934 */
- 3935 int lowestPowerClassLevel = radioUnit.coli().txm().pa()
- 3936 .getSupportedPowerClasses(branch).get(lastPowerClass - 1);
- 3937
- 3938 ProcedureResult modResult = wcdmaClient.tpa().getDevice(tpaId).modifyPower(
- 3939 new UserOptions().sendParameters(new Parameters()
- 3940 .add("totalOutputPower", lowestPowerClassLevel)));
- 3941
- 3942 if (modResult.getVerdict() != Verdict.PASS) {
- 3943 return false;
- 3944 }
- 3945
- 3946 ProcedureResult setupResult = wcdmaClient.tpa().getDevice(tpaId).setup3(
- 3947 new UserOptions().sendParameters(new Parameters()
- 3948 .add("numberOfCarriers", 1)
- 3949 .add("maxPowerConsumption", 440)
- 3950 .add("lowFreqBandEdge", lowFreqBandEdge)
- 3951 .add("highFreqBandEdge", highFreqBandEdge)));
- 3952
- 3953 if (setupResult.getVerdict() != Verdict.PASS) {
- 3954 return false;
- 3955 }
- 3956
- 3957 return true;
- 3958
- 3959 }
- 3960
- 3961 /**
- 3962 * SBPS helper method to skip if radio has slow pa.
- 3963 */
- 3964 private void skipIfSlowPa(Carrier carrier) {
- 3965 if (!radioUnit.coli().txm().sbps().dump(AntennaBranchId.A).isSbpsCapable()) {
- 3966 logger.addLogStep("SkipIfSlowPa: Releasing " + carrier.getRatType().toString() + " carrier ");
- 3967 msiCarrierManager.releaseCarrier(carrier);
- 3968 logger.endLogStep();
- 3969 /*
- 3970 * Clearing the PA_ON_EVENT
- 3971 * Since we don't want to wait 20 seconds for PA to timeout
- 3972 */
- 3973 radioUnit.coli().fm().clear(Fault.PA_ON_EVENT);
- 3974 ElvisAssert.skip("Skipping since radio isn't SBPS capable due to slow pa.");
- 3975 }
- 3976 }
- 3977 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement