예제 #1
0
 def export_file(self):
     export_file_macro = et.macroActivationThread(10, "TrackerExport",
                                                  "Click Export File")
     export_file_macro.start()
     self.click_yes_box()
     self.click_ok_box()
     export_file_macro.join()
예제 #2
0
 def create_confirms_file(self):
     create_confirms_file_macro = et.macroActivationThread(
         9, "ConfirmationsExport", "Click Create Confirms File")
     create_confirms_file_macro.start()
     self.click_yes_box()
     self.click_ok_box()
     create_confirms_file_macro.join()
예제 #3
0
 def retreive_ean(self):
     retreive_ean_macro = et.macroActivationThread(
         8, "PopulateConfirmationEansSheet", "Click Retreive EANs")
     retreive_ean_macro.start()
     self.click_yes_box()
     self.click_ok_box()
     retreive_ean_macro.join()
예제 #4
0
 def export_tracker(self,
                    last_popup_message_thread=None,
                    filtered_data=False):
     export_tracker_macro = et.macroActivationThread(
         9, "TrackerExport", "Click Export")
     export_tracker_macro.start()
     self.click_yes_box()
     if filtered_data is True:
         self.click_yes_box()
     if last_popup_message_thread is not None:
         last_popup_message_thread.start()
         last_popup_message_thread.join()
     else:
         self.click_ok_box()
     export_tracker_macro.join()
예제 #5
0
 def populate_confirms_sht(self,
                           last_popup_message_thread=None,
                           filtered_data=False):
     populate_confirms_sht_macro = et.macroActivationThread(
         7, "PopulateConfirmationSheet",
         "Click Populate Confirmation Sheet")
     populate_confirms_sht_macro.start()
     self.click_yes_box()
     if filtered_data is True:
         self.click_yes_box()
     if last_popup_message_thread is None:
         self.click_ok_box()
     else:
         last_popup_message_thread.start()
         last_popup_message_thread.join()
     populate_confirms_sht_macro.join()
예제 #6
0
 def ppo_update(self, ppo_path, ppo_file_open=True, success=True):
     ppo_update_macro = et.macroActivationThread(
         5, "PPOUpdate", "Click PPO Update Macro on the Ribbon")
     send_path_string_to_ppo = et.key(
         6, ppo_path, "Type in the ppo path to the dialog box")
     ppo_update_macro.start()
     ppo_update_box_active = False
     while ppo_update_box_active is False:
         if self.os_app.DialogWrapper.exists():
             send_path_string_to_ppo.start()
             ppo_update_box_active = True
     send_path_string_to_ppo.join()
     self.click_open_box()
     if ppo_file_open is True:
         self.click_ok_box()
     if success is True:
         self.click_ok_box()
         ppo_update_macro.join()
예제 #7
0
    def create_exception_report(self):
        create_exception_report = et.macroActivationThread(
            11, "RunAlertExceptionReport", 'Click Reports Button')
        #path = input("GitHub\wtso-test-repository\Exception report Vik")
        send_path_string_to_report = et.key(
            11, "GitHub\wtso-test-repository\ExceptionReport",
            'Saving exceptions report to files')

        create_exception_report.start()

        report_save_as_box_active = 0
        while report_save_as_box_active == 0:
            if self.os_app.DialogWrapper.exists():
                send_path_string_to_report.start()
                report_save_as_box_active = 1
        send_path_string_to_report.join()
        time.sleep(5)
        self.click_ok_box()
        create_exception_report.join()
예제 #8
0
 def supplier_sheet_update(self, supplier_sheet_path, finish_update=True):
     supplier_sheet_validation_macro = et.macroActivationThread(
         5, "SupplierSheetCheck",
         "Click Supplier SHeet Update Macro on the Ribbon")
     send_path_string_to_supplier_sheet_box = et.key(
         6, supplier_sheet_path,
         "Type in the supplier sheet path to the dialog box")
     #self.clicker.close()
     supplier_sheet_validation_macro.start()
     supplier_sheet_update_box_inactive = True
     while supplier_sheet_update_box_inactive is True:
         if self.os_app.DialogWrapper.exists():
             send_path_string_to_supplier_sheet_box.start()
             supplier_sheet_update_box_inactive = False
     send_path_string_to_supplier_sheet_box.join()
     self.click_open_box()
     if finish_update is True:
         self.click_ok_box()
         supplier_sheet_validation_macro.join()