欧美婷婷六月丁香综合色,成人午夜精品网站在线观看,亚洲视频在线看
360doc--小豬窩969的文章
http://www.gongjishe.com/rssperson/20107535.aspx
360doc (http://www.gongjishe.com)
zh-cn
360doc--個(gè)人圖書館
-
元素定位-查看app控件(weditor)
http://www.gongjishe.com/content/21/0806/17/20107535_989803796.shtml
2021/8/6 17:55:46
元素定位-查看app控件(weditor)d( text = “ Settings ”).click()# drag from (sx, sy) to (ex, ey)d.drag(sx, sy, ex, ey)# drag from (sx, sy) to (ex, ey) with 10 stepsd.drag(sx, sy, ex, ey, steps=10)d(text = “ Settings ”).get_text() # get widget text d(text = “ Settings ”).set_text(“ My text ... ”) #設(shè)置文本 d(text = “ Settings ”).clear_text( ) #清除文字、(8)系統(tǒng)常用按鍵。
-
unittese 運(yùn)行完清除數(shù)據(jù)
http://www.gongjishe.com/content/19/1212/11/20107535_879240827.shtml
2019/12/12 11:28:53
def setUp(self): self.driver = webdriver.def test_baidu_search(self): driver = self.driver driver.get(self.base_url) driver.find_element_by_id("kw").send_keys("HTMLTestRunner") driver.find_element_by_id("su").click() cleanups = (''abcdefg'',''123312'') self.addCleanup(self.abc, cleanups[0], cleanups[1])def tearDown(self): self.driver.quit() print ("This is tearDown")
-
安卓apk客戶端性能測(cè)試
http://www.gongjishe.com/content/19/1211/14/20107535_879061768.shtml
2019/12/11 14:40:27
def __init__(self):def __init__(self, count):self.alldata = [("currenttime", "pasedtime")]def testprocess(self):self.alldata.append((currenttime, elpasedtime))self.counter = self.counter - 1.def getCurrentTime(self):def SaveDataToCSV(self):writer.writerows(self.alldata)self.alldata.append((currenttime, alltraffic))self.alldata.append((currenttime, power))self.alldata.append((currenttime,cpuvalue))
-
python關(guān)鍵字UI自動(dòng)化測(cè)試框架(4)-主運(yùn)行函數(shù)封裝
http://www.gongjishe.com/content/19/1209/11/20107535_878456236.shtml
2019/12/9 11:00:14
def excle_value(self):is_run = self.oper.get_value(i,3)method = self.oper.get_value(i,4)locator = self.oper.get_value(i,5)content = self.oper.get_value(i,6)per = self.oper.get_value(i,7)result = self.run_action(method,content,locator)def run_action(self,method,*args):action_function=getattr(self.action_method,method)log.info(f"成功案例數(shù):{self.True_sum},失敗案例數(shù):{self.false_sum}")
-
python關(guān)鍵字UI自動(dòng)化測(cè)試框架(3)-日志和斷言封裝
http://www.gongjishe.com/content/19/1209/10/20107535_878454812.shtml
2019/12/9 10:54:54
python關(guān)鍵字UI自動(dòng)化測(cè)試框架(3)-日志和斷言封裝。logging 日志封裝==========self.__name = "UI自動(dòng)化執(zhí)行日志"self.logger = logging.getLogger(self.__name)self.logger.setLevel(logging.logname = ''../log/out/''+str(time.time())+''_out.log'' # 指定輸出的日志文件名。# fh = logging.handlers.self.logger.addHandler(fh)self.logger.addHandler(ch)return self.logger.log = Logger(__name__).get_log.
-
python關(guān)鍵字UI自動(dòng)化測(cè)試框架(2)-基類和元素定位封裝
http://www.gongjishe.com/content/19/1209/10/20107535_878454092.shtml
2019/12/9 10:52:07
def open_browser(self,browser = None,*args):self.driver.get(args[0])def element_click(self,*args):def element_send_value(self,*args):self.get_element(args[1]).send_keys(args[0])self.driver.get_screenshot_as_file("../log/screenshot/" +str(int(time.time()))+ args[0] + ".png")self.driver.get_screenshot_as_file("../log/screenshot/" + str(int(time.time())) + f"沒有找到[{elementlocator}]元素" + ".png")
-
python關(guān)鍵字UI自動(dòng)化測(cè)試框架(1)-excle封裝
http://www.gongjishe.com/content/19/1209/10/20107535_878453423.shtml
2019/12/9 10:49:39
python關(guān)鍵字UI自動(dòng)化測(cè)試框架(1)-excle封裝。self.excle = self.get_excle()def get_excle(self):excle = openpyxl.load_workbook(self.path)sheet_data =self.excle.get_sheet_by_name(sheetname)cell_value = self.get_sheet().cell(row=row,column=cell).value.self.get_sheet().cell(row=row, column=cell).value =content.self.excle.save(self.path)
-
influxdb+collectd+grafana構(gòu)建jmeter實(shí)時(shí)監(jiān)控(2)
http://www.gongjishe.com/content/19/1207/11/20107535_878031792.shtml
2019/12/7 11:27:24
influxdb+collectd+grafana構(gòu)建jmeter實(shí)時(shí)監(jiān)控(2)wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.3-1.x86_64.rpm 在線下載Grafana.sudo yum localinstall grafana-xx.rpm 或者yum -y grafana-xx.rpm.稍后我們將要指定 InfluxDB 監(jiān)聽此端口以接收 CollectD 的發(fā)包。
-
APP客戶端性能
http://www.gongjishe.com/content/19/0111/09/20107535_808086639.shtml
2019/1/11 9:21:59
-
Python爬蟲:Scrapy中間件Middleware和Pipeline
http://www.gongjishe.com/content/19/0108/10/20107535_807404681.shtml
2019/1/8 10:14:18
### middleware get spider_data: this is spider data### spider middleware get spider_data: this is spider data### pipeline get spider_data: this is spider data### spdier open baidu_spider### call process_request### call process_response### call process_spider_input### call process_spider_output### spdier close baidu_spider.
-
Scrapy--settings配置
http://www.gongjishe.com/content/19/0104/09/20107535_806418396.shtml
2019/1/4 9:50:13
-
Scrapy的Request和Response詳解
http://www.gongjishe.com/content/19/0103/17/20107535_806288999.shtml
2019/1/3 17:15:09
Scrapy的Request和Response詳解。在用request發(fā)送這個(gè)新的URL請(qǐng)求的時(shí)候,使用parse_item()作為回調(diào)函數(shù),并使用meta傳遞原來已經(jīng)提取的item字段給parse_item()里的responseRequest對(duì)象接受一個(gè)meta參數(shù),一個(gè)字典對(duì)象,同時(shí)Response對(duì)象有一個(gè)meta屬性可以取到相應(yīng)request傳過來的meta一旦此參數(shù)被設(shè)置, 通過參數(shù)傳遞的字典將會(huì)被淺拷貝。
-
Scrapy爬取校花網(wǎng)圖片
http://www.gongjishe.com/content/19/0103/17/20107535_806288701.shtml
2019/1/3 17:13:35
# if url in self.page_set: # pass # #print(u"url已經(jīng)存在") # else: # self.page_set.add(url) #Request scrapy引擎交給調(diào)度器繼續(xù)執(zhí)行 yield Request(url = url,callback = self.parse)class MyPipeline(object): def __init__(self,picture): #self.picture = os.path.join(os.path.dirname(os.path.abspath(__file__)), "img_picture") self.picture = picture #處理爬取的數(shù)據(jù) def process_item(self, item, spider):
-
Scrapy--xpath/css
http://www.gongjishe.com/content/19/0102/15/20107535_806044191.shtml
2019/1/2 15:27:48
Scrapy--xpath/cssxpath使用簡(jiǎn)介 xpath使用路徑表達(dá)式在xml和html中進(jìn)行導(dǎo)航 語法。
-
線程池 --進(jìn)程池 基本操作
http://www.gongjishe.com/content/18/1226/09/20107535_804530277.shtml
2018/12/26 9:42:02
-
協(xié)程+進(jìn)程案例
http://www.gongjishe.com/content/18/1221/10/20107535_803319115.shtml
2018/12/21 10:30:56
-
進(jìn)程池和線程池、協(xié)程
http://www.gongjishe.com/content/18/1218/16/20107535_802671665.shtml
2018/12/18 16:15:33
進(jìn)程池和線程池、協(xié)程。ThreadPool(2)#創(chuàng)建線程池 #p=Process()創(chuàng)建進(jìn)程池 #p.apply(func,args.kwargs) 執(zhí)行進(jìn)程 #p.close() p.jion() requests = threadpool.makeRequests(sayhello,seed)#創(chuàng)建任務(wù) makeRequests(func,args,kwargs) for request in requests: task_pool.putRequest(request)#把任務(wù)put到線程池中 task_pool.wait()#執(zhí)行等待線程池中的線程執(zhí)行完畢。
-
python 進(jìn)度條
http://www.gongjishe.com/content/18/1213/15/20107535_801542722.shtml
2018/12/13 15:26:13
python 進(jìn)度條for i in range(100):print(">",end="",flush = True) #flush默認(rèn)為False ,設(shè)置成True 實(shí)時(shí)打印緩存信息for i in range(10):print("\r"+"<" * i,end = "") #\r默認(rèn)將指針返回到最開始后輸出(在原位置再次輸出)
-
python---list、set、dict、tuple總結(jié)
http://www.gongjishe.com/content/18/1211/15/20107535_801046154.shtml
2018/12/11 15:36:29
-
python--appium手勢(shì)密碼
http://www.gongjishe.com/content/18/1210/16/20107535_800703390.shtml
2018/12/10 16:43:38