首页 > TAG信息列表 > loginPage

web自动化11-PO页面封装-多浏览器启动测试交互

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

spring security 之自定义表单登录源码跟踪

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

行为驱动behave结合PO设计模式

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

Spring Security配置loginPage后,默认的表单登录请求接口也是这个

配置如下: 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

未认证请求跳转到登录页

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