-
>
全國計算機等級考試最新真考題庫模擬考場及詳解·二級MSOffice高級應用
-
>
決戰行測5000題(言語理解與表達)
-
>
軟件性能測試.分析與調優實踐之路
-
>
第一行代碼Android
-
>
JAVA持續交付
-
>
EXCEL最強教科書(完全版)(全彩印刷)
-
>
深度學習
Selenium自動化測試指南 版權信息
- ISBN:9787115315342
- 條形碼:9787115315342 ; 978-7-115-31534-2
- 裝幀:一般膠版紙
- 冊數:暫無
- 重量:暫無
- 所屬分類:>
Selenium自動化測試指南 本書特色
selenium是thoughtworks公司開發的web自動化測試工具。selenium可以直接在瀏覽器中運行,支持windows、linux和macintosh平臺上的internet explorer、mozilla和firefox等瀏覽器,得到了廣大web開發和測試人員的應用。 《selenium自動化測試指南》是使用selenium實現web自動化測試的指南。《selenium自動化測試指南》共分為9章。第1章~第2章,介紹了selenium自動化測試相關的基礎知識和輔助工具;第3章~第5章,分別介紹了selenium ide、selenium1(remote control)以及selenium2(webdriver)的用法。第6章~第7章,主要介紹實際工作中如何使用selenium來進行測試,介紹了自動化測試的流程和框架,并通過實例來講解自動化測試用例和測試代碼的實際編寫。第8章~第9章介紹了selenium測試難點和常見問題的解決。 《selenium自動化測試指南》兼顧selenium當前流行和應用的不同版本,包括豐富的示例和圖解。本書適合于測試人員、測試組長、測試經理、質量保證工程師、軟件過程改進人員以及相關專業學生閱讀,以快速掌握并在實際工作中使用selenium。
Selenium自動化測試指南 內容簡介
selenium的特性突出,應用前景看好。相關書籍較少,存在市場空白。
整理了所有個人經驗及其他人在selenium實用過程中的經驗,對一些疑難問題進行說明。在作者所在公司的推廣和培訓中,得到同事的好評。很有實踐指導效果和出版價值。
Selenium自動化測試指南 目錄
第1章 selenium自動化測試基礎 1
1.1 自動化測試基礎 2
1.1.1 軟件測試概述 2
1.1.2 自動化測試簡介 4
1.1.3 selenium簡介 5
1.2 html/xml/xpath基礎 7
1.2.1 html簡介 7
1.2.2 xml簡介 9
1.2.3 使用xpath進行元素定位 10
第2章 **輔助工具 17
2.1 firebug 18
2.2 firepath 22
第3章 selenium ide 25
3.1 selenium ide的安裝 26
3.2 錄制測試用例 27
3.3 編寫測試用例 30
3.4 command 33
3.4.1 action 34
3.4.2 accessor 46
3.4.3 assertion 59
3.5 target 71
3.5.1 identifier定位 71
3.5.2 id定位 72
3.5.3 name定位 73
3.5.4 xpath定位 74
3.5.5 鏈接文字定位 75
3.5.6 dom定位 76
3.5.7 css定位 77
3.5.8 隱式定位 78
3.6 value 78
3.6.1 帶變量的字符串 78
3.6.2 帶javascript的字符串 79
3.7 日志與引用 79
3.8 將命令復制或導出為代碼 80
3.8.1 將命令復制為代碼 80
3.8.2 將命令導出為代碼 82
第4章 selenium 1(remote control) 84
4.1 selenium 1的工作原理 85
4.1.1 selenium 1的組件 85
4.1.2 selenium服務器 86
4.1.3 selenium客戶端庫文件 86
4.2 安裝并使用selenium 86
4.2.1 在c# ide中使用selenium 87
4.2.2 在java ide中使用selenium 92
4.3 下載并啟動selenium服務器 99
4.4 選擇瀏覽器開始測試 100
4.5 瀏覽器導航操作 102
4.5.1 open(url) 102
4.5.2 goback(url) 103
4.5.3 refresh(), windowfocus(), windowmaximize()和close() 104
4.6 操作頁面元素 105
4.6.1 type(locator, value) 105
4.6.2 typekeys(locator, value) 106
4.6.3 click(locator) 107
4.6.4 clickat(locator, coordstring) 107
4.6.5 doubleclick(locator) 108
4.6.6 doubleclickat(locator, coordstring) 108
4.6.7 select(selectlocator, optionlocator) 108
4.6.8 check(locator)/uncheck(locator) 110
4.6.9 focus(locator) 110
4.7 鍵盤鼠標模擬操作 110
4.8 獲取頁面元素的內容 112
4.8.1 gettitle() 112
4.8.2 getlocation() 114
4.8.3 getvalue(locator) 114
4.8.4 iseditable(locator) 115
4.8.5 gettext(locator) 116
4.8.6 ischecked(locator) 118
4.8.7 getselectedindex(selectlocator) 119
4.8.8 getselectedlabel(selectlocator) 121
4.8.9 getselectedvalue(selectlocator) 122
4.8.10 getselectoptions(selectlocator) 123
4.8.11 gettable(tablecell address) 124
4.8.12 getattribute(attributelocator) 126
4.8.13 istextpresent(pattern) 127
4.8.14 iselementpresent(locator) 128
4.8.15 isvisible(locator) 130
4.8.16 getxpathcount(locator) 131
4.9 設置等待 132
4.9.1 waitforpagetoload(timeout) 132
4.9.2 settimeout(timeout) 133
4.9.3 setspeed(value) 133
4.10 測試控制和調試類操作 134
4.10.1 captureentirepage screenshot(filename, kwargs) 134
4.10.2 captureentirepage screenshot(filename) 135
4.10.3 highlight(locator) 136
4.11 javascript彈出對話框的處理 136
4.11.1 isalertpresent() 138
4.11.2 getalert() 139
4.11.3 isconfirmationpresent() 140
4.11.4 getconfirmation() 141
4.11.5 chooseokonnext confirmation()和choose cancelonnext confirmation() 142
4.11.6 ispromptpresent() 142
4.11.7 getprompt() 143
4.11.8 answeronnextprompt(answer) 144
4.12 瀏覽器多窗口處理 144
4.12.1 getallwindowids()、getallwindownames()和getallwindow titles() 145
4.12.2 waitforpopup(windowid, timeout) 148
4.12.3 selectpopup(windowid)和selectwindow(windowid) 149
4.12.4 openwindow(url, windowid) 150
4.13 結束測試 151
4.13.1 close()和stop() 151
4.13.2 shutdownselenium server() 152
第5章 selenium 2(webdriver) 153
5.1 selenium 2基于對象的測試 154
5.2 安裝并引用selenium 2 155
5.2.1 在c# ide中使用selenium 156
5.2.2 在java ide中使用selenium 160
5.3 選擇瀏覽器開始測試 166
5.4 瀏覽器導航對象navigation 169
5.4.1 gotourl()/to() 169
5.4.2 back()/forward() 170
5.4.3 refresh() 172
5.5 查找條件對象by 173
5.5.1 id(idtofind) 173
5.5.2 name(nametofind) 175
5.5.3 linktext(linktext tofind) 175
5.5.4 partiallinktext(partial linktexttofind) 176
5.5.5 classname(classname tofind) 177
5.5.6 tagname(tagname tofind) 178
5.5.7 xpath(xpathtofind) 179
5.6 操作頁面元素webelement 179
5.6.1 click() 180
5.6.2 sendkeys(text) 183
5.6.3 clear() 184
5.6.4 submit() 185
5.7 獲取頁面及頁面元素的內容 187
5.7.1 title/gettitle() 187
5.7.2 url/getcurrenturl() 188
5.7.3 text/gettext() 189
5.7.4 selected/isselected() 190
5.7.5 tagname/gettagname() 191
5.7.6 enabled/isenabled() 192
5.7.7 displayed/isdisplayed() 193
5.7.8 getattribute(attribute name) 194
5.8 彈出對話框的處理 195
5.8.1 accept() 197
5.8.2 dismiss() 198
5.8.3 sendkeys(keystosend) 200
5.8.4 text/gettext() 201
5.9 瀏覽器多窗口處理 202
5.9.1 windowhandles/get windowhandles() 203
5.9.2 window(windowname) 204
5.10 設置管理 205
5.10.1 cookies/getcookies() 206
5.10.2 window/window() 210
5.10.3 timeouts() 212
5.11 為測試操作添加事件 213
5.11.1 在c#中使用event firingwebdriver 214
5.11.2 在java中使用event firingwebdriver 219
5.12 結束測試 225
第6章 自動化測試的流程和框架 229
6.1 自動化測試的流程 230
6.2 自動化測試框架 232
第7章 自動化測試的實施 236
7.1 設計自動化測試用例 237
7.1.1 登錄功能的用例設計 237
7.1.2 搜索商品功能的用例設計 238
7.1.3 購買商品功能的用例設計 242
7.2 編寫自動化測試代碼 245
7.2.1 登錄功能的測試代碼 245
7.2.2 搜索商品功能的測試代碼 252
7.2.3 購買商品功能的測試代碼 262
7.3 設計自動化測試數據 268
7.3.1 登錄功能的數據 268
7.3.2 搜索商品功能的數據 269
7.3.3 購買商品功能的數據 271
第8章 selenium測試進階 272
8.1 opera/iphone/android測試 273
8.1.1 opera測試 273
8.1.2 iphone測試 276
8.1.3 android測試 279
8.2 selenium 1與selenium 2的切換 282
8.2.1 從selenium 1切換到selenium 2 282
8.2.2 從selenium 2切換到selenium 1 287
8.3 對selenium進行擴展 287
8.3.1 對selenium ide應用擴展 290
8.3.2 對selenium 1應用擴展 290
8.3.3 對selenium 2應用擴展 292
第9章 使用selenium常見的問題 294
9.1 使用selenium ide常見的問題 295
9.2 使用selenium 1常見的問題 296
9.3 使用selenium 2常見的問題 301
Selenium自動化測試指南 節選
Selenium的特性突出,應用前景看好。相關書籍較少,存在市場空白。整理了所有個人經驗及其他人在Selenium實用過程中的經驗,對一些疑難問題進行說明。在作者所在公司的推廣和培訓中,得到同事的好評。很有實踐指導效果和出版價值。
Selenium自動化測試指南 作者簡介
趙卓,軟件開發出身,項目開發經驗豐富,同時兼修各種自動化測試技術。第4 屆中國成都國際軟件設計大賽“最佳設計獎”得主。譯作有《Visual Studio 2010 軟件測試指南》和《快速編碼: 高效使用Microsoft Visual Studio》。現就職于新蛋中國,負責推動整個部門的自動化測試。
- >
月亮與六便士
- >
苦雨齋序跋文-周作人自編集
- >
名家帶你讀魯迅:朝花夕拾
- >
煙與鏡
- >
回憶愛瑪儂
- >
姑媽的寶刀
- >
中國人在烏蘇里邊疆區:歷史與人類學概述
- >
伯納黛特,你要去哪(2021新版)