"Integrated practice on the subject of software engineering," the Fifth jobs - software testing tools

 

Open source automated testing tool function Selenium 

1 Introduction

Selenium is booming set of web application development a complete test system. Selenium tests run directly in the browser, just as real users in the same operation. Its main functions include: test browser compatibility - Test your application to see if the well had to work on different browsers and operating systems. Test system functions - create regression testing test software functionality and user requirements. It supports automatic recording operation and automatically generated. Selenium core Selenium Core Based JsUnit, written entirely in JavaScript, it can run on any JavaScript-enabled browsers, including IE, Mozilla Firefox, Chrome, Safari and so on.

2.Selenium IDE download the

   2.1 Selenium IDE download installation

With Firefox open https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/ , open and current firefox compatible version of the Selenium IDE , click on the " the Add to firefox ."

After successful installation, you can in firefox see the toolbar Selenium ide logo.

  2.2 Selenium IDE Features

Click to open the Selenium IDE

工具栏,分别为:全部执行、单步执行、逐步执行、速度控制、录制

测试用例面板:录制脚本会在显示在这里。

Command、Target和Value输入字段显示当前选择的命令及其参数。这些是可以修改当前选择的命令的输入字段。在底部窗格的Reference选项卡中指定用于命令的第一个参数总是位于Target字段中。如果第二个参数由Reference选项卡指定,则它总是位于Value字段中。注释字段(Comment)允许你给当前命令添加注释,方便日后阅读。
 

导航面板:

控制台面板:当运行测试用例时,显示进度的错误消息和信息消息会自动显示在这个窗格中,即使不首先选择Log选项卡。这些消息通常用于测试用例调试。注意清除日志的清除按钮。

 

 

  2.3Selenium IDE 的测试使用

创建一个新的工程1.5test,点击“Record a new test in a new project

输入要测试的网站,这次举例测试 腾讯视频。

点击START RECORDING”后,跳转出腾讯视频的页面,可以看到页面的右下角有“Selenium IDE is recording”的字样,说明测试已经开始录制。

右侧是录制脚本

进行一系列测试操作后,点击右边的红色结束标志,保存测试并命名标记,例如:视频播放测试

点击添加,继续测试。

最后保存project

 

3.小结心得

      软件测试工具是通过一些工具能够使软件的一些简单问题直观的显示在读者的面前,这样能使测试人员更好的找出软件错误的所在。自动化软件测试工具存在的价值是为了提高测试效率,用软件来代替一些人工输入。一个好的软件测试工具和测试管理工具结合起来使用将会使软件测试效率大大的提高。软件测试工具的学习让我更理解软件质量的重要性。当然现在只是我对软件测试的了解皮层,在以后的学习中一定要多看书,首先要有更多的理论知识,再将其运用到实践当中,两者结合,才能将自己本身的潜能发挥出来。

 

Guess you like

Origin www.cnblogs.com/luxe/p/10960309.html