from tir import Webapp import unittest class MATA030(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() #inst.oHelper.Setup('SIGAMDI', '20190421', '07', '01', '05') inst.oHelper.Setup('SIGAADV') inst.oHelper.SetLateralMenu("Atualizações > Cadastros > Clientes") def test_MATA030_CT001(self): #pedido = '117.901.434-03' self.oHelper.SetButton('Incluir') self.oHelper.SetValue('A1_TIPO','F - Cons.Final',) self.oHelper.SetValue('A1_PESSOA','F - Fisica') self.oHelper.SetValue('A1_INSCR','ISENTO') # self.oHelper.SetValue('A1_CGC','11790143405') # CHAMEI A FUNCAO CheckResult PARA VERIFICAR SE HAVIA ERROS NA BUSCA DOS CAMPOS ABERTOS # self.oHelper.CheckResult('A1_INSCR','ISENTO') # self.oHelper.SetValue('A1_NREDUZ','LUCAS') # self.oHelper.SetValue('A1_NOME','LUCAS RAFAEL') #self.oHelper.SetBranch('01') #self.oHelper.SetButton('Salvar') #self.oHelper.SetButton('Cancelar') #self.oHelper.SetButton('Cancelar') #self.oHelper.AssertTrue() @classmethod def tearDownClass(inst): inst.oHelper.TearDown() if __name__ == '__main__': unittest.main()