上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 85 下一页
摘要: 有一次在做接口测试的时候、测用户贷款详情列表接口的时候、刷 新页面的时候一直报:"接口参数异常"的错误、但是通过fiddler抓包 发现前端传递的接口参数是没有问题的、也是按照接口文档去传的、然 后通过登录后台日志系统通过把刚刚发送请求走单的用户名当做是搜 索的关键字、在日志管理系统中按Ctrl+F 阅读全文
posted @ 2020-08-27 11:08 多测师_王sir 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 1、切换到webview # 获取contexts contexts = driver.contexts print(contexts) # 通过获取的contexts索引进行切换到webview driver.switch_to.context(contexts[1]) 切换到webview后,就 阅读全文
posted @ 2020-08-26 19:57 多测师_王sir 阅读(290) 评论(0) 推荐(0) 编辑
摘要: bug一:网站登录后应该显示首页界面、但是出现还未登录界面如下: 解决办法:需要通过reload方法或者driver.refresh方法刷新页面才能进去 bug二:用JavaScript定位方法document.getElementById("J_RoomGuestInfoTxt").value=' 阅读全文
posted @ 2020-08-12 16:31 多测师_王sir 阅读(1619) 评论(0) 推荐(1) 编辑
摘要: 一、需要安装的工具目录 安装 python3.7 我这里采用的是 python3.7 (目前慢慢市场在推广 python3.0 版本了) 安装 robotframework==3.1.2 注意:安装 robotframework 时指定安装 3.1.2 版本,否则易出现关键字缺失的问题 pip in 阅读全文
posted @ 2020-08-12 11:05 多测师_王sir 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 一、window本地安装数据库 先在本地下载mysql数据库的压缩包-本地进行解压 C:\Windows\system32>cd C:\app_project\MySQL\mysql-8.0.21-winx64\bin mysqld.exe --install MySql --defaults-fi 阅读全文
posted @ 2020-08-05 18:50 多测师_王sir 阅读(1993) 评论(0) 推荐(0) 编辑
摘要: def f(x): if x == 0 or x == 1: return x else: x = f(x-2)-f(x-1) return x print f(6) 阅读全文
posted @ 2020-08-04 09:41 多测师_王sir 阅读(163) 评论(0) 推荐(0) 编辑
摘要: HTML文件源码:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> body{ background: antiquewhite; } 阅读全文
posted @ 2020-07-29 18:18 多测师_王sir 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 """ Author:多测师_王sir Time:2020-07-27 16:27 Wechat:xiaoshubass website:www.duoceshi.cn """ import re class Util: @classmethod def read_exc 阅读全文
posted @ 2020-07-27 22:19 多测师_王sir 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 在大型项目中,项目中会有不同的功能,根据不同的功能将代码放到不同的文件中,对页面的操作需要使用到浏览器driver,对于不停的文件中driver来说,driver需要统一,否则会打开多个浏览器实例,比如下面2个python文件,分别为打开百度和打开bing: baidu.py from seleni 阅读全文
posted @ 2020-07-26 20:21 多测师_王sir 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 一、第一步在百度下载BeautifulReport报告模板(或者加入多测师线上技术交流群556733550获取) 然后解压如下 二、然后生成报告的代码如下: """ Author: 多测师_王sir Time: 2020/7/1 20:36 Project: cms接口自动化 Website: ww 阅读全文
posted @ 2020-07-20 22:02 多测师_王sir 阅读(571) 评论(0) 推荐(0) 编辑
上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 85 下一页