Selenium自动化测试指南

Selenium自动化测试指南
分享
扫描下方二维码分享到微信
打开微信,点击右上角”+“,
使用”扫一扫“即可将网页分享到朋友圈。
作者:
2013-09
版次: 1
ISBN: 9787115315342
定价: 42.00
装帧: 平装
开本: 16开
纸张: 胶版纸
页数: 302页
字数: 390千字
正文语种: 简体中文
45人买过
  •   《软件测试丛书:Selenium自动化测试指南》是使用Selenium实现Web自动化测试的指南。《Selenium自动化测试指南》共分为9章。第1章~第2章,介绍了Selenium自动化测试相关的基础知识和辅助工具;第3章~第5章,分别介绍了SeleniumIDE、Selenium1(RemoteControL)以及Selenium2(WebDriver)的用法。第6章~第7章,主要介绍实际工作中如何使用Selenium来进行测试,介绍了自动化测试的流程和框架,并通过实例来讲解自动化测试用例和测试代码的实际编写。第8章~第9章介绍了Selenium测试难点和常见问题的解决。
      《软件测试丛书:Selenium自动化测试指南》兼顾Selenium当前流行和应用的不同版本,包括丰富的示例和图解。本书适合于测试人员、测试组长、测试经理、质量保证工程师、软件过程改进人员以及相关专业学生阅读,以快速掌握并在实际工作中使用Selenium。 赵卓,软件开发出身,项目开发经验丰富,同时兼修各种自动化测试技术。第4届中国成都国际软件设计大赛“上佳设计奖”得主。译作有《VisualStudio2010软件测试指南》和《快速编码:高效使用MicrosoftVisualStudio》。现就职于新蛋中国,负责推动整个部门的自动化测试。 第1章Selenium自动化测试基础
    1.1自动化测试基础
    1.1.1软件测试概述
    1.1.2自动化测试简介
    1.1.3Selenium简介
    1.2HTML/XML/XPath基础
    1.2.1HTML简介
    1.2.2XML简介
    1.2.3使用XPath进行元素定位

    第2章必备辅助工具
    2.1FireBug
    2.2FirePath

    第3章SeleniumIDE
    3.1SeleniumIDE的安装
    3.2录制测试用例
    3.3编写测试用例
    3.4Command
    3.4.1Action
    3.4.2Accessor
    3.4.3Assertion
    3.5Target
    3.5.1identifier定位
    3.5.2id定位
    3.5.3name定位
    3.5.4XPath定位
    3.5.5链接文字定位
    3.5.6DOM定位
    3.5.7CSS定位
    3.5.8隐式定位
    3.6Value
    3.6.1带变量的字符串
    3.6.2带JavaScript的字符串
    3.7日志与引用
    3.8将命令复制或导出为代码
    3.8.1将命令复制为代码
    3.8.2将命令导出为代码

    第4章Selenium1(RemoteControl)
    4.1Selenium1的工作原理
    4.1.1Selenium1的组件
    4.1.2Selenium服务器
    4.1.3Selenium客户端库文件
    4.2安装并使用Selenium
    4.2.1在C#IDE中使用Selenium
    4.2.2在JavaIDE中使用Selenium
    4.3下载并启动Selenium服务器
    4.4选择浏览器开始测试
    4.5浏览器导航操作
    4.5.1Open(url)
    4.5.2GoBack(url)
    4.5.3Refresh,WindowFocus,WindowMaximize和Close
    4.6操作页面元素
    4.6.1Type(locator,value)
    4.6.2TypeKeys(locator,value)
    4.6.3Click(locator)
    4.6.4ClickAt(locator,coordString)
    4.6.5doubleClick(locator)
    4.6.6doubleClickAt(locator,coordString)
    4.6.7Select(selectLocator,optionLocator)
    4.6.8check(locator)/unCheck(locator)
    4.6.9focus(locator)
    4.7键盘鼠标模拟操作
    4.8获取页面元素的内容
    4.8.1getTitle
    4.8.2getLocation
    4.8.3getValue(locator)
    4.8.4IsEditable(locator)
    4.8.5getText(locator)
    4.8.6isChecked(locator)
    4.8.7getSelectedIndex(selectLocator)
    4.8.8getSelectedLabel(selectLocator)
    4.8.9getSelectedValue(selectLocator)
    4.8.10getSelectOptions(selectLocator)
    4.8.11getTable(tableCellAddress)
    4.8.12getAttribute(attributeLocator)
    4.8.13isTextPresent(pattern)
    4.8.14isElementPresent(locator)
    4.8.15isVisible(locator)
    4.8.16getXpathCount(locator)
    4.9设置等待
    4.9.1WaitForPageToLoad(timeout)
    4.9.2setTimeOut(timeout)
    4.9.3setSpeed(value)
    4.10测试控制和调试类操作
    4.10.1captureEntirePageScreenshot(filename,kwargs)
    4.10.2captureEntirePageScreenshot(filename)
    4.10.3highlight(locator)
    4.11JavaScript弹出对话框的处理
    4.11.1IsAlertPresent
    4.11.2GetAlert
    4.11.3IsConfirmationPresent
    4.11.4GetConfirmation
    4.11.5ChooseOkOnNextConfirmation和ChooseCancelOnNextConfirmation
    4.11.6IsPromptPresent
    4.11.7GetPrompt
    4.11.8AnswerOnNextPrompt(answer)
    4.12浏览器多窗口处理
    4.12.1GetAllWindowIds、GetAllWindowNames和GetAllWindowTitles
    4.12.2WaitForPopUp(windowID,timeout)
    4.12.3SelectPopUp(windowID)和SelectWindow(windowID)
    4.12.4OpenWindow(url,windowID)
    4.13结束测试
    4.13.1Close和Stop
    4.13.2shutDownSeleniumServer

    第5章Selenium2(WebDriver)
    5.1Selenium2——基于对象的测试
    5.2安装并引用Selenium
    5.2.1在C#IDE中使用Selenium
    5.2.2在JavaIDE中使用Selenium
    5.3选择浏览器开始测试
    5.4浏览器导航对象Navigation
    5.4.1GoToUrl/to
    5.4.2Back/Forward
    5.4.3Refresh
    5.5查找条件对象By
    5.5.1Id(idToFind)
    5.5.2Name(nameToFind)
    5.5.3LinkText(linkTextToFind)
    5.5.4PartialLinkText(partialLinkTextToFind)
    5.5.5ClassName(classNameToFind)
    5.5.6TagName(TagNameToFind)
    5.5.7XPath(xPathToFind)
    5.6操作页面元素WebElement
    5.6.1Click
    5.6.2SendKeys(text)
    5.6.3Clear
    5.6.4Submit
    5.7获取页面及页面元素的内容
    5.7.1Title/getTitle
    5.7.2Url/getCurrentUrl
    5.7.3Text/getText
    5.7.4Selected/isSelected
    5.7.5TagName/getTagName
    5.7.6Enabled/isEnabled
    5.7.7Displayed/isDisplayed
    5.7.8GetAttribute(attributeName)
    5.8弹出对话框的处理
    5.8.1Accept
    5.8.2Dismiss
    5.8.3SendKeys(keysToSend)
    5.8.4Text/getText
    5.9浏览器多窗口处理
    5.9.1WindowHandles/getWindowHandles
    5.9.2Window(windowName)
    5.10设置管理
    5.10.1Cookies/getCookies
    5.10.2Window/window
    5.10.3Timeouts
    5.11为测试操作添加事件
    5.11.1在C#中使用EventFiringWebDriver
    5.11.2在Java中使用EventFiringWebDriver
    5.12结束测试

    第6章自动化测试的流程和框架
    6.1自动化测试的流程
    6.2自动化测试框架

    第7章自动化测试的实施
    7.1设计自动化测试用例
    7.1.1登录功能的用例设计
    7.1.2搜索商品功能的用例设计
    7.1.3购买商品功能的用例设计
    7.2编写自动化测试代码
    7.2.1登录功能的测试代码
    7.2.2搜索商品功能的测试代码
    7.2.3购买商品功能的测试代码
    7.3设计自动化测试数据
    7.3.1登录功能的数据
    7.3.2搜索商品功能的数据
    7.3.3购买商品功能的数据

    第8章Selenium测试进阶
    8.1Opera/iPhone/Android测试
    8.1.1Opera测试
    8.1.2iPhone测试
    8.1.3Android测试
    8.2Selenium1与Selenium2的切换
    8.2.1从Selenium1切换到Selenium1
    8.2.2从Selenium2切换到Selenium2
    8.3对Selenium进行扩展
    8.3.1对SeleniumIDE应用扩展
    8.3.2对Selenium1应用扩展
    8.3.3对Selenium2应用扩展

    第9章使用Selenium常见的问题
    9.1使用SeleniumIDE常见的问题
    9.2使用Selenium1常见的问题
    9.3使用Selenium2常见的问题
  • 内容简介:
      《软件测试丛书:Selenium自动化测试指南》是使用Selenium实现Web自动化测试的指南。《Selenium自动化测试指南》共分为9章。第1章~第2章,介绍了Selenium自动化测试相关的基础知识和辅助工具;第3章~第5章,分别介绍了SeleniumIDE、Selenium1(RemoteControL)以及Selenium2(WebDriver)的用法。第6章~第7章,主要介绍实际工作中如何使用Selenium来进行测试,介绍了自动化测试的流程和框架,并通过实例来讲解自动化测试用例和测试代码的实际编写。第8章~第9章介绍了Selenium测试难点和常见问题的解决。
      《软件测试丛书:Selenium自动化测试指南》兼顾Selenium当前流行和应用的不同版本,包括丰富的示例和图解。本书适合于测试人员、测试组长、测试经理、质量保证工程师、软件过程改进人员以及相关专业学生阅读,以快速掌握并在实际工作中使用Selenium。
  • 作者简介:
    赵卓,软件开发出身,项目开发经验丰富,同时兼修各种自动化测试技术。第4届中国成都国际软件设计大赛“上佳设计奖”得主。译作有《VisualStudio2010软件测试指南》和《快速编码:高效使用MicrosoftVisualStudio》。现就职于新蛋中国,负责推动整个部门的自动化测试。
  • 目录:
    第1章Selenium自动化测试基础
    1.1自动化测试基础
    1.1.1软件测试概述
    1.1.2自动化测试简介
    1.1.3Selenium简介
    1.2HTML/XML/XPath基础
    1.2.1HTML简介
    1.2.2XML简介
    1.2.3使用XPath进行元素定位

    第2章必备辅助工具
    2.1FireBug
    2.2FirePath

    第3章SeleniumIDE
    3.1SeleniumIDE的安装
    3.2录制测试用例
    3.3编写测试用例
    3.4Command
    3.4.1Action
    3.4.2Accessor
    3.4.3Assertion
    3.5Target
    3.5.1identifier定位
    3.5.2id定位
    3.5.3name定位
    3.5.4XPath定位
    3.5.5链接文字定位
    3.5.6DOM定位
    3.5.7CSS定位
    3.5.8隐式定位
    3.6Value
    3.6.1带变量的字符串
    3.6.2带JavaScript的字符串
    3.7日志与引用
    3.8将命令复制或导出为代码
    3.8.1将命令复制为代码
    3.8.2将命令导出为代码

    第4章Selenium1(RemoteControl)
    4.1Selenium1的工作原理
    4.1.1Selenium1的组件
    4.1.2Selenium服务器
    4.1.3Selenium客户端库文件
    4.2安装并使用Selenium
    4.2.1在C#IDE中使用Selenium
    4.2.2在JavaIDE中使用Selenium
    4.3下载并启动Selenium服务器
    4.4选择浏览器开始测试
    4.5浏览器导航操作
    4.5.1Open(url)
    4.5.2GoBack(url)
    4.5.3Refresh,WindowFocus,WindowMaximize和Close
    4.6操作页面元素
    4.6.1Type(locator,value)
    4.6.2TypeKeys(locator,value)
    4.6.3Click(locator)
    4.6.4ClickAt(locator,coordString)
    4.6.5doubleClick(locator)
    4.6.6doubleClickAt(locator,coordString)
    4.6.7Select(selectLocator,optionLocator)
    4.6.8check(locator)/unCheck(locator)
    4.6.9focus(locator)
    4.7键盘鼠标模拟操作
    4.8获取页面元素的内容
    4.8.1getTitle
    4.8.2getLocation
    4.8.3getValue(locator)
    4.8.4IsEditable(locator)
    4.8.5getText(locator)
    4.8.6isChecked(locator)
    4.8.7getSelectedIndex(selectLocator)
    4.8.8getSelectedLabel(selectLocator)
    4.8.9getSelectedValue(selectLocator)
    4.8.10getSelectOptions(selectLocator)
    4.8.11getTable(tableCellAddress)
    4.8.12getAttribute(attributeLocator)
    4.8.13isTextPresent(pattern)
    4.8.14isElementPresent(locator)
    4.8.15isVisible(locator)
    4.8.16getXpathCount(locator)
    4.9设置等待
    4.9.1WaitForPageToLoad(timeout)
    4.9.2setTimeOut(timeout)
    4.9.3setSpeed(value)
    4.10测试控制和调试类操作
    4.10.1captureEntirePageScreenshot(filename,kwargs)
    4.10.2captureEntirePageScreenshot(filename)
    4.10.3highlight(locator)
    4.11JavaScript弹出对话框的处理
    4.11.1IsAlertPresent
    4.11.2GetAlert
    4.11.3IsConfirmationPresent
    4.11.4GetConfirmation
    4.11.5ChooseOkOnNextConfirmation和ChooseCancelOnNextConfirmation
    4.11.6IsPromptPresent
    4.11.7GetPrompt
    4.11.8AnswerOnNextPrompt(answer)
    4.12浏览器多窗口处理
    4.12.1GetAllWindowIds、GetAllWindowNames和GetAllWindowTitles
    4.12.2WaitForPopUp(windowID,timeout)
    4.12.3SelectPopUp(windowID)和SelectWindow(windowID)
    4.12.4OpenWindow(url,windowID)
    4.13结束测试
    4.13.1Close和Stop
    4.13.2shutDownSeleniumServer

    第5章Selenium2(WebDriver)
    5.1Selenium2——基于对象的测试
    5.2安装并引用Selenium
    5.2.1在C#IDE中使用Selenium
    5.2.2在JavaIDE中使用Selenium
    5.3选择浏览器开始测试
    5.4浏览器导航对象Navigation
    5.4.1GoToUrl/to
    5.4.2Back/Forward
    5.4.3Refresh
    5.5查找条件对象By
    5.5.1Id(idToFind)
    5.5.2Name(nameToFind)
    5.5.3LinkText(linkTextToFind)
    5.5.4PartialLinkText(partialLinkTextToFind)
    5.5.5ClassName(classNameToFind)
    5.5.6TagName(TagNameToFind)
    5.5.7XPath(xPathToFind)
    5.6操作页面元素WebElement
    5.6.1Click
    5.6.2SendKeys(text)
    5.6.3Clear
    5.6.4Submit
    5.7获取页面及页面元素的内容
    5.7.1Title/getTitle
    5.7.2Url/getCurrentUrl
    5.7.3Text/getText
    5.7.4Selected/isSelected
    5.7.5TagName/getTagName
    5.7.6Enabled/isEnabled
    5.7.7Displayed/isDisplayed
    5.7.8GetAttribute(attributeName)
    5.8弹出对话框的处理
    5.8.1Accept
    5.8.2Dismiss
    5.8.3SendKeys(keysToSend)
    5.8.4Text/getText
    5.9浏览器多窗口处理
    5.9.1WindowHandles/getWindowHandles
    5.9.2Window(windowName)
    5.10设置管理
    5.10.1Cookies/getCookies
    5.10.2Window/window
    5.10.3Timeouts
    5.11为测试操作添加事件
    5.11.1在C#中使用EventFiringWebDriver
    5.11.2在Java中使用EventFiringWebDriver
    5.12结束测试

    第6章自动化测试的流程和框架
    6.1自动化测试的流程
    6.2自动化测试框架

    第7章自动化测试的实施
    7.1设计自动化测试用例
    7.1.1登录功能的用例设计
    7.1.2搜索商品功能的用例设计
    7.1.3购买商品功能的用例设计
    7.2编写自动化测试代码
    7.2.1登录功能的测试代码
    7.2.2搜索商品功能的测试代码
    7.2.3购买商品功能的测试代码
    7.3设计自动化测试数据
    7.3.1登录功能的数据
    7.3.2搜索商品功能的数据
    7.3.3购买商品功能的数据

    第8章Selenium测试进阶
    8.1Opera/iPhone/Android测试
    8.1.1Opera测试
    8.1.2iPhone测试
    8.1.3Android测试
    8.2Selenium1与Selenium2的切换
    8.2.1从Selenium1切换到Selenium1
    8.2.2从Selenium2切换到Selenium2
    8.3对Selenium进行扩展
    8.3.1对SeleniumIDE应用扩展
    8.3.2对Selenium1应用扩展
    8.3.3对Selenium2应用扩展

    第9章使用Selenium常见的问题
    9.1使用SeleniumIDE常见的问题
    9.2使用Selenium1常见的问题
    9.3使用Selenium2常见的问题
