private void setupTest() {
    if (!storeSearchAction.storeExistsByName("DEPOSIT_STORE_16")) {
      store1 =
          MerchantStore.builder()
              .storeNumber("SN_DEP_16")
              .name("DEPOSIT_STORE_16".intern())
              .status(StoreStatus.ACTIVE)
              .storeType(StoreType.STORE)
              .timeZoneText("IDT - Asia/Calcutta")
              .regionText("Mountain")
              .priceGroupText("Default Price Group")
              .salesTaxText("Salt Lake City (6.500000)")
              .salesTaxFloorPercentage(2.5)
              .pifTaxPercentage(1)
              .languageText("English")
              .operatingFund(100)
              .operatingFundMax(200)
              .safeLimit(100.00)
              .safeUpperLimit(200.00)
              .create();
      storeActions.createMerchantStore(store1);

      employee =
          Employee.builder()
              .firstName("John")
              .lastName("Deposit")
              .userName("User16")
              .password("demo1234")
              .expirePasswordNow(false)
              .role(DefaultRoles.ADMINISTRATOR.getText())
              .assignedStores(ImmutableList.of(store1.getName().get()))
              .active(true)
              .commissionsEnabled(true)
              .create();

      employeeActions.addEmployeeAndLoginChangingExpiredPassword(
          employee, store1.getName().get(), "demo4321");

      drawer1 =
          CashDrawer.builder()
              .name("Drawer_Dep_016")
              .merchantStoreName(store1.getName().get())
              .openerString("7")
              .status(CashDrawer.Status.ENABLED)
              .operatingFund(30.0)
              .operatingFundUpperLimit(100.00)
              .create();
      drawerActions.addCashDrawer(drawer1);

      reconcileActions.openCashDrawer(drawer1, drawer1.getOperatingFund().get(), true);
      waits.waitForPageLoad();
    } else {
      commonActions.logout();
      commonActions.initializeSession(
          employee.getUserName().get(), "demo4321", store1.getName().get());
    }
  }
コード例 #2
0
 @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);
 }
コード例 #3
0
 @Test(
     groups = {"P1", "P1_Target", "Smoke_Target", "CycleCountStatusReport"},
     singleThreaded = true)
 public void createTestData() {
   productActions.createProduct(nonSerialProduct);
   List<String> barcodes = new ArrayList<String>();
   {
     barcodes.add(barcode[0]);
   }
   productUPCActions.addProductUPCWithoutVendor(nonSerialProduct.getName().get(), barcodes);
   receivingActions.createShipmentAddingManualNonSerProduct(
       nonSerialProduct.getName().get(), 10, 1.00);
   MerchantStore store =
       MerchantStore.builder().priceGroupText(SetupStaticData.STORE_PRICE_GROUP).create();
   merchantStoreActions.editMerchantStore(LoginData.STORE.value(), store);
 }