Tellurium測試案例 Tellurium配置 運行Tellurium的條件 創建自己的Tellurium測試項目 創" name="description" />
自動測試工具Tellurium快速上手指南
Tellurium是一個開源的網頁測試框架,現階段還是建立在Selenium之上。 但有很多獨特的測試理念。 比之Selenium, 維護性,魯棒性, 和可復用性都要好。 它支持JUnit和TestNG。Tellurium的測試代碼可以用Java, Groovy和純DSL腳本來寫.
Tellurium由以下子項目構成:
CQ">
雖然Tellurium脫胎于Selenium,但兩者在概念上有很大的不同。Selenium主要是用記錄和重播(Record and Replay)模式,而Tellurium要求你首先定義待測的UI模塊。下面列出Tellurium的一些主要概念:
Tellurium定義了一些常用的物件,如Button, Table, Form等。
Tellurium物件至少包含以下屬性:
Tellurium物件 | Locator缺省屬性 | 額外屬性 | UI模板 |
Button | tag: "input" | ||
Container | group | ||
CheckBox | tag: "input", type: "checkbox" | ||
Div | tag: "div" | ||
Form | tag: "form" | group | |
Image | tag: "img" | ||
InputBox | tag: "input" | ||
RadioButton | tag: "input", type: "radio" | ||
Selector | tag: "select" | ||
Span | tag: "span" | ||
SubmitButton | tag: "input", type: "submit" | ||
UrlLink | tag: "a" | ||
List | separator | 可用 | |
Table | tag: "table" | group, header | 可用 |
StandardTable | tag: "table" | group, header, footer | 可用 |
Frame | group, id, name, title | ||
Window | group, id, name, title |
值得注意的是Tellurium物件大多為抽象物件,比如Container就可以實用于不同的HTML標簽。每個Tellurium物件都有一個uid,即它的別名。