请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

QATNT-促进软件质量领域最佳智慧分享

 找回密码
 立即注册

QQ登录

只需一步,快速开始

倍安康腰椎治疗仪

鸡尾普洱茶

查看: 2188|回复: 0

Web测试:国外完整的Web应用测试指南-连同翻译稿

[复制链接]

1089

主题

0

好友

4757

积分

管理员

Rank: 9Rank: 9Rank: 9

听众数
0
积分
4757
威望
-12
金钱
3173
贡献
90
精华
21
分享
3
日志
0
记录
2
相册
0
帖子
1413
主题
1089
好友
0

最佳新人 活跃会员 热心会员 推广达人 宣传达人 灌水之王 突出贡献 优秀版主 荣誉管理 论坛元老

发表于 2013-8-11 22:37:26 |显示全部楼层
Web Testing: Complete guide on testing web applications

In my previous post I have outlined points to be considered while testing web applications. Here we will see some more details on web application testing with web testing test cases. Let me tell you one thing that I always like to share practical knowledge, which can be useful to users in their career life. This is a quite long article so sit back and get relaxed to get most out of it.
Let’s have first web testing checklist.
1) Functionality Testing
2) Usability testing
3) Interface testing
4) Compatibility testing
5) Performance testing
6) Security testing
1) Functionality Testing:
Test for – all the links in web pages, database connection, forms used in the web pages for submitting or getting information from user, Cookie testing.
Check all the links:
  • Test the outgoing links from all the pages from specific domain under test.
  • Test all internal links.
  • Test links jumping on the same pages.
  • Test links used to send the email to admin or other users from web pages.
  • Test to check if there are any orphan pages.
  • Lastly in link checking, check for broken links in all above-mentioned links.
Test forms in all pages:
Forms are the integral part of any web site. Forms are used to get information from users and to keep interaction with them. So what should be checked on these forms?
  • First check all the validations on each field.
  • Check for the default values of fields.
  • Wrong inputs to the fields in the forms.
  • Options to create forms if any, form delete, view or modify the forms.
Let’s take example of the search engine project currently I am working on, In this project we have advertiser and affiliate signup steps. Each sign up step is different but dependent on other steps. So sign up flow should get executed correctly. There are different field validations like email Ids, User financial info validations. All these validations should get checked in manual or automated web testing.
Cookies testing:
Cookies are small files stored on user machine. These are basically used to maintain the session mainly login sessions. Test the application by enabling or disabling the cookies in your browser options. Test if the cookies are encrypted before writing to user machine. If you are testing the session cookies (i.e. cookies expire after the sessions ends) check for login sessions and user stats after session end. Check effect on application security by deleting the cookies. (I will soon write separate article on cookie testing)
Validate your HTML/CSS:
If you are optimizing your site for Search engines then HTML/CSS validation is very important. Mainly validate the site for HTML syntax errors. Check if site is crawlable to different search engines.
Database testing:
Data consistency is very important in web application. Check for data integrity and errors while you edit, delete, modify the forms or do any DB related functionality.
Check if all the database queries are executing correctly, data is retrieved correctly and also updated correctly. More on database testing could be load on DB, we will address this in web load or performance testing below.
2) Usability Testing:
Test for navigation:
Navigation means how the user surfs the web pages, different controls like buttons, boxes or how user using the links on the pages to surf different pages.
Usability testing includes:
Web site should be easy to use. Instructions should be provided clearly. Check if the provided instructions are correct means whether they satisfy purpose.
Main menu should be provided on each page. It should be consistent.
Content checking:
Content should be logical and easy to understand. Check for spelling errors. Use of dark colors annoys users and should not be used in site theme. You can follow some standards that are used for web page and content building. These are common accepted standards like as I mentioned above about annoying colors, fonts, frames etc.
Content should be meaningful. All the anchor text links should be working properly. Images should be placed properly with proper sizes.
These are some basic standards that should be followed in web development. Your task is to validate all for UI testing
Other user information for user help:
Like search option, sitemap, help files etc. Sitemap should be present with all the links in web sites with proper tree view of navigation. Check for all links on the sitemap.
“Search in the site” option will help users to find content pages they are looking for easily and quickly. These are all optional items and if present should be validated.
3) Interface Testing:
The main interfaces are:
Web server and application server interface
Application server and Database server interface.
Check if all the interactions between these servers are executed properly. Errors are handled properly. If database or web server returns any error message for any query by application server then application server should catch and display these error messages appropriately to users. Check what happens if user interrupts any transaction in-between? Check what happens if connection to web server is reset in between?
4) Compatibility Testing:
Compatibility of your web site is very important testing aspect. See which compatibility test to be executed:
  • Browser compatibility
  • Operating system compatibility
  • Mobile browsing
  • Printing options
