示例#1
0
def test():
    try:
        driver = LoginAction.driver("http://86.100.16.15:8001")
        LoginAction.login(driver, "szgsfengyj", "888888111")
        TreeAction.getFirstTree(driver, "重点监控纳税人库")

    except Exception as e:
        raise e('登录失败,用户名或者密码错误')
示例#2
0
    def logintree(url, username, password, ftree, stree, ttree=None):
        try:
            driver = LoginAction.driver(url)
            LoginAction.login(driver, username, password)
            TreeAction.getFirstTree(driver, ftree)
            TreeAction.getSecondTree(driver, stree)
            if ttree != None:
                TreeAction.getThirdTree(driver, ttree)

        except Exception as e:
            raise e

        finally:
            return driver
示例#3
0
def test_dbZdjknsr(pcbh):
    try:
        driver = LoginAction.driver("http://86.100.16.15:8001")
        LoginAction.login(driver, "szgscaiyj", "888888")
        TreeAction.getFirstTree(driver, "重点监控纳税人库")
        TreeAction.getSecondTree(driver, '重点监控纳税人手动出库')
        TreeAction.getThirdTree(driver, "出库审批")
        #for p in pcbh:
        ZdjknsrDbAction.gsycmlDb(driver, pcbh=pcbh, spsm='审批说明', spjg="不同意")

    except Exception as e:
        #selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: 停止运行此脚本吗?
        raise e

    finally:
        driver.quit()
示例#4
0
def test_xgZdjknsr(pcbh):
    try:
        driver = LoginAction.driver("http://86.100.16.15:8001")
        LoginAction.login(driver, "szgsfengyj", "888888")
        TreeAction.getFirstTree(driver, "重点监控纳税人库")
        TreeAction.getSecondTree(driver, '重点监控纳税人手动出库')
        TreeAction.getThirdTree(driver, "出库申请")
        # for p in pcbh:
        #     print(p)
        ZdjknsrXgAction.pcXg(driver, pcbh=pcbh, xgsm='修改说明', spry="蔡永进")

    except Exception as e:
        #selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: 停止运行此脚本吗?
        raise e

    finally:
        driver.quit()
示例#5
0
def test_addZdjknsr():
    try:
        driver = LoginAction.driver("http://86.100.16.15:8001")
        LoginAction.login(driver, "szgsfengyj", "888888")
        TreeAction.getFirstTree(driver, "重点监控纳税人库")
        TreeAction.getSecondTree(driver, '重点监控纳税人手动出库')
        TreeAction.getThirdTree(driver, "出库申请")
        # 新增,勾选一个纳税人,提交审批
        pcbh = []
        #pcbh1=ZdjknsrAddAction.gsycmlAdd(driver,1,"\'蔡永进\'","解除原因","\'稽查定性开企业\'")
        pcbh2 = ZdjknsrAddAction.gsycmlAdd(driver,
                                           number=1,
                                           spry="蔡永进",
                                           reason="解除原因",
                                           lx="稽查定性虚开业")
        #pcbh.append(pcbh1)
        pcbh.append(pcbh2)
        return pcbh

    except Exception as e:
        raise e

    finally:
        driver.quit()