工程師補給站

用一套方法論去設計許多方法來解決工程上遇到的問題。 即 "一生萬法、萬法圓通"。

Recent in Recipes

3/Food/post-list

Selenium 入門

 1. pip3 install selenium (python client package)2. Download chrome Driver and put it at any easy access path  3. Writing an hello Seleni...

自動化測試框架PO/POM設計模式

 以這個框架為範例來理解ETG-AF的架構:1. 你還不明白自動化的POM設計模式,一篇文章統統告訴你!2. 自自动化测试之POM设计模式的原理与实现3. 一个基于POM模式的Web自动化测试框架4. selenium自動化測試框架PO設計模式5. po設計模式在UI自動化測試中的實踐6. 初探自動化測試框架(python)序章——框架結構7. 自動化測試po分層如何實現?8.UI自动化之分层思想pom模式9. Appium PO模型实战Python主講移動端自動化測試框架Appium...

專案管理

&nbs...

編程技巧進階修練 -- Python 篇

1. OOP (物件導向)2. Refactoring (重構並簡化)3. Pythonic Style (善用Python獨門技巧)4. Comprehensive Application(全面的應用範例)1. OOP (物件導向)2. Refactoring (重構並簡化它)3.Pythonic Style (善用Python獨門技巧)4.Comprehensive Application(全面的應用範...

如何 自製 Testing Framework

 先從觀摩開始吧 ...Testing Frameworkchineseluo/app_auto_frame_v1: app自动化:使用pytest、appium、allure搭建,测试交流群:自动化测试-夜行者(816489363))liwanlei/appium-python3: appium UI 自动化测试框架hujunalex1/appium_POCommonDevKnowledge/全面总结国内BATH等大厂开源的安卓有关的库.md at master · AweiLoveAndroid/CommonDevKnowledgeopenatx/uiautomator2:...

DP2 建造者模式 Builder

 1. factory method2. Build...

DP1 抽象工廠 Section1.2 Abstract Factory

 代碼布局(佈陣)1. FrogWorld 和 WizardWorld 代表抽象工廠。因為是Python的關係,所以它把上一階應該要有的Interface約定省略掉了,而透過 make_character 和 make_obstacle 來實作共同的接口。 In a statically typed language, the Abstract Factory would be an abstract class/interface with empty methods, but in Python this is not required because...

DP1 工廠方法 Section1.1 Factory Method

1. 對於代碼分類和包裝的實用技巧,使它看起來簡潔、優雅。2. 透過一個工廠方法(connection_factory)去生成一個(產品)實例,而不是用hardcode的方式去生成一個實例。The connection_factory() function is a Factory Method. It returns an instance of  JSON Connector or XMLConnector depending on the extension of the input file path3.這個方法附帶了生成的條件(if-elif...

OO Class Diagram 類別圖

 UML類圖幾種關係和符號表示筆記UML類圖幾種關係的總結,泛化 = 實現 > 組合 > 聚合 > 關聯 > ...

Pyhton __dunder__

 class中魔法屬性:__module__:獲取模塊名__class__:獲取類名__dict__ :獲取對象或類的屬性,dict形式__dir__:獲取對象或類的屬性,list形式,包括__dict__.__mro__:獲取對象的繼承順序__doc__:獲得對象或函數的描述信息__file__:獲得該文件的名字,其包含路徑信息。class中魔法方法:__init__:對象初始化__new__:開闢空間創建新對象__del__:對象釋放時,自動自行__call__: 對象調用時(obj()),自動執行__str__: 對象轉化為字符信息,以友好的方式便於用戶理解的方式返回字符內容__repr__:...