ICode9

精准搜索请尝试: 精确搜索
  • web自动化11-PO页面封装-多浏览器启动测试交互2022-04-03 20:31:06

    1、PO页面封装-pages 每个页面为一个py文件 继承上次的页面封装内容: 封装方式如下 from common.basepage import BasePage class CoursePage(BasePage):  locator = (***,****) # 提取所有的元素定位方式  def 操作步骤():     2、启动多个浏览器,比如老师端和学生端考勤交互-

  • spring security 之自定义表单登录源码跟踪2021-11-11 01:02:34

    ​ 上一节我们跟踪了security的默认登录页的源码,可以参考这里:https://www.cnblogs.com/process-h/p/15522267.html 这节我们来看看如何自定义单表认证页及源码跟踪。 ​ 为了实现自定义表单及登录页,我们需要编写自己的WebSecurityConfig类,继承了WebSecurityConfigurerAdapter对象

  • 行为驱动behave结合PO设计模式2021-10-17 16:33:58

      用PO的思想去重构或者管理行为驱动测试能使测试更有效率。    以携程网登录场景为例,项目中体现PO思想的是page目录下的两个文件分别为“base.py”和“loginPage.py”。                其中“base.py”文件代码抽取了一些基本的方法,如元素定位的方法;打开网站方法和

  • Spring Security配置loginPage后,默认的表单登录请求接口也是这个2020-11-11 08:00:37

    配置如下: package com.example.securitylogin; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManager

  • 未认证请求跳转到登录页2020-11-07 13:34:46

    开始吧 1、 指定登录跳转的页面 //重写configure方法进行配置 @Override protected void configure(HttpSecurity httpSecurity) throws Exception { httpSecurity .authorizeRequests() //对请求进行授权 .antMatchers("/index.

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有