- 博客(10)
- 收藏
- 关注
转载 Go demo2
//package mainpackage mainimport "fmt"const NAME = "ok\n"var mainName = "main name"func learn1(){ fmt.Print("test")}type stud...
2019-08-17 17:16:00
112
转载 python读取json文件
假设存在已知的json文件如下: {"login": {"username":"test","password":"1111111"}, "logout":{"username":"test","password":"1111111"}, "addcart":{"username":"tes...
2019-08-04 17:02:00
1769
转载 python读取excel 文件
python操作excel文件并获取特定单元格的内容: #coding:utf-8import xlrd# data = xlrd.open_workbook('../dataconfig/interface.xlsx')# tables = data.sheets()[0]...
2019-08-04 16:37:00
140
转载 使用mock 模拟接口返回
python mock的用法如下: #coding:utf-8from mock import mockdef mock_test(mock_method,request_data,url,method,response_data): mock_method = mock.M...
2019-08-04 15:51:00
1296
转载 使用unittest 框架进行接口测试
使用unittest 框架进行接口测试 #coding:utf-8import unittestimport jsonimport HtmlTestRunnerfrom requestsdemo import Runmainclass TestMethod(unitte...
2019-08-03 22:57:00
325
转载 python 接口测试
使用django 创建一个post接口和一个get接口 # -*- coding: utf-8 -*-from __future__ import unicode_literalsfrom django.shortcuts import renderfrom django.h...
2019-07-28 23:11:00
60
转载 fiddler 生成证书以及抓取手机请求
Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>cd C:\Users\Administrator\AppData\Local\Prog...
2019-07-28 15:06:00
202
转载 selenium web automation test
import org.openqa.selenium.By;import org.openqa.selenium.JavascriptExecutor;import org.openqa.selenium.WebDriver;import org.openqa.selenium.W...
2019-07-27 17:48:00
148
转载 selenium demo
使用selenium进行站点的登陆操作。 主要是需要熟悉页面元素的定位方式。 可以参考这篇博客熟悉页面元素的定位 package selenium_study;import java.util.List;import org.openqa.selenium.By;i...
2019-07-20 02:27:00
326
转载 Robotframework demo
在Robotframework中,关键字是一个非常重要的存在。其系统关键字都是python中的函数。 *** Settings *** Library DateTime *** Test Cases *** show me time ${date}= Ge...
2019-06-29 13:58:00
285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人