@Test( groups = {"P2", "P2_Target", "CycleCountStatusReport"}, singleThreaded = true) public void verifySystemDoesNotDisplayDisabledStoresInStoreDropDownAtCycleCountStatusReport() { inventoryManagementActions .verifySystemDoesNotDisplayDisabledStoresInStoreDropDownAtCycleCountStatusReport(); }
@Test( groups = {"P1", "P1_Target", "Smoke_Target", "CycleCountStatusReport"}, dependsOnMethods = "createTestData") public void viewCycleCountStatusReport() { String[] productUPC = barcode; CycleCounts cycleCounts = CycleCounts.builder() .cycleCountName(cycleCountName) .indexForSelect(1) .daysForCycleCount(0) .productUPC(productUPC) .nonSerializedProductName(nonSerialProduct.getName().get()) .reason("Demo Phone") .reviewalCode("12345") .quantityCount(10) .create(); cycleCountActions.createCycleCountForDifferentProducts(cycleCounts); cycleCountActions.startCycleCount(cycleCountName); InventoryManagement cycleCountStatusReport = InventoryManagement.builder() .storeName(StoreData.EXISTING_STORE_NAME) .cycleCountStatus("Pending Count") .cycleCountName(cycleCountName) .create(); inventoryManagementActions.viewCycleCountStatusReport( daysForCycleCountStatus, cycleCountStatusReport); cycleCountActions.performCycleCount(cycleCounts); InventoryManagement cycleCountStatusReport1 = InventoryManagement.builder() .storeName(StoreData.EXISTING_STORE_NAME) .cycleCountStatus("Pending Review") .cycleCountName(cycleCountName) .create(); inventoryManagementActions.viewCycleCountStatusReport( daysForCycleCountStatus, cycleCountStatusReport1); cycleCountActions.reviewSerializedNonSerializedProductCycleCount(cycleCounts); InventoryManagement cycleCountStatusReport2 = InventoryManagement.builder() .storeName(StoreData.EXISTING_STORE_NAME) .cycleCountStatus("Reviewed") .cycleCountName(cycleCountName) .create(); inventoryManagementActions.viewCycleCountStatusReport( daysForCycleCountStatus, cycleCountStatusReport2); }
@Test( groups = {"P2", "P2_Target", "CycleCountStatusReport"}, singleThreaded = true) public void verifyValidationOnProvidingInvalidStartAndEndDateAtCycleCountStatusReport() { inventoryManagementActions .verifyValidationOnProvidingInvalidStartAndEndDateAtCycleCountStatusReport( ProductStaticData.INVALID_VALUE); }
@Test( groups = {"P1", "P1_Target", "CycleCountStatusReport"}, dependsOnMethods = "viewCycleCountStatusReport") public void verifyCycleCountStatusReportIsExportedInExcelFormatOnClickingExportButton() { MerchantStore store = MerchantStore.builder().priceGroupText(SetupStaticData.DEFAULT_PRICE_GROUP).create(); inventoryManagementActions .verifyCycleCountStatusReportIsExportedInExcelFormatOnClickingExportButton( daysForCycleCountStatus); merchantStoreActions.editMerchantStore(LoginData.STORE.value(), store); }