上一页 1 ··· 137 138 139 140 141 142 143 144 145 ··· 204 下一页
摘要: 火狐浏览器打开: import org.openqa.selenium.firefox.FirefoxDriver; //导入火狐驱动包 System.setProperty("webdriver.firefox.bin","C:\\Program Files (x86)\\Mozilla Fire 阅读全文
posted @ 2020-04-21 14:53 小白龙白龙马 阅读(197) 评论(0) 推荐(0)
摘要: Request库方法介绍 方法 说明 requests.request() 构造一个请求,支撑一下各方法的基础方法 requests.get() 获取HTML网页的主要方法,对应于HTTP的GET requests.head() 获取HTML网页头信息的方法,对应于HTTP的HEAD request 阅读全文
posted @ 2020-04-12 23:58 小白龙白龙马 阅读(486) 评论(0) 推荐(0)
摘要: import requestsurls = 'http://httpbin.org/get'a='k1'b='v1'c='k2'd='v2'response = requests.get(url=urls, params={a: b,c:d})print(response.status_code)p 阅读全文
posted @ 2020-04-08 19:43 小白龙白龙马 阅读(296) 评论(0) 推荐(0)
摘要: import unittest from ddt import ddt, data, unpack import requests test_data = [['xs', 'xs01', 'xs02','xs03'], ['cs', 'cs01', 'cs02', 'cs03'], ['cr', ' 阅读全文
posted @ 2020-04-07 01:13 小白龙白龙马 阅读(383) 评论(0) 推荐(0)
摘要: import os import configparser proDir = os.path.split(os.path.realpath(__file__))[0] configPath = os.path.join(proDir, "xs.ini") class ReadConfig(): de 阅读全文
posted @ 2020-04-06 19:15 小白龙白龙马 阅读(265) 评论(0) 推荐(0)
摘要: import os import configparser proDir = os.path.split(os.path.realpath(__file__))[0] configPath = os.path.join(proDir, "xs.ini") class ReadConfig(): de 阅读全文
posted @ 2020-04-06 19:10 小白龙白龙马 阅读(246) 评论(0) 推荐(0)
摘要: package jkcs; import java.util.Properties; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.WebDriver; import java.io.File 阅读全文
posted @ 2020-04-06 15:19 小白龙白龙马 阅读(262) 评论(0) 推荐(0)
摘要: package jkcs; import java.util.Properties; import java.io.FileInputStream; public class dqpzwj { public static void main(String[] args) { // TODO Auto 阅读全文
posted @ 2020-04-06 14:13 小白龙白龙马 阅读(351) 评论(0) 推荐(0)
摘要: 在run_all.py中编写如下脚本: # cording:utf-8 import unittest import os from common import HTMLTestRunner_cn #os.path.dirname: 获取当前文件所在的文件夹路径。 os.path.realpath( 阅读全文
posted @ 2020-04-04 18:09 小白龙白龙马 阅读(223) 评论(0) 推荐(0)
摘要: import unittest from selenium import webdriver from ddt import ddt,data,unpack import time from aaa import readxls test_data = readxls() @ddt class Te 阅读全文
posted @ 2020-04-04 15:53 小白龙白龙马 阅读(198) 评论(0) 推荐(0)
上一页 1 ··· 137 138 139 140 141 142 143 144 145 ··· 204 下一页