def test_flujo_normal_entrada_salida_elementos(self):

        terceroDriver = tercero.IngressRequest(self.base_url, self.browser)
        requestData = terceroDriver.create_element_ingress_request()

        #requestData = {'requestId' : '170' }
        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        requestData = guardaDriver.approve_request('Solicitudes de Terceros')

        terceroDriver = tercero.DepartureRequest(self.base_url, self.browser,
                                                 requestData)
        requestData = terceroDriver.create_element_departure_request()

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_departure_request('Solicitudes de Terceros')
    def ttest_flujo_entrada_consumables(self):

        terceroDriver = tercero.IngressRequest(self.base_url, self.browser)
        requestData = terceroDriver.create_consumables_ingress_request()

        #requestData = {'requestId' : '170' }
        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')

        time.sleep(5)
    def ttest_flujo_salida_elementos(self):
        #requestData = self.requestData
        requestData = {'requestId': "229"}

        terceroDriver = tercero.DepartureRequest(self.base_url, self.browser,
                                                 requestData['requestId'])
        terceroDriver.create_element_departure_request()

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')

        time.sleep(5)
    def test_flujo_transfer_request_argos(self):

        usuarioargosDriver = usuarioargos.TransferRequest(
            self.base_url, self.browser)
        requestData = usuarioargosDriver.create_transfer_request()

        inverventorDriver = interventor.Interventor(self.base_url,
                                                    self.browser, requestData)
        requestData = inverventorDriver.approve_request('Solicitudes Argos')

        if requestData["isZonaFranca"] == 1:
            usuarioOperador = usuariooperador.UsuarioOperador(
                self.base_url, self.browser, requestData)
            usuarioOperador.approve_request('Solicitudes Pendientes')

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        requestData = guardaDriver.approve_argos_request('Solicitudes Argos')

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_argos_request('Solicitudes Argos')

        time.sleep(5)
    def test_flujo_salida_activos_argos(self):

        terceroDriver = tercero.ArgosDepartureRequest(self.base_url,
                                                      self.browser)
        requestData = terceroDriver.create_departure_request()

        inverventorDriver = interventor.Interventor(self.base_url,
                                                    self.browser, requestData)
        requestData = inverventorDriver.approve_request('Solicitudes Terceros')

        if requestData["isZonaFranca"] == 1:
            usuarioOperador = usuariooperador.UsuarioOperador(
                self.base_url, self.browser, requestData)
            usuarioOperador.approve_request('Solicitudes Pendientes')

        # requestData = {'requestId' : "153", "isZonaFranca" : True}
        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')

        time.sleep(5)
    def ttest_editar_salida_elementos(self):

        requestData = {'requestId': '189'}

        terceroDriver = tercero.DepartureRequest(self.base_url, self.browser,
                                                 requestData['requestId'])
        terceroDriver.modify_element_departure_request()

        time.sleep(5)

        return

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')
    def test_flujo_salida_consumables(self):
        #requestData = self.requestData
        #requestData = {'requestId' : "240" }

        # Entrada
        terceroDriver = tercero.IngressRequest(self.base_url, self.browser)
        requestData = terceroDriver.create_consumables_ingress_request()

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')

        # Salida
        terceroDriver = tercero.DepartureRequest(self.base_url, self.browser,
                                                 requestData['requestId'])
        terceroDriver.create_consumables_departure_request()

        inverventorDriver = interventor.Interventor(self.base_url,
                                                    self.browser, requestData)
        inverventorDriver.approve_request('Solicitudes Terceros')

        guardaDriver = guarda.Guarda(self.base_url, self.browser, requestData)
        guardaDriver.approve_request('Solicitudes de Terceros')

        time.sleep(5)