Browser compatibility:
In my web-testing career I have experienced this as most influencing part on web site testing.
Some applications are very dependent on browsers. Different browsers have different configurations and settings that your web page should be compatible with. Your web site coding should be cross browser platform compatible. If you are using java scripts or AJAX calls for UI functionality, performing security checks or validations then give more stress on browser compatibility testing of your web application.
Test web application on different browsers like Internet explorer, Firefox, Netscape navigator, AOL, Safari, Opera browsers with different versions.
OS compatibility:
Some functionality in your web application is may not be compatible with all operating systems. All new technologies used in web development like graphics designs, interface calls like different API’s may not be available in all Operating Systems.
Test your web application on different operating systems like Windows, Unix, MAC, Linux, Solaris with different OS flavors.
Mobile browsing:
This is new technology age. So in future Mobile browsing will rock. Test your web pages on mobile browsers. Compatibility issues may be there on mobile.
Printing options:
If you are giving page-printing options then make sure fonts, page alignment, page graphics getting printed properly. Pages should be fit to paper size or as per the size mentioned in printing option.
5) Performance testing:
Web application should sustain to heavy load. Web performance testing should include:
Web Load Testing
Web Stress Testing
Test application performance on different internet connection speed.
In web load testing test if many users are accessing or requesting the same page. Can system sustain in peak load times? Site should handle many simultaneous user requests, large input data from users, Simultaneous connection to DB, heavy load on specific pages etc.
Stress testing: Generally stress means stretching the system beyond its specification limits. Web stress testing is performed to break the site by giving stress and checked how system reacts to stress and how system recovers from crashes.
Stress is generally given on input fields, login and sign up areas.
In web performance testing web site functionality on different operating systems, different hardware platforms is checked for software, hardware memory leakage errors,
6) Security Testing:
Following are some test cases for web security testing:
  • Test by pasting internal url directly into browser address bar without login. Internal pages should not open.
  • If you are logged in using username and password and browsing internal pages then try changing url options directly. I.e. If you are checking some publisher site statistics with publisher site ID= 123. Try directly changing the url site ID parameter to different site ID which is not related to logged in user. Access should denied for this user to view others stats.
  • Try some invalid inputs in input fields like login username, password, input text boxes. Check the system reaction on all invalid inputs.
  • Web directories or files should not be accessible directly unless given download option.
  • Test the CAPTCHA for automates scripts logins.
  • Test if SSL is used for security measures. If used proper message should get displayed when user switch from non-secure http:// pages to secure https:// pages and vice versa.
  • All transactions, error messages, security breach attempts should get logged in log files somewhere on web server.
翻译如下
在我的前一篇文章中,我已经概述点时要考虑测试Web应用程序。在这里,我们将看到一些Web应用程序测试的更多细节web测试的测试案例,让我告诉你一件事,我总是喜欢分享实用的知识,它可以是有用的用户在他们的职业生涯。这是一个很长的文章,所以坐下来,并得到放松,以得到最出它。
让我们先web测试清单。
1) 可用性测试 功能测试2)3) 接口测试4) 兼容性测试5) 性能测试6) 安全测试
1)功能测试:
测试 - 在网页中的链接网页,数据库连接,形成提交或获取信息的用户,饼干测试。
检查所有的链接:
  • 测试测试下从特定域的所有页面的出站链接。
  • 测试所有的内部链接。
  • 测试跳跃在同一页的链接。
  • 测试用于发送电子邮件给管理员或其他用户从网页的链接。
  • 测试,以检查是否有任何孤立的页面。
  • 最后在链接检查,检查链接是否损坏,在上述所有环节。
所有的网页:
​​表格中的测试形式是任何网站的组成部分。用于获取用户的信息,并保持与他们的互动形式。所以,在这些表格上应该检查什么?
  • 首先检查每个字段的所有验证。
  • 检查字段的默认值。
  • 错误输入到表格中的字段。
  • 如有创建表单的选项,形成删除,查看或修改的形式。
我们的搜索引擎项目为例,目前我的工作,在这个项目中,我们有广告客户和合作伙伴的注册步骤。每个注册步骤是不同的,但依赖于其它步骤。因此,注册流应该得到正确执行。有不同的现场验证,如电子邮件ID,用户的财务信息验证。所有这些验证应该在手动或自动的网络测试检查。
Cookies的测试:
Cookie是存储在用户机器上的小文件。这些基本上是用于维护会话,主要登录会话。测试应用程序启用或禁用cookies在你的浏览器选项。测试饼干书面形式向用户机器之前进行加密。如果您正在测试会话cookie(即饼干过期会议结束后)检查会话结束后,登录会话和用户统计。检查影响应用程序的安全删除的cookie。(我会尽快写cookie的测试单独的文章)
验证你的HTML / CSS:
如果搜索引擎优化您的网站,那么HTML / CSS验证是非常重要的。主要验证网站的HTML语法错误。检查,如果网站是不同的搜索引擎抓取。
数据库测试
数据一致性是非常重要的Web应用程序。检查数据的完整性和错误,而你的编辑,删除,修改的形式,或做任何DB相关的功能。
检查所有的数据库查询正确执行,数据被正确检索,也正确更新。更多关于数据库测试可以在DB的负载,我们会解决这个问题的Web负载或性能测试下面。
2)适用性测试:
导航:
导航试验意味着用户上网的网页,不同的控件(如按钮),盒或用户如何使用页面上的链接冲浪不同的页面。
可用性测试包括:
网站应该很容易使用。应明确说明。检查所提供的指示是正确的手段,他们是否满足的目的。
应提供主菜单的每一页上。它应该是一致的。
内容检查:
内容应符合逻辑且容易理解。检查拼写错误。使用暗颜色苦恼用户和网站的主题不应该被使用。你可以遵循一些标准,用于网页和内容建设。这些都是常见的公认的标准,就像我上面提到的关于恼人的颜色,字体,框架等
内容应该是有意义的。所有的锚文本链接应工作正常。图像应正确放置适当的尺寸大小,
这些都是一些在web开发中应遵循的基本标准。你的任务是验证所有的UI测试
用户帮助其他用户信息:
如搜索选项,地图,帮助文件等网站地图应该存在适当的树视图导航网站中的所有链接。检查的地图上所有的链接。
“搜索网站”选项,将帮助用户找到内容的网页,他们正在寻找轻松和快速。这些都是可选的项目,如果存在,应该进行验证。
3)界面测试
的主要接口包括:Web服务器和应用服务器接口的 应用服务器和数据库服务器界面。