查看详情
相关图书 / 更多
Selenium自动化测试指南
Selenium 4 自动化测试项目实战:基于 Python 3
田春成
Selenium自动化测试指南
Seeing What Others Don\'t The Remarkable Ways We Gain Insights
Klein;Gary
Selenium自动化测试指南
Self-Knowledge
Gertler;Brie
Selenium自动化测试指南
Sebastiao Salgado: Children
Salgado;Sebastiao;Salgado;Lelia Wanick
Selenium自动化测试指南
Sets of Finite Perimeter and Geometric Variational Problems: An Introduction to Geometric Measure Theory
Maggi;Francesco
Selenium自动化测试指南
Selling to Win
Denny;Richard
Selenium自动化测试指南
Self-Sufficient Housing: 1st Advanced Architecture Contest
Iaac
Selenium自动化测试指南
Self-Working Rope Magic 70 Foolproof Tricks
Fulves;Karl
Selenium自动化测试指南
Serverless学习手册
[美]杰森 卡茨(Jason Katzer)
Selenium自动化测试指南
Several Complex Variables
Narasimhan;Raghavan
Selenium自动化测试指南
Self-Help: With Illustrations of Character, Conduct, and Perseverance
Smiles;Samuel;Jr.;Sinnema;Peter W
Selenium自动化测试指南
See Me
Sparks;Nicholas
您可能感兴趣 / 更多