摘要: from faker import Fakerfaker= Faker("zh_CN")name_female=faker.name_female()name_male=faker.name_male()address= faker.address()telephone= faker.phone_n 阅读全文
posted @ 2020-07-02 10:45 fyangq 阅读(177) 评论(0) 推荐(0)
摘要: 一、运行某一条测试用例 robot --<测试用例名> in <用例所在suite路径> robot -t <projectname.suitename.testname> <工程路径> (-t 同 --test) 二、运行某个测试套 robot <suite路径> robot -s <projec 阅读全文
posted @ 2020-06-30 17:05 fyangq 阅读(2126) 评论(0) 推荐(0)
摘要: def unix_time(dt): """ 日期转时间戳 :param dt: :return: """ # 转换成时间数组 timeArray = time.strptime(dt, "%Y-%m-%d %H:%M:%S") # 转换成时间戳 timestamp = int(time.mktim 阅读全文
posted @ 2020-06-30 13:46 fyangq 阅读(234) 评论(0) 推荐(0)
摘要: *** Settings ***Library DateTime #import datetime Library StringResource 资源文件.robotVariables vars.pyDocumentation 练习脚本,涉及变量和关键字应用... Author:fyangq... 阅读全文
posted @ 2020-06-29 16:51 fyangq 阅读(328) 评论(0) 推荐(0)
摘要: import pymongoimport codecsimport csvclient = pymongo.MongoClient('ip',port)db=client.admindb.authenticate("user", "password", mechanism='SCRAM-SHA-1' 阅读全文
posted @ 2020-06-28 10:56 fyangq 阅读(327) 评论(0) 推荐(0)
摘要: 查询结果显示指定列 db.getCollection(collection_name).find({pe_date: /2018/},{name:1,work_unit:1,pe_date:1,id_card:1,user_id:1}) 计算查询结果的总数 db.getCollection(coll 阅读全文
posted @ 2020-06-28 10:51 fyangq 阅读(119) 评论(0) 推荐(0)
摘要: import win32clipboard as wimport win32con,win32apivk_code = {'ctrl': 0x11, 'enter': 0x0D, 'a': 0x41, 'v': 0x56, 'x': 0x58}class Clipboard(): """ 模拟Win 阅读全文
posted @ 2020-05-28 10:47 fyangq 阅读(250) 评论(0) 推荐(0)
摘要: 查看 连接的手机列表adb devices手动连接设备adb connect 127.0.0.1:7555查看前台应用activity应用名称adb shell dumpsys activity adb shell "dumpsys window | grep mCurrentFocus" adb 阅读全文
posted @ 2020-04-09 15:17 fyangq 阅读(148) 评论(0) 推荐(0)
摘要: from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionsfrom selenium.webdriver.common.desired_capabilities import DesiredC 阅读全文
posted @ 2020-04-03 11:00 fyangq 阅读(1035) 评论(0) 推荐(0)
摘要: import codecsimport jsonfrom selenium import webdriverfrom selenium.webdriver.common.desired_capabilities import DesiredCapabilitiescapabilities = Des 阅读全文
posted @ 2020-04-03 10:21 fyangq 阅读(6164) 评论(1) 推荐(0)