检查是否正确执行,如果所有这些服务器之间的交互。妥善处理错误。如果任何查询应用服务器,数据库或Web服务器返回任何错误消息,那么应用服务器应该适当的用户捕捉和显示这些错误消息。检查发生什么,如果用户中断之间的任何交易?检查如果连接到Web服务器之间的复位,会发生什么?
4)兼容性测试:
你的网站的兼容性测试方面是非常重要的。要执行兼容性测试
  • 浏览器兼容性
  • 操作系统兼容性
  • 移动浏览
  • 打印选项
浏览器兼容性:
在我的Web测试的职业生涯中,我已经经历了这个最具影响力的网站测试的一部分,
有些应用程序是非常依赖于浏览器。不同的浏览器有不同的配置和设置你的网页应该是兼容的。您的网站编码应该是跨浏览器兼容的平台。如果您正在使用Java脚本或AJAX调用UI功能,进行安全检查或验证,然后给更多的压力在你的web应用的浏览器兼容性测试,
测试Web应用程序在不同的浏览器,如IE浏览器,火狐,Netscape Navigator中,AOL,Safari浏览器, Opera浏览器的不同版本。
操作系统兼容性:
在您的Web应用程序中的某些功能可能无法兼容所有的操作系统。所有在web开发中使用的新技术,如图形设计,不同的API接口调用,如可能不会在所有的操作系统中
测试你的Web应用程序在不同的操作系统WINDOWS,UNIX,MAC,LINUX,SOLARIS等不同的操作系统口味。
移动浏览:
这是新的技术时代。因此,在未来的移动浏览摇滚。在移动浏览器上测试您的网页。移动,可能会存在兼容性问题。
打印选项:
如果你给页面打印选项,然后确保字体,页面对齐,得到正确打印的页面图形。页面应该是合适的纸张尺寸,或按尺寸打印选项中提到。
5)性能测试:
Web应用程序应该能撑到重负载。Web性能测试应包括:
Web负载测试的
Web压力测试
不同的互联网连接速度测试应用程序的性能
Web负载测试测试,如果很多用户访问,或要求在同一页上。系统能维持在高峰负荷时间?网站应该处理许多并发用户请求,大用户输入数据,同时连接到数据库,负载很重特定页面等
压力测试:一般压力超出其规格限制意味着拉伸系统。Web压力测试,以打破该网站发出应力和检查系统的反应压力和系统从崩溃中恢复。
压力是一般输入字段,登录和注册的地区。
在Web性能测试网站功能,在不同的操作系统,不同的硬件平台上的软件,硬件内存泄漏错误检查,
6)安全测试:
以下是一些网络安全测试的测试案例:
  • 测试内部URL粘贴到浏览器地址栏直接不登录。内部网页无法打开。
  • 如果您已登录使用的用户名和密码,并浏览内部网页,然后请尝试直接更改URL股权。也就是说,如果你正在检查一些出版商网站的统计与发布商网站的ID = 123。尝试直接更改URL站点ID参数不同的站点ID登录的用户是不相关的。访问应该拒绝此用户可以查看其他人的统计。
  • 尝试一些无效输入登录用户名,密码,输入文本框输入等领域。检查系统所有无效输入反应。
  • Web目录或文件不应该是直接访问,除非下载选项。
  • 测试自动化脚本登录的验证码。
  • 测试如果用于SSL保安措施。如果使用应该得到适当的消息显示,当用户从非安全的http://网页,以确保开关https://开头的页面,反之亦然。
  • 所有交易,错误消息,应该得到安全漏洞的尝试记录在日志文件在Web服务器上的某个地方。

QATNT征召软件测试领域108实战派好汉,I want You!够胆你就来!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /6 下一条

职业迷茫中的你,不妨打开此锦囊

顶尖企业间软件测试技术大会交流合作
QATNT软件测试训练营

申请友链|质量之巅:做软件测试精华技术的传播者     

GMT+8, 2017-12-15 21:46 , Processed in 0.090243 second(s), 31 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部

倍安康腰椎治疗仪

鸡尾普洱